> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dazie.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Write a journal entry in the user's own words



## OpenAPI

````yaml /api-reference/openapi.json post /journal-entries
openapi: 3.1.0
info:
  title: dazie API
  version: 1.0.0
  summary: Read and write a dazie user's journal, to-dos and companion memories.
  description: >-
    dazie is a voice-first journaling companion. Every request acts as one
    signed-in user and sees only their data. Get a token with `npx dazie login`,
    or run the OAuth 2.1 flow described at
    /.well-known/oauth-protected-resource. The same operations are available as
    MCP tools at /mcp.
  contact:
    url: https://docs.dazie.io
servers:
  - url: https://api.dazie.io/v1
security:
  - bearer: []
tags:
  - name: Account
  - name: Journal
  - name: To-dos
  - name: Memories
  - name: Calls
paths:
  /journal-entries:
    post:
      tags:
        - Journal
      summary: Write a journal entry in the user's own words
      operationId: createJournalEntry
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewJournalEntry'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JournalEntrySummary'
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/OnboardingRequired'
components:
  schemas:
    NewJournalEntry:
      type: object
      required:
        - title
        - content
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 200
        content:
          type: string
          minLength: 1
          maxLength: 20000
        mood:
          type: string
          maxLength: 50
        tags:
          type: array
          maxItems: 20
          items:
            type: string
            maxLength: 50
    JournalEntrySummary:
      type: object
      required:
        - id
        - title
        - createdAt
        - tags
        - fromCall
      properties:
        id:
          type: integer
        title:
          type: string
        createdAt:
          type: string
          format: date-time
        mood:
          type:
            - string
            - 'null'
        tags:
          type: array
          items:
            type: string
        summary:
          type:
            - string
            - 'null'
        fromCall:
          type: boolean
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - invalid_request
                - not_found
                - onboarding_required
                - internal_error
            message:
              type: string
  responses:
    InvalidRequest:
      description: The request did not validate
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid or expired access token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    OnboardingRequired:
      description: The user has not finished onboarding at app.dazie.io
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: A dazie access token from `dazie login` or the OAuth 2.1 flow.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.