Conversations API

The Conversations API lets you programmatically access conversation threads, messages, and lead context from your Zipchat chatbot. Use it to sync data into your CRM, build reporting dashboards, or power internal workflows.

How to Set Up Conversations API

  1. In Zipchat, go to Chat Settings > Integrations.

  2. Enable the Backend API integration.

  3. Copy your API Key and Chat ID from the integration card.

  4. Use those credentials to call the endpoints below.

Authentication

Send your API key in the Authorization header as a Bearer token:

Requests with a missing or invalid token return 401 Unauthorized.

Base URL

Endpoints

1) List Conversations

Returns a paginated list of conversations for the selected chat.

Query parameters

Parameter
Type
Default
Description

page

integer

1

Conversation page number

per_page

integer

50

Conversations per page (max 100)

last_message_at_since

string (ISO 8601)

Return only conversations updated at or after this timestamp

Response

lead is null when no lead is attached to a conversation.


2) Get Conversation Details (with Messages)

Returns one conversation plus visible messages and message pagination metadata.

Query parameters

Parameter
Type
Default
Description

message_page

integer

1

Message page number

message_per_page

integer

100

Messages per page (max 200)

message_created_at_since

string (ISO 8601)

Return only messages created at or after this timestamp

Response

Rate Limiting

The API is limited to 120 requests per 60-second window per integration.

Every response includes:

  • X-RateLimit-Limit

  • X-RateLimit-Remaining

  • X-RateLimit-Reset (Unix timestamp)

Exceeded limits return 429 Too Many Requests.

Error Codes

Status
Meaning

401 Unauthorized

Missing or invalid token

404 Not Found

Conversation not found for this chat

422 Unprocessable Entity

Invalid parameter format (for example, malformed timestamp)

429 Too Many Requests

Rate limit exceeded

Example Requests

Fetch conversations

Poll conversations updated since a timestamp

Fetch one conversation

Paginate messages in a conversation

Last updated