API tokens, webhooks and OAuth apps
The API and webhooks page is where you connect your own code to Click2Reply: tokens for scripts and bots, OAuth apps other teams can install, and webhooks that send events to your server. It is the same REST and realtime API the app itself uses, with no metering. This page covers the screens; for the API itself, see the developer quickstart.
Settings -> API and webhooks
The page has four tabs: Personal tokens, Bot tokens, Your apps and Webhooks. The intro line at the top gives the address of the full API reference.
Who can use what:
- Personal tokens - every built-in role, agents included. You see and revoke your own tokens; owners, vice owners and admins see everyone’s.
- Bot tokens, Your apps and Webhooks - owners, vice owners and admins.
Create a personal token
Section titled “Create a personal token”A personal token acts as you, with the scopes you pick and your role allows.
-
Open Personal tokens and click Create token.
-
Enter a Name that says what uses it.
-
In Expires, choose In 30 days, In 90 days, In a year or Never.
-
Under Scopes, tick what the token may do. Pick only scopes your own role has, or the token is not created.
-
Click Create token.

-
Copy the token from Your new token and click Done.
The list shows each token’s Name, what it Starts with, how many Scopes it has, when it was Last used and when it Expires.

Create a bot token
Section titled “Create a bot token”A bot token lets your own bot answer chats as one of your bot agents. Bots never take a seat. Create the bot agent on the Team page first.
- Open Bot tokens and click Create token.
- Enter a Name, pick the Bot, and choose when it Expires.
- Tick the Scopes. A bot token can have no more than both you and the bot’s role allow.
- Click Create token, then copy the token. It is shown once.
Revoke a token
Section titled “Revoke a token”- Click Revoke on the token’s row.
- Confirm with Revoke. Anything using the token stops working at once.
Register an OAuth app
Section titled “Register an OAuth app”Register an app when you build an integration other teams install. People connect it through a consent screen.
- Open Your apps and click Register app.
- Enter the app’s Name, Description and Website.
- In Redirect URIs (one per line), list where to send people after they approve. Each must be
https, orhttponlocalhost. - Choose the app type:
- Server app - keeps a client secret.
- Browser or mobile app - has no secret and uses PKCE.
- Tick List it in every team’s Apps page to offer it to every Click2Reply team.
- Under Most it may ask for, tick the scopes the app may request.
- Click Register. For a server app, copy the client secret from Your new client secret: it is shown once.
The list shows each app’s Client ID, Type, number of Installs, and Listed when it is offered to every team.
- New secret (server apps) issues a new client secret. The old secret stops working at once.
- Delete removes the app. Every install of it loses access.
Add a webhook
Section titled “Add a webhook”A webhook sends events to your URL as they happen. Click2Reply POSTs each event signed with HMAC-SHA256, and retries failed deliveries with backoff.
-
Open Webhooks and click Add webhook.
-
Enter the URL (https). It must be an https address on a public host.
-
Optionally add a Description.
-
Tick the events to send. They are grouped by kind, such as chats, customers and agents. Pick only events your role may see, or the webhook is not added.
-
Click Add webhook.

-
Copy the signing secret from Your new signing secret. It is shown once.
The list shows each webhook’s URL, number of Events, who it was Created by (You, or the app that added it), and whether it is On, Off or Paused.
Test and manage a webhook
Section titled “Test and manage a webhook”Click a webhook’s URL to open it.
- Send events switches delivery on or off.
- Send a test sends a test event and shows the HTTP status and time, or why it failed.
- New secret issues a new signing secret. The old one keeps signing for 24 hours so you can switch over.
- Delete stops sending events and removes the webhook.
If a webhook keeps failing, Click2Reply pauses it and shows when and why. Fix your endpoint, then click Resume.
Under Deliveries, each attempt shows When, the Event, the Result (Delivered, Failed, Gave up, Paused after errors, Paused or Test), the HTTP status and the Duration. Click Send again to resend one.
Approve an app that wants to connect
Section titled “Approve an app that wants to connect”When you connect a third-party app, it sends you to a Click2Reply consent screen. You must be signed in.
- Read the screen: Connect app says which app, which developer built it and which organization it wants access to.
- Under It will be able to:, check the list of what it asks for. Website and Privacy policy link to the developer’s pages when they gave them.
- Click Allow access to connect it, or Cancel to refuse. Either way you go back to the app.

If the app asks for something your role cannot grant, that line says (your role cannot grant this), the screen says Some of this access needs an admin., and Allow access is disabled. Ask an admin to connect it.
If the link that sent you is broken, the screen says This authorization request is not valid. Go back to the app and try connecting again.
Apps your team has connected are listed on the Apps page.