Skip to content
Navigation

Send items

Send input items. Max 7 MB body. One turn is in flight at a time. A refused item (turn_in_flight, conversation_ended, a file that is too large, a conversation cap) comes back as an error item in items, with status 200. A 4XX status refuses the request: a bad body (400), a bad or expired token (401), a body over 7 MB (413), or the per-IP limit (429).

POST
https://{org}.cloudraker.run/_cv/{cv}/items
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • session
    HTTP
    required

Path parameters

  • cv
    string
    required

    The conversation id (cv_...).

Request body JSON required

  • items
    array of
    object
    required
    • type
      text
      or
      file
      or
      answer
      or
      variable
      or
      cancel
      or
      typing
      +2 more
      required
    • text
      optional
      string
      maxLength: 4000
    • client_id
      optional
      string
      maxLength: 64
    • name
      optional
      string
    • content_type
      optional
      string
    • data
      optional
      string

      file: base64, max 5 MB decoded over HTTP.

    • question_id
      optional
      string
    • value
      optional
      string | number | boolean

Returns

200

The last durable seq and the ephemeral answers.

JSON
  • seq
    integer
    required

    The last durable seq after the items.

  • items
    array of
    object
    required

    Ephemeral answers, for example error items.

    • type
      user
      or
      message
      or
      message.delta
      or
      question
      or
      activity
      or
      ui
      +8 more
      required
    • seq
      integer | null
      required
    • at
      string
      required
      format: date-time

4XX

Error. See the code table in the guides.
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • run_id
      optional
      string
    • details
      optional
      unknown

Type to search…

↑↓ navigate↵ selectEsc close