REST API

Read and reply to chats from your own code.

The REST API lets your own systems read conversations, contacts and agents, and reply to, assign or close chats. Available on Pro and Business.

Authentication

Create a key in Developers → REST API. Send it as a bearer token:

curl https://app.riselychat.com/api/v1/conversations -H "Authorization: Bearer tvk_…"

Keys are read only unless you tick Allow writes. Each key allows 120 requests a minute. Errors come back as {"error": {"code": "…", "message": "…"}} (or {"message": "…", "errors": {…}} for validation).

Endpoints

Method Path What it does
GET /api/v1/conversations List chats, newest activity first. Filters: status=open|closed|all, website=example.com, updated_since=2026-11-01T00:00:00Z, page, per_page (max 100)
GET /api/v1/conversations/{id} One chat with all of its messages
GET /api/v1/conversations/{id}/messages Messages only; after_id= returns newer ones
POST /api/v1/conversations/{id}/messages Reply: {"body": "…", "note": false, "agent_email": "jess@example.com"}
POST /api/v1/conversations/{id}/assign {"agent_email": "jess@example.com"}, or null to unassign
POST /api/v1/conversations/{id}/close End the chat
GET /api/v1/contacts Visitors who shared details; q= searches name, email or your user ID
GET /api/v1/contacts/{id} One contact with attributes, notes and chats
GET /api/v1/agents Your team
GET /api/v1/websites Your websites and widget keys

Replies and other writes act as the agent in agent_email, or as the person who created the key.

Pagination

List endpoints return {"data": […], "meta": {"page": 1, "per_page": 25, "total": 240, "last_page": 10}}.

Real-time updates

Polling is fine for syncing, but for instant updates use webhooks.

Didn't find what you need? Email support