Create a Chat

Guide to creating a Chat in the Fetch Hive API.

Create a new chat

post

Create a new chat for an agent

Authorizations
Path parameters
agent_idstringRequired

Agent token

Body
Responses
200
Successful response
application/json
post
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"
  }
}
{
  "message": "Successfully created a chat.",
  "chat": {
    "id": 1,
    "name": "text",
    "last_message_content": "text",
    "last_message_sent_at": "2025-07-01T22:26:17.949Z",
    "message_count": 1,
    "generated_at": "2025-07-01T22:26:17.949Z",
    "token": "text",
    "status": "text",
    "agent": {
      "token": "text"
    }
  }
}

Last updated

Was this helpful?