Guide to creating a Chat in the Fetch Hive API.
Last updated 18 days ago
Was this helpful?
Create a new chat for an agent
Agent token
POST /v1/agents/{agent_id}/chats HTTP/1.1 Host: api.fetchhive.com Authorization: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 24 { "chat": { "name": "text" } }
Successful response
{ "message": "Successfully created a chat.", "chat": { "id": 1, "name": "text", "last_message_content": "text", "last_message_sent_at": "2025-04-24T09:58:07.539Z", "message_count": 1, "generated_at": "2025-04-24T09:58:07.539Z", "token": "text", "status": "text", "agent": { "token": "text" } } }