Ai chats
Create ai chat
Changed onCreate a new AI chat thread and send the first message to the AI agent.
Required permissions:
- ai_chat:create
post/ai_chats
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/ai_chats
- Auth: HTTP bearer
Request body
Response
A successful response
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
added the new optional request property
- info
added the required property
to the response with the status
- info
- warning
removed the request property
- info
added the new optional request property
- warning