Skip to main content
POST
/
v2
/
conversations
cURL
curl --request POST \
  --url https://api.orq.ai/v2/conversations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "Support Chat #1234"
}
'
{
  "kind": "conversation",
  "displayName": "<string>",
  "createdAt": 123,
  "updatedAt": 123,
  "_id": "conv_01kbmyap3vct3fk3078f4d7xd9",
  "createdById": "<string>",
  "updatedById": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
displayName
string
required

Display name for the conversation. Can be auto-generated or set by the user.

Required string length: 1 - 100
Example:

"Support Chat #1234"

Response

201 - application/json

Conversation successfully created. Returns the complete conversation object including the generated ID and timestamps.

kind
enum<string>
required

Type discriminator indicating this is a conversation Type discriminator indicating this is a conversation

Available options:
conversation
displayName
string
required

Display name for the conversation. Can be auto-generated or set by the user. Display name for the conversation. Can be auto-generated or set by the user.

Required string length: 1 - 100
createdAt
number
required

Unix timestamp (in milliseconds) when the conversation was created Unix timestamp (in milliseconds) when the conversation was created

updatedAt
number
required

Unix timestamp (in milliseconds) when the conversation was last updated Unix timestamp (in milliseconds) when the conversation was last updated

_id
string
default:conv_01kbmyap3vct3fk3078f4d7xd9

Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the conversation, prefixed with "conv_" Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the conversation, prefixed with "conv_"

createdById
string

Optional identifier of the user or agent that created the conversation Optional identifier of the user or agent that created the conversation

updatedById
string

Optional identifier of the user or agent that last updated the conversation Optional identifier of the user or agent that last updated the conversation