Click2Reply API

The full public API: the same REST and realtime API our own agent app uses, for your integrations, bots and apps. API calls are free and never metered.

Authentication

Send Authorization: Bearer <token> on every request to https://api.click2reply.com/v1. The organization always comes from the token, and every token obeys the organization's IP allowlist, as signed-in sessions do.

TokenForHow to get it
c2r_pat_...Your own scripts, acting as youSettings > Developers > Personal tokens, with the permissions you pick
c2r_bot_...A bot agent acting through the API (bots never take a seat)An admin issues it for a bot in Settings > Developers
c2r_oat_...Third-party apps, acting for the agent who approved themOAuth 2.0 authorization code with PKCE, below

OAuth 2.0 for apps

  1. Register the app in Settings > Developers > Apps: redirect URIs, the permissions it may ask for, and whether it is a confidential (server) or public (browser, mobile) client. A new app is private: your own organization and anyone you give its authorize link can install it. Click2Reply reviews an app before listing it in every organization's catalog.
  2. Send the agent to https://app.click2reply.com/oauth/authorize?response_type=code&client_id=...&redirect_uri=...&scope=...&state=...&code_challenge=...&code_challenge_method=S256. Public clients must use PKCE; confidential clients should.
  3. The agent approves on the consent screen and comes back to your redirect URI with code and state.
  4. Exchange it at POST /v1/oauth/token with grant_type=authorization_code, the code and the redirect URI. A confidential client also authenticates (HTTP Basic or form fields) and sends code_verifier when it used PKCE; a public client sends its client_id and the code_verifier.
  5. Access tokens last an hour. Refresh with grant_type=refresh_token: every refresh returns a new refresh token and the old one stops working. Presenting a used refresh token again revokes the whole grant.

Revoke with POST /v1/oauth/revoke, inspect with POST /v1/oauth/introspect or GET /v1/oauth/info. Server metadata: GET /v1/oauth/metadata.

Permissions

A token carries a subset of these. It can never do more than its agent's role allows today: when the role changes, the token follows within a few minutes.

PermissionAllows
chats.accessRead and answer the chats of the groups the agent belongs to.
chats.allRead and answer every chat, in every group.
archives.readSearch and read archived chats.
archives.writeChange archived chats.
customers.readRead customer profiles.
customers.writeUpdate customer profiles.
customers.banBan customers.
traffic.readSee live website traffic.
campaigns.manageManage greetings, campaigns and goals.
canned.manageManage canned responses.
tags.manageManage tags.
reports.readRead reports.
team.readRead agents, bots, groups and their status.
team.manageInvite, change and suspend agents; manage groups.
settings.manageChange routing, widget and chat settings.
channels.manageConnect and change messaging channels.
ai.manageChange the AI model settings.
developers.manageManage webhooks, apps and bot tokens.
data.exportExport chats, customers and reports.

Rate limits

600 requests a minute per token and 3000 a minute per organization across all its tokens. Past a limit the API answers 429 too_many_requests with Retry-After. There are no monthly quotas and no charges for API calls.

Errors

Every error is { "error": { "code", "message", "details"? } }. Match on code, never on the message.

CodeHTTP
validation400
authentication401
authorization403
not_found404
conflict409
chat_inactive409
agent_unavailable409
entity_too_large413
idempotency_key_reused422
unsupported_version426
too_many_requests429
plan_limit402
internal500
not_implemented501
service_unavailable503

Paged lists take limit (max 100) and page_token and answer { items, next_page_token }.

REST

AI

MethodPathWhat it doesNeeds
GET/v1/ai/capabilitiesWhether a model is connected and which AI features are onany token
GET/v1/ai/featuresAI feature switchesai.manage
PUT/v1/ai/featuresSwitch AI features on or offai.manage
GET/v1/ai/modelsYour connected models, keys maskedai.manage
PUT/v1/ai/models/{slot}Connect or change the primary or backup modelai.manage
DELETE/v1/ai/models/{slot}Disconnect a model and delete its keyai.manage
POST/v1/ai/models/{slot}:testTest a saved modelai.manage
POST/v1/ai/models:testTest a model before saving itai.manage
GET/v1/ai/agentThe AI agent's settings and approved repliesai.manage
PUT/v1/ai/agentSave the AI agent's settings and approved repliesai.manage
POST/v1/ai/agent:previewRun one AI agent turn on a sample conversation, sending nothingai.manage
GET/v1/ai/knowledgeKnowledge hub sourcesai.manage
POST/v1/ai/knowledgeAdd a knowledge sourceai.manage
GET/v1/ai/knowledge/{id}A knowledge source with its textai.manage
PATCH/v1/ai/knowledge/{id}Change or refetch a knowledge sourceai.manage
DELETE/v1/ai/knowledge/{id}Delete a knowledge sourceai.manage
POST/v1/ai/chats/{chat_id}:suggestReply suggestions for a chatchats.access
POST/v1/ai/chats/{chat_id}:summarizeSummarize a chat thread nowchats.access
GET/v1/ai/chats/{chat_id}/threads/{thread_id}/summaryA thread's stored summarychats.access
POST/v1/ai/copilotAsk Copilot, optionally about one chatchats.access
POST/v1/ai/text:editRephrase, shorten, fix or translate a draftchats.access
GET/v1/ai/usageYour model calls and tokens per featureai.manage

Auth

MethodPathWhat it doesNeeds
GET/v1/auth/configPublic sign-in settings (Turnstile site key, password rules)no token
POST/v1/auth/signupCreate an account and its organizationno token
POST/v1/auth/email:verifyConfirm the email with the mailed 6-digit code; then refresh for unrestricted tokensagent session
POST/v1/auth/email:resendMail a new verification codeagent session
POST/v1/auth/loginSign in with email and passwordno token
POST/v1/auth/login:mfaSecond sign-in step: TOTP or recovery codeno token
POST/v1/auth/token:refreshRotate the refresh token and get a new access tokenno token
POST/v1/auth/logoutEnd this sessionagent session
POST/v1/auth/organization:switchSign in to another of the account's organizationsagent session
POST/v1/auth/password:forgotMail a password reset linkno token
POST/v1/auth/password:resetSet a new password with the mailed tokenno token
POST/v1/auth/email:confirmConfirm a login email change with the mailed tokenno token

SSO

MethodPathWhat it doesNeeds
POST/v1/auth/sso:discoverWhere an email or license signs in with SSOno token
POST/v1/auth/sso:exchangeTrade the one-time SSO code for tokensno token
GET/v1/organization/ssoSSO connectionsagent session, organization.manage
POST/v1/organization/ssoAdd a SAML or OIDC connectionagent session, organization.manage
PATCH/v1/organization/sso/{id}Edit a connectionagent session, organization.manage
DELETE/v1/organization/sso/{id}Remove a connectionagent session, organization.manage
POST/v1/organization/sso/{id}/domainsClaim an email domainagent session, organization.manage
POST/v1/organization/sso/{id}/domains/{domain}:verifyCheck the domain's DNS TXT recordagent session, organization.manage
DELETE/v1/organization/sso/{id}/domains/{domain}Release a domainagent session, organization.manage

Account

MethodPathWhat it doesNeeds
GET/v1/accounts/meThe signed-in account, agent and organizationagent session
PATCH/v1/accounts/meChange your name or localeagent session
POST/v1/accounts/me/password:changeChange your passwordagent session
POST/v1/accounts/me/email:changeAsk to change your login email: the new address gets a confirmation linkagent session
POST/v1/accounts/me/2fa:setupStart TOTP setupagent session
POST/v1/accounts/me/2fa:enableTurn TOTP on with a first codeagent session
POST/v1/accounts/me/2fa:disableTurn TOTP offagent session
POST/v1/accounts/me/recovery-codes:regenerateReplace the recovery codesagent session
GET/v1/sessionsYour open sessionsagent session
DELETE/v1/sessions/{id}End one sessionagent session
POST/v1/sessions:revoke-othersEnd every other sessionagent session

Team

MethodPathWhat it doesNeeds
GET/v1/agentsList agents and botsteam.read
POST/v1/agentsCreate a botteam.manage
GET/v1/agents/{id}One agentteam.read
PATCH/v1/agents/{id}Edit an agent (yourself: name, job title, avatar, default status)team.manage
DELETE/v1/agents/{id}Remove an agent or botteam.manage
POST/v1/agents/{id}:suspendSuspend an agentteam.manage
POST/v1/agents/{id}:reactivateReactivate a suspended agentteam.manage
POST/v1/agents/{id}:approveApprove a join requestteam.manage
POST/v1/agents/{id}:denyDeny a join requestteam.manage
POST/v1/invitesInvite people by emailteam.manage
GET/v1/invitesOpen invitesteam.read
POST/v1/invites/{id}:remindSend the invite again with a new linkteam.manage
DELETE/v1/invites/{id}Withdraw an inviteteam.manage
POST/v1/invites:previewWhat an invite link offersno token
POST/v1/invites:acceptAccept an inviteno token
GET/v1/team/join-linkThe team join linkteam.manage
POST/v1/team/join-link:rotateReplace the join linkteam.manage
PATCH/v1/team/join-linkTurn the join link on or offteam.manage
POST/v1/team/join:previewWhat a join link leads tono token
POST/v1/team/joinAsk to join a team through its linkno token
GET/v1/team/rolesCustom rolesteam.read
POST/v1/team/rolesCreate a custom roleagent session, roles.manage
PATCH/v1/team/roles/{id}Edit a custom roleagent session, roles.manage
DELETE/v1/team/roles/{id}Delete a custom roleagent session, roles.manage
GET/v1/team/seatsSeats used and the plan's limitteam.read

Organization

MethodPathWhat it doesNeeds
GET/v1/organizationCompany details and login policyany token
PATCH/v1/organizationChange company details and login policyagent session, organization.manage
POST/v1/organization/ownership:transferHand ownership to another agentagent session
POST/v1/organization:deleteDelete the organization and all its dataagent session
GET/v1/organization/audit-logWho changed whatagent session, organization.manage

Billing

MethodPathWhat it doesNeeds
GET/v1/billing/plansThe plans anyone can chooseno token
GET/v1/billing/overviewThe organization's plan, seats and this month's usageany token
POST/v1/billing/subscription:changeMove the organization to another planagent session, billing.manage

Channels

MethodPathWhat it doesNeeds
GET/v1/channels/catalogEvery channel: capabilities, credential form, how it connectsany token
GET/v1/channels/connectionsList channel connectionsany token
POST/v1/channels/connectionsConnect a channel with the tenant's own credentialschannels.manage
GET/v1/channels/connections/{connection_id}Get a channel connectionany token
PATCH/v1/channels/connections/{connection_id}Rename, regroup, disable or re-credential a connectionchannels.manage
DELETE/v1/channels/connections/{connection_id}Disconnect a channelchannels.manage
POST/v1/channels/connections/{connection_id}:testRe-check a connection's credentialschannels.manage
POST/v1/channels/connections/{connection_id}:sync_templatesSync WhatsApp message templates from Metachannels.manage
GET/v1/channels/connections/{connection_id}/templatesList stored WhatsApp message templatesany token
GET/v1/channels/connections/{connection_id}/phone_numbersList the WhatsApp Business Account's phone numberschannels.manage
POST/v1/channels/connections/{connection_id}/phone_numbers/{number_id}:connectConnect another number of the same WhatsApp Business Accountchannels.manage
POST/v1/channels/whatsapp:embedded_signupFinish WhatsApp embedded signupchannels.manage
POST/v1/channels/meta:pagesFacebook Login: the Pages and Instagram accounts the login manageschannels.manage
POST/v1/channels/meta:connectFacebook Login: connect Pages' Messenger and Instagram inboxeschannels.manage
GET/v1/channels/chats/{chat_id}A chat's channel, reply window and what the composer may sendchats.access

Canned responses

MethodPathWhat it doesNeeds
GET/v1/config/canned-responsesList the canned responses the caller can usechats.access
POST/v1/config/canned-responsesCreate a canned response; a shared one needs canned.managechats.access
GET/v1/config/canned-responses/{id}Get a canned responsechats.access
PATCH/v1/config/canned-responses/{id}Update a canned response: a private one by its author, a shared one with canned.managechats.access
DELETE/v1/config/canned-responses/{id}Delete a canned response, under the same rule as updatechats.access

Tags

MethodPathWhat it doesNeeds
GET/v1/config/tagsList tagschats.access
POST/v1/config/tagsCreate a tagtags.manage
PATCH/v1/config/tags/{id}Change a tag's colour, groups or pintags.manage
DELETE/v1/config/tags/{id}Delete a tagtags.manage

Groups

MethodPathWhat it doesNeeds
GET/v1/config/groupsList groups with their membersteam.read
POST/v1/config/groupsCreate a groupteam.manage
GET/v1/config/groups/{id}Get a groupteam.read
PATCH/v1/config/groups/{id}Rename a group, change its language or replace its membersteam.manage
DELETE/v1/config/groups/{id}Delete a group no routing rule targetsteam.manage
PUT/v1/config/groups/{id}/members/{agent_id}Add an agent to a group or change its priorityteam.manage
DELETE/v1/config/groups/{id}/members/{agent_id}Remove an agent from a groupteam.manage

Routing rules

MethodPathWhat it doesNeeds
GET/v1/config/routing-rulesList routing rules in evaluation ordersettings.manage
POST/v1/config/routing-rulesAdd a routing rule at the endsettings.manage
PATCH/v1/config/routing-rules/{id}Update a routing rulesettings.manage
DELETE/v1/config/routing-rules/{id}Delete a routing rulesettings.manage
POST/v1/config/routing-rules:reorderSet the order of every routing rulesettings.manage

Settings

MethodPathWhat it doesNeeds
GET/v1/config/settingsEvery setting's effective value at a scopechats.access
PATCH/v1/config/settingsSave several settings at one scope atomicallysettings.manage
GET/v1/config/settings/{key}One setting's effective value at a scopechats.access
PUT/v1/config/settings/{key}Set one setting at a scopesettings.manage
DELETE/v1/config/settings/{key}Clear a scope's value so it inherits; the organization's resets to the defaultsettings.manage
GET/v1/config/agents/{agent_id}/settings/{key}An agent's personal setting; `me` is the caller, another agent needs team.managechats.access
PUT/v1/config/agents/{agent_id}/settings/{key}Set an agent's personal setting; working hours and other agents need team.managechats.access
GET/v1/config/audit-logConfiguration changes, newest firstsettings.manage

Forms

MethodPathWhat it doesNeeds
GET/v1/config/forms/{kind}The pre-chat or post-chat form of the organization or a groupchats.access
PUT/v1/config/forms/{kind}Save the form of the organization or a groupsettings.manage
DELETE/v1/config/forms/{kind}Remove a group's own form so it inheritssettings.manage

Trusted domains

MethodPathWhat it doesNeeds
GET/v1/config/trusted-domainsList trusted domainssettings.manage
POST/v1/config/trusted-domainsTrust a domain and its subdomainssettings.manage
DELETE/v1/config/trusted-domains/{domain}Stop trusting a domainsettings.manage
GET/v1/config/detected-domainsHosts the widget loaded on or was refused on in the last 90 days that no trusted domain coverssettings.manage

Bans

MethodPathWhat it doesNeeds
GET/v1/config/bansList banscustomers.read
POST/v1/config/bansBan an IP range, visitor or customer, or change an existing bancustomers.ban
DELETE/v1/config/bans/{id}Lift a bancustomers.ban

Widget

MethodPathWhat it doesNeeds
GET/v1/config/brandsList brandschats.access
POST/v1/config/brandsCreate a brandsettings.manage
PATCH/v1/config/brands/{id}Update a brandsettings.manage
DELETE/v1/config/brands/{id}Delete a brand other than the defaultsettings.manage
GET/v1/config/widget/{group_id}The widget config as published for a groupchats.access
POST/v1/config/widget:publishRepublish every group's widget config and resync routingsettings.manage
GET/v1/widget/configThe widget bootstrap for a license: its published config and the socket URLsno token
POST/v1/widget/refusedThe loader reports a host it refused to run on, for the tenant's detected domainsno token
GET/v1/widget/chat-page-statsThe hosted chat page's figures, when the tenant shows them thereno token

Tokens

MethodPathWhat it doesNeeds
GET/v1/tokensList your personal tokens (admins: every token, or bot tokens)agent session
POST/v1/tokensCreate a personal access tokenagent session, tokens.own
POST/v1/tokens/botsCreate a token for a bot agentagent session, developers.manage
DELETE/v1/tokens/{id}Revoke a personal or bot tokenagent session

OAuth

MethodPathWhat it doesNeeds
GET/v1/oauth/authorizeConsent screen data for an authorization requestagent session
POST/v1/oauth/authorizeApprove or deny an authorization requestagent session
POST/v1/oauth/tokenExchange a code or a refresh token (form or JSON body)no token
POST/v1/oauth/revokeRevoke an access or refresh token (RFC 7009)no token
POST/v1/oauth/introspectIntrospect a token (RFC 7662)no token
GET/v1/oauth/infoDescribe the calling tokenany token
GET/v1/oauth/metadataAuthorization server metadata (RFC 8414)no token

Apps

MethodPathWhat it doesNeeds
GET/v1/apps/catalogIntegrations and apps available to the organizationagent session
GET/v1/apps/installedApps installed in the organizationagent session
DELETE/v1/apps/installed/{app_id}Uninstall an app: revoke its tokens and delete its webhooksagent session, developers.manage
GET/v1/apps/registeredApps this organization developsagent session, developers.manage
POST/v1/apps/registeredRegister an OAuth appagent session, developers.manage
GET/v1/apps/registered/{id}Get a registered appagent session, developers.manage
PATCH/v1/apps/registered/{id}Change a registered appagent session, developers.manage
DELETE/v1/apps/registered/{id}Delete a registered app and every grant it holdsagent session, developers.manage
POST/v1/apps/registered/{id}:rotate_secretIssue a new client secretagent session, developers.manage

Webhooks

MethodPathWhat it doesNeeds
GET/v1/webhooksList webhooksdevelopers.manage
POST/v1/webhooksCreate a webhookdevelopers.manage
GET/v1/webhooks/eventsThe webhook event catalogno token
GET/v1/webhooks/{id}Get a webhook with its delivery healthdevelopers.manage
PATCH/v1/webhooks/{id}Change a webhookdevelopers.manage
DELETE/v1/webhooks/{id}Delete a webhookdevelopers.manage
POST/v1/webhooks/{id}:testSend a test delivery now and report the resultdevelopers.manage
POST/v1/webhooks/{id}:rotate_secretIssue a new signing secret; the old one keeps signing for 24 hoursdevelopers.manage
POST/v1/webhooks/{id}:resumeResume a paused webhook and close its circuitdevelopers.manage
GET/v1/webhooks/{id}/deliveriesThe delivery log, newest firstdevelopers.manage
POST/v1/webhooks/{id}/deliveries/{event_id}:redeliverSend a logged event againdevelopers.manage

Transcripts

MethodPathWhat it doesNeeds
POST/v1/transcriptsEmail a chat transcriptany token
POST/v1/transcripts/linksA signed, expiring link to the hosted transcriptany token
GET/v1/transcripts/{token}The hosted transcript page (HTML, or JSON by Accept)no token

Email

MethodPathWhat it doesNeeds
GET/v1/email/settingsEmail settingssettings.manage
PUT/v1/email/settingsChange email settingssettings.manage
GET/v1/email/inboxesForwarding addressessettings.manage
POST/v1/email/inboxesAdd or configure a forwarding addresssettings.manage
PATCH/v1/email/inboxes/{id}Change a forwarding addresssettings.manage
DELETE/v1/email/inboxes/{id}Remove a forwarding addresssettings.manage
GET/v1/email/blocked-sendersBlocked senderssettings.manage
POST/v1/email/blocked-sendersBlock a sender or a domainsettings.manage
DELETE/v1/email/blocked-senders/{pattern}Unblock a sendersettings.manage
GET/v1/email/suppressionsAddresses we do not emailsettings.manage
POST/v1/email/suppressionsStop emailing an addresssettings.manage
DELETE/v1/email/suppressions/{address}Email an address againsettings.manage
GET/v1/email/messagesEmails sent and receivedchats.access
POST/v1/email/messages/{id}:releaseDeliver an email held as spam into its chatchats.access
POST/v1/email/install-instructionsEmail a developer the widget install instructionssettings.manage
GET/v1/email/usageThis month's email usagesettings.manage
GET/v1/email/verify/{token}The address confirmation page (HTML)no token
POST/v1/email/verify/{token}Confirm the address and mail the transcript (HTML)no token
GET/v1/email/unsubscribe/{token}Unsubscribe page (HTML)no token
POST/v1/email/unsubscribe/{token}Unsubscribe, also RFC 8058 one-clickno token

Files

MethodPathWhat it doesNeeds
POST/v1/filesStart an upload: signed URLs for a chat file and its thumbnail (a customer token, or an agent token with chats.access), or a knowledge file (ai.manage)any token
PUT/v1/files/blob/{file_key}Upload the bytes to a signed upload URL (no Authorization header)no token
GET/v1/files/capabilitiesWhether uploads work here and for youany token
POST/v1/files:signSigned download URLs for up to 100 files (a customer token for its own chats, or an agent token with chats.access)any token
GET/v1/files/blob/{file_key}Download through a signed URL (no Authorization header)no token
POST/v1/files:unfurlLink preview for a URL in a message (a customer token, or an agent token with chats.access)any token
GET/v1/files/proxyA link preview's image through a signed URL (no Authorization header)no token

Imports

MethodPathWhat it doesNeeds
GET/v1/imports/sourcesPlatforms you can import from and what each needsany token
POST/v1/imports:upload_urlA signed URL to upload an export file tosettings.manage
POST/v1/importsStart an importsettings.manage
GET/v1/importsList imports, newest firstsettings.manage
GET/v1/imports/{import_id}An import and its progresssettings.manage
POST/v1/imports/{import_id}:cancelCancel a running importsettings.manage
POST/v1/imports/{import_id}:resumeResume a failed or cancelled import from where it stoppedsettings.manage

Payments

MethodPathWhat it doesNeeds
GET/v1/payments/methodsWhich payment methods are configuredany token
GET/v1/payments/usageThis month's conversations against the plan's limitsany token
POST/v1/payments/portalA Stripe Customer Portal session: card, invoices, cancelagent session, billing.manage
POST/v1/payments/seatsPay for more seats nowagent session, billing.manage
GET/v1/payments/invoicesInvoices and receipts, newest firstagent session, billing.manage
GET/v1/payments/invoices/{id}One invoice; poll it for a crypto payment's statusagent session, billing.manage
POST/v1/payments/invoices:completeReplace an under-paid crypto invoice with one for the shortfallagent session, billing.manage
GET/v1/payments/profileBilling name, country, email and tax idsagent session, billing.manage
PUT/v1/payments/profileSet the billing details; tax ids reach Stripeagent session, billing.manage
POST/hooks/payments/stripeStripe webhook (signed)no token
POST/hooks/payments/nowpaymentsNOWPayments IPN (signed)no token

Push

MethodPathWhat it doesNeeds
GET/v1/push/configThe VAPID public key browsers subscribe withany token
POST/v1/push/subscriptionsRegister this device for web push or FCMany token
GET/v1/push/subscriptionsList your registered devicesany token
DELETE/v1/push/subscriptions/{subscription_id}Remove a deviceany token
POST/v1/push:testSend a test notification to your devicesany token

Chats

MethodPathWhat it doesNeeds
GET/v1/chatsList chats the caller can seechats.access
POST/v1/chatsStart a chat with a known customerchats.access
GET/v1/chats/{chat_id}A chat with a page of its latest thread's events (or `thread_id`'s)chats.access
POST/v1/chats/{chat_id}:{action}An agent action on the chat: the realtime action's payload without chat_id, answered with its resultchats.access
GET/v1/threadsA chat's threads, newest firstchats.access
GET/v1/threads/{thread_id}One thread of a chat, with a page of its eventschats.access

Routing

MethodPathWhat it doesNeeds
GET/v1/routing/statusesWho takes chats now and how loaded they areteam.read
PUT/v1/routing/statuses/{agent_id}Set an agent's routing status; another agent's needs team.managechats.access
GET/v1/routing/queueChats waiting for an agentchats.access
POST/v1/routing/config:syncReload routing's view of agents, groups and rules nowteam.manage

Tickets

MethodPathWhat it doesNeeds
GET/v1/ticketsList tickets, newest-updated firstchats.access
POST/v1/ticketsOpen a ticket on a chatchats.access
GET/v1/tickets/{ticket_id}One ticketchats.access
PATCH/v1/tickets/{ticket_id}Change a ticket's status, subject, priority, assignee or groupchats.access
POST/v1/tickets/{ticket_id}:replyReply to the requester in the ticket's chat; a closed chat is reopened with the replychats.access
POST/v1/tickets/{ticket_id}:noteAdd an agents-only note to the ticket's chatchats.access

Reports

MethodPathWhat it doesNeeds
GET/v1/reports/viewsList your saved report viewsreports.read
POST/v1/reports/viewsSave a report viewreports.read
PATCH/v1/reports/views/{id}Rename or change a saved viewreports.read
DELETE/v1/reports/views/{id}Delete a saved viewreports.read
GET/v1/reports/schedulesList scheduled report emailsreports.read
POST/v1/reports/schedulesSchedule a report emailsettings.manage
PATCH/v1/reports/schedules/{id}Change a scheduled report emailsettings.manage
DELETE/v1/reports/schedules/{id}Delete a scheduled report emailsettings.manage
GET/v1/reports/{report}Run a report: summary, dashboard, total-chats, chat-engagement, missed-chats, campaigns, tags-usage, chat-ratings, availability, chat-forms, chat-duration, agent-performance, response-times, staffing-prediction, activity, queued-customers, queue-abandonment, goals, sales, chat-topics, transfers, channels, chat-to-ticket, satisfaction-comments, reviews, sentiment, unique-visitors. format=csv downloads it.reports.read

Customer identity

MethodPathWhat it doesNeeds
POST/v1/customer-tokenMint a customer token for the widget (visitor id, tenant identity token, or an email resume link)no token
GET/v1/customer-token/keysList the public keys that verify tenant identity tokenssettings.manage
POST/v1/customer-token/keysAdd a public key (ES256 or RS256 JWK) for tenant identity tokenssettings.manage
DELETE/v1/customer-token/keys/{id}Remove an identity keysettings.manage

Traffic

MethodPathWhat it doesNeeds
GET/v1/trafficVisitors on the website now, with segment countstraffic.read
GET/v1/traffic/countsVisitor counts per segmenttraffic.read
POST/v1/traffic/visitors/{customer_id}:inviteSend a visitor a message or start a chat with them (needs traffic.read too)chats.access
POST/v1/traffic:inviteMessage every visitor of a segment, or a list of visitors (needs traffic.read too)chats.access
GET/v1/traffic/segmentsList saved Traffic segmentstraffic.read
POST/v1/traffic/segmentsSave a Traffic segmenttraffic.read
PATCH/v1/traffic/segments/{id}Change a saved segmenttraffic.read
DELETE/v1/traffic/segments/{id}Delete a saved segmenttraffic.read
GET/v1/traffic/preferencesYour Traffic columns and sorttraffic.read
PUT/v1/traffic/preferencesSave your Traffic columns and sorttraffic.read

Visitors

MethodPathWhat it doesNeeds
GET/v1/visitors/hostsHosts the widget loaded on in the last 90 days, newest firsttraffic.read
GET/v1/visitors/install-statusWhether the widget is installed: the last visitor login and its hosttraffic.read
GET/v1/visitors/{customer_id}A visitor's live detail: current visit, pages, session variables, goalscustomers.read
GET/v1/visitors/{customer_id}/statsA customer's visit and chat counts and last visitcustomers.read

Campaigns

MethodPathWhat it doesNeeds
GET/v1/greetingsList campaigns with their last 7 days of statscampaigns.manage
POST/v1/greetingsCreate a campaigncampaigns.manage
GET/v1/greetings/{id}Get a campaigncampaigns.manage
PATCH/v1/greetings/{id}Change a campaigncampaigns.manage
DELETE/v1/greetings/{id}Delete a campaigncampaigns.manage
GET/v1/greetings/{id}/statsA campaign's stats per daycampaigns.manage
GET/v1/greetings/settingsCampaign settingscampaigns.manage
PUT/v1/greetings/settingsChange campaign settingssettings.manage
GET/v1/greetings/templatesReady-made campaignscampaigns.manage
POST/v1/greetings/templates/{key}:useCreate a draft campaign from a templatecampaigns.manage

Goals

MethodPathWhat it doesNeeds
GET/v1/goalsList goalscampaigns.manage
POST/v1/goalsCreate a goalcampaigns.manage
GET/v1/goals/{id}Get a goalcampaigns.manage
PATCH/v1/goals/{id}Change a goalcampaigns.manage
DELETE/v1/goals/{id}Delete a goalcampaigns.manage
GET/v1/goals/summaryVisitors, chats, goals and sales in the last 7 days against the 7 beforereports.read
GET/v1/goals/conversionsGoal conversions and sales with their chat attributionreports.read
POST/v1/trackReport a sale, a goal or a cart change (an API token with customers.write, or the widget's customer token)customers.write

Realtime

One WebSocket per agent device: wss://.../v1/rtm/agent, token in the Sec-WebSocket-Protocol: c2r.bearer.<token> subprotocol. Frames are { "v": 1, "action", "request_id", "payload" }; the first must be login. The same actions work over REST. Full request, response and push schemas are in events.json.

Agent actionsAgent pushes
login logout ping set_routing_status set_away list_routing_statuses list_chats get_chat list_threads start_chat resume_chat accept_chat decline_chat close_chat follow_chat unfollow_chat transfer_chat add_user_to_chat remove_user_from_chat list_agents_for_transfer send_event send_event_preview send_typing mark_events_as_seen delete_event set_reaction tag_thread untag_thread update_chat_properties update_thread_properties ban_customer multicastincoming_chat chat_summary_updated chat_unlisted chat_closed chat_transferred user_added_to_chat user_removed_from_chat incoming_event incoming_event_preview event_updated event_deleted incoming_sneak_peek incoming_typing events_marked_as_seen chat_properties_updated thread_properties_updated thread_tagged thread_untagged thread_summary_set queue_positions_updated routing_status_set customer_banned config_updated incoming_multicast incoming_error agent_disconnected

Webhooks

Subscribe an HTTPS endpoint to any of the events below (POST /v1/webhooks), optionally filtered by group, channel, author type or agent. Each delivery is a JSON POST of { id, event, created_at, organization_id, webhook_id, attempt, data }.

import { createHmac, timingSafeEqual } from "node:crypto";

// rawBody: the request body exactly as received, before any JSON parsing.
export function verify(secret, headers, rawBody) {
  const ts = Number(headers["x-c2r-timestamp"]);
  if (!Number.isInteger(ts) || Math.abs(Date.now() / 1000 - ts) > 300) return false;
  const want = createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest();
  return headers["x-c2r-signature"].split(",").some((part) => {
    const [v, hex] = part.trim().split("=");
    const got = Buffer.from(hex ?? "", "hex");
    return v === "v1" && got.length === want.length && timingSafeEqual(got, want);
  });
}
EventNeedsWhen
chat.startedchats.allA customer or agent started a chat (a new thread).
chat.queuedchats.allA chat entered the queue.
chat.assignedchats.allRouting assigned a chat to an agent.
chat.transferredchats.allA chat was transferred to another agent or group.
chat.unassignedchats.allA chat lost its agent and waits to be routed again.
chat.deactivatedchats.allA chat's thread ended without being closed by a person (inactivity).
chat.closedchats.allA chat's thread was closed.
chat.priority_changedchats.allA chat's priority changed.
goal.achievedchats.allA visitor in a chat reached a goal.
chat.ratedchats.allThe customer rated a chat.
chat.user_addedchats.allAn agent joined a chat.
chat.user_removedchats.allAn agent left a chat.
chat.properties_updatedchats.allA chat's properties changed.
thread.taggedchats.allA tag was added to a thread.
thread.untaggedchats.allA tag was removed from a thread.
thread.properties_updatedchats.allA thread's properties changed.
thread.summary_setchats.allAn AI summary was stored for a thread.
event.createdchats.allA message, file, form or other event was added to a chat.
event.updatedchats.allAn event was edited.
event.deletedchats.allAn event was deleted.
event.seenchats.allA chat member read events up to a time.
ticket.createdchats.allA ticket was created.
ticket.updatedchats.allA ticket's status, assignee or priority changed.
customer.createdcustomers.readA new customer was recorded.
customer.updatedcustomers.readA customer's details changed.
customer.identifiedcustomers.readA visitor was matched to a known customer.
customer.bannedcustomers.readA customer was banned.
agent.status_changedteam.readAn agent's routing status changed.
agent.createdteam.readAn agent was created.
agent.updatedteam.readAn agent was changed.
agent.deletedteam.readAn agent was deleted.
group.createdteam.readA group was created.
group.updatedteam.readA group was changed.
group.deletedteam.readA group was deleted.
tag.createdchats.accessA tag was created.
tag.updatedchats.accessA tag was changed.
tag.deletedchats.accessA tag was deleted.
canned_response.createdchats.accessA canned response was created.
canned_response.updatedchats.accessA canned response was changed.
canned_response.deletedchats.accessA canned response was deleted.
routing_rule.createdsettings.manageA routing rule was created.
routing_rule.updatedsettings.manageA routing rule was changed.
routing_rule.deletedsettings.manageA routing rule was deleted.
greeting.createdcampaigns.manageA greeting was created.
greeting.updatedcampaigns.manageA greeting was changed.
greeting.deletedcampaigns.manageA greeting was deleted.
settings.updatedsettings.manageOrganization or widget settings changed.
webhook.testdevelopers.manageA test delivery, sent from the API or the Settings page.