API ReferenceConversations API

Create a conversation

Create a new conversation to store and retrieve conversation state across Response API calls **Features:** - Create conversation with optional metadata (max 16 key-value pairs) - Add up to 20 initial items to the conversation - Returns conversation ID with `conv_` prefix - Supports OpenAI Conversations API format **Metadata Constraints:** - Maximum 16 key-value pairs - Keys: max 64 characters - Values: max 512 characters

POST
/v1/conversations
Authorization<token>

Type "Bearer" followed by a space and JWT token.

In: header

Create conversation request with optional items and metadata

items?
metadata?
project_id?string
referrer?string
title?string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://loading/v1/conversations" \  -H "Content-Type: application/json" \  -d '{}'
{
  "created_at": 0,
  "id": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "object": "string",
  "project_id": "string",
  "referrer": "string",
  "title": "string",
  "updated_at": 0
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}