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

# Save a message draft

> Saves a message in the conversation without sending it. The draft belongs to the member who created the API key, who finds it in the message box when they open the conversation in Passionfroot and sends it from there. One draft per member per conversation, so a save replaces the draft before it, also text the member was typing. Sending a message from the message box or this API deletes the draft.



## OpenAPI

````yaml /openapi/partner.yaml post /conversations/{conversationId}/draft
openapi: 3.1.0
info:
  title: Passionfroot Partner API
  version: 1.0.0
  description: >
    Access a brand workspace's creators, collaborations, placements, proposals,
    and conversations.

    Every operation is restricted to the organization that owns the API key.
servers:
  - url: https://workspace.passionfroot.me/api/v1
security:
  - bearerAuth: []
tags:
  - name: Placements
  - name: Creators
  - name: Collaborations
  - name: Conversations
  - name: Proposals
paths:
  /conversations/{conversationId}/draft:
    post:
      tags:
        - Conversations
      summary: Save a message draft
      description: >-
        Saves a message in the conversation without sending it. The draft
        belongs to the member who created the API key, who finds it in the
        message box when they open the conversation in Passionfroot and sends it
        from there. One draft per member per conversation, so a save replaces
        the draft before it, also text the member was typing. Sending a message
        from the message box or this API deletes the draft.
      operationId: savePartnerConversationDraft
      parameters:
        - $ref: '#/components/parameters/ConversationId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DraftInput'
            example:
              text: Thanks! Could we move the date to September 15?
      responses:
        '200':
          description: Draft saved.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/ConversationDraft'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  parameters:
    ConversationId:
      name: conversationId
      in: path
      required: true
      schema:
        type: string
  schemas:
    DraftInput:
      type: object
      additionalProperties: false
      required:
        - text
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 10000
          description: >-
            Plain text or allowed basic HTML. Each line of plain text becomes a
            paragraph.
    ConversationDraft:
      type: object
      required:
        - conversationId
        - text
        - createdAt
        - updatedAt
        - url
      properties:
        conversationId:
          type: string
        text:
          type: string
          description: The draft as the message box's HTML.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        url:
          type: string
          format: uri
          description: >-
            Opens the conversation in Passionfroot, with the draft in the
            message box.
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      description: >-
        The body of every error response. Branch on `code`; messages can be
        reworded.
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: >-
                Stable, machine-readable reason. New codes may be added;
                existing ones never change meaning.
              enum:
                - INVALID_REQUEST
                - INVALID_QUERY_PARAMETER
                - INVALID_BODY
                - INVALID_ID
                - INVALID_CURSOR
                - INVALID_IDEMPOTENCY_KEY
                - UNAUTHENTICATED
                - MISSING_SCOPE
                - PLAN_RESTRICTED
                - NOT_FOUND
                - METHOD_NOT_ALLOWED
                - CONFLICT
                - IDEMPOTENCY_IN_PROGRESS
                - UNPROCESSABLE
                - CREATOR_NOT_ON_PASSIONFROOT
                - IDEMPOTENCY_KEY_REUSED
                - RATE_LIMITED
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
            message:
              type: string
              description: >-
                What went wrong and what to do next, written for a developer or
                agent.
            details:
              description: >-
                Present only when there is something structured to act on, such
                as one entry per invalid field (`{ field, message }`).
  responses:
    BadRequest:
      $ref: '#/components/responses/Error400'
    Unauthorized:
      $ref: '#/components/responses/Error401'
    Forbidden:
      $ref: '#/components/responses/Error403'
    NotFound:
      $ref: '#/components/responses/Error404'
    UnprocessableEntity:
      $ref: '#/components/responses/Error422'
    TooManyRequests:
      description: Rate limit exceeded.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RATE_LIMITED
              message: >-
                This API key is over its rate limit. Wait for Retry-After before
                sending more.
              details:
                limit: 10
                windowSeconds: 1
    ServerError:
      $ref: '#/components/responses/Error500'
    ServiceUnavailable:
      description: >-
        Key verification is temporarily unavailable. Retry after the indicated
        delay; the key itself is not at fault.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: SERVICE_UNAVAILABLE
              message: API key verification is temporarily unavailable, retry shortly
    Error400:
      description: >-
        Invalid parameters, body, ID or cursor. `details` names each invalid
        field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_QUERY_PARAMETER
              message: Invalid query parameters
              details:
                - field: limit
                  message: Number must be less than or equal to 250
    Error401:
      description: Missing, invalid, expired, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHENTICATED
              message: Invalid or expired API key
    Error403:
      description: >-
        The key lacks the required scope (`MISSING_SCOPE`), or the
        organization's plan does not include API access (`PLAN_RESTRICTED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: MISSING_SCOPE
              message: 'API key missing required scope: write:conversations'
    Error404:
      description: Resource not found or not accessible to this organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Conversation not found
    Error422:
      description: The request is well formed but cannot be processed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error500:
      description: >-
        Unexpected server failure. Re-read state before retrying a write, and
        quote the `X-PF-Trace-Id` response header to support.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Passionfroot API key
      description: >-
        Create an API key from Settings → AI agents & API in your Partner
        workspace.

````

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