Retrieve ai chat
Changed onRetrieves the details of an existing AI chat.
Required permissions:
- ai_chat:read
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
The unique identifier of the AI chat to retrieve.
Response
A successful response
An AI-powered chat conversation belonging to a user, with optional scheduled automation.
The AI agent that handles this chat. Set when the chat is created and fixed for its lifetime.
The total number of tokens consumed across all messages in this conversation.
The datetime the ai chat was created.
The unique identifier for the ai chat.
The timestamp of the most recent message in this conversation. Null if no messages have been sent yet.
The total number of messages exchanged in this conversation.
The notification preference for this AI chat. all delivers AI chat notifications and badges, while none mutes them.
A short descriptive title for this AI chat conversation. Null if no title has been set.
The datetime the ai chat was last updated.
The user who owns this AI chat conversation.
Example response
{
"blended_token_usage": "123.45",
"created_at": "2023-12-01T05:00:00.401Z",
"id": "aich_xxxxxxxxxxxxx",
"last_message_at": "2023-12-01T05:00:00.401Z",
"message_count": 42,
"title": "Weekly Revenue Analysis",
"updated_at": "2023-12-01T05:00:00.401Z",
"user": {
"id": "user_xxxxxxxxxxxxx"
}
}Changes
- info
the security scope
ai_chat:readwas added to the endpoint's security schemebearerAuth
- info
- info
added the required property
agent_identifierto the response with the status
- info