History

The Directory API gives you access to Organizations, Accounts, Employees and Groups. Every Entity within the subsequent API calls must have an Organization attached and API calls must be made with a User specific JWT.

Search conversation history.

post
Body
querystringRequired

Search query string.

pageintegerOptional

Page number (0-based) for paginated results.

countintegerOptional

Number of results per page.

Responses
chevron-right
200

Success

application/json
idstringOptional

Identifier of the search result (message or conversation ID).

conversationIdstringOptional

ID of the conversation associated with this result.

resultstringOptional

Text snippet or summary of the result.

timestampstring · date-timeOptional

Timestamp of the message or conversation.

typestringOptional

Result type (e.g., "conversation" or "message").

post
/api/v1/agent/search

Retrieve conversation history.

post

Get all messages in a conversation, optionally those after a specific time.

Body
questionstringOptional

User's question or message.

maxResultsintegerOptional

Max number of results or steps (defaults to 5).

additionalInstructionsstringOptional

Additional instructions or context for the agent.

conversationIdstringOptional

ID of an existing conversation (for follow-ups; omit for new questions).

sincestring · date-timeOptional

If provided, get history messages since this timestamp (used in history request).

Responses
chevron-right
200

Success

application/json
tenantstringOptional

Tenant/workspace of the user.

userIdstringOptional

User ID who initiated or is associated with the message.

agentstringOptional

Name of the agent that produced the response (empty for user messages).

messageTypestringOptional

Type of message (e.g., "user_request" or "agent_response").

messagestringOptional

Message content.

tokenUsageintegerOptional

Number of language model tokens used for this message (if applicable).

timeSpentintegerOptional

Time spent (in milliseconds) processing this message.

conversationIdstringOptional

ID of the conversation this message belongs to.

timestampstring · date-timeOptional

Timestamp of the message.

post
/api/v1/agent/history

Last updated

Was this helpful?