Skip to content
Navigation

createSession

POST
/api/v1/agents/{agentId}/sessions

Authorization

  • session
    optional
    API key in cookie
  • token
    optional
    HTTP Bearer

    Authorization: Bearer <token>

Path parameters

  • agentId
    string
    required

Request body JSON

  • title
    optional
    string
    maxLength: 200

Returns

201

Created.

JSON
  • id
    string
    required
  • agentId
    string
    required
  • title
    string
    required
  • running
    boolean
    required
  • createdBy
    object
    required
    • id
      string
      required
    • email
      string
      required
    • name
      string
      required
    • avatarUrl
      string
      required
  • createdAt
    string
    required
    format: date-time
  • updatedAt
    string
    required
    format: date-time
  • origin
    optional
    object

    Set when another agent started the session (send_message or ask).

    • agentId
      string
      required
    • agentName
      string
      required
    • sessionId
      string
      required

      The other agent's session that sent the messages.

403

Error.
JSON
  • error
    string
    required

404

Error.
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close