Skip to main content
GET
/
v2
/
conversations
/
{conversation_id}
cURL
curl --request GET \
  --url https://api.orq.ai/v2/conversations/{conversation_id} \
  --header 'Authorization: Bearer <token>'
{
  "kind": "conversation",
  "displayName": "Product Feature Discussion",
  "createdAt": 1734789600000,
  "updatedAt": 1734793200000,
  "messages": [
    {
      "_id": "msg_01kcpsnav10ehqgwmh86ghea1k",
      "conversationId": "conv_01kcpsnaq3barznzh4ba1xm41s",
      "createdAt": 1734789600000,
      "createdById": "user_01jj1hdhn79xas7a01wb3hysdb",
      "parts": [
        {
          "kind": "text",
          "text": "<string>"
        }
      ],
      "role": "user"
    }
  ],
  "_id": "conv_01jj1hdhn79xas7a01wb3hysdb",
  "createdById": "user_01jj1hdhn79xas7a01wb3hysdb",
  "updatedById": "user_01jj1hdhn79xas7a01wb3hysdb",
  "metadata": {
    "generatingTitle": true,
    "entityId": "agent_01jj1hdhn79xas7a01wb3hysdb",
    "model": "openai/gpt-4o"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

conversation_id
string
required

The unique identifier of the conversation to retrieve

Example:

"conv_01jj1hdhn79xas7a01wb3hysdb"

Response

Conversation successfully retrieved. Returns the complete conversation object with all metadata and messages.

kind
enum<string>
required

Resource type discriminator.

Available options:
conversation
displayName
string
required

Human-readable name for the conversation. Maximum 100 characters.

Maximum string length: 100
Example:

"Product Feature Discussion"

createdAt
number
required

Unix timestamp in milliseconds when the conversation was created.

Example:

1734789600000

updatedAt
number
required

Unix timestamp in milliseconds when the conversation was last modified.

Example:

1734793200000

messages
object[]
required

Conversation messages ordered chronologically (oldest first).

_id
string
default:conv_01kergnekhzcys0d8qtya47wsr

Unique conversation identifier with conv_ prefix.

Example:

"conv_01jj1hdhn79xas7a01wb3hysdb"

createdById
string

Identifier of the user or system that created the conversation.

Example:

"user_01jj1hdhn79xas7a01wb3hysdb"

updatedById
string

Identifier of the user or system that last modified the conversation.

Example:

"user_01jj1hdhn79xas7a01wb3hysdb"

metadata
object

Additional conversation metadata.