Webhooks
Where Touchque sends the result of every login request (approved or rejected) and the follow-up events, as a signed POST to your server.
When your app sends a login request through the 2FA API, your user approves or rejects it on their phone. Webhooks is where you tell Touchque which URL on your server should hear the result, so your server does not have to keep asking.
Without a webhook, nothing breaks: your server can still ask for the result with GET /login/status (polling). A webhook is faster and needs fewer requests.
The same URL also receives the Vishing Shield events (APPROVAL_RECONFIRMED, APPROVAL_REVOKED). Every delivery is signed, so your server can prove it came from Touchque.
In the dashboardCustomers → 2FA API → Webhooksdashboard.touchque.com/webhook
Permissions
- Developers and admins who connect their own app to the 2FA API.
- Every member of the organization can open the page and see the URL and the recent deliveries. Only owners and admins can set, change or remove the URL and reveal the signing secret.
Set or change the callback URL
- Open Customers → 2FA API → Webhooks.
- Under Webhook, press Edit next to Callback URL (or type straight into the empty field the first time).
- Type the full address of your endpoint, for example
https://yourdomain.com/api/2fa/callback, and save. - If two-step verification is on for your account, approve the change on your phone.
The change is written to the System log. Touchque sends events only to the host of this URL.
Check that your endpoint receives events
- On Webhooks, press Send test event under Test delivery.
- Touchque sends a real, signed sample event to your URL and shows the status code your endpoint returned.
- The test appears in Recent deliveries with the others.
Get the signing secret
- On Webhooks, go to Signing secret and press Reveal (owners and admins only).
- Copy it into your server's configuration and press Hide.
- Verify the
x-signatureheader of every delivery with it before you trust the request.
The signing secret is your API secret: the same value you got with your API key. There is no separate webhook secret. Every reveal is recorded in the System log.
Stop deliveries
- On Webhooks, press Remove webhook and confirm.
- Approve on your phone if two-step verification is on for your account.
- From then on your server gets login results only by polling
GET /login/status.
Settings reference
Webhook
| Setting | Description |
|---|---|
| Callback URL | The address on your server that receives every event. Must be HTTPS (only localhost may be plain HTTP). |
| Test delivery | Send test event sends a real, signed sample event and shows the status code your endpoint returned. |
| Remove webhook | Stops every delivery. Login results are then only available by polling GET /login/status. |
Signing secret
| Setting | Description |
|---|---|
| Secret | The HMAC-SHA256 key every delivery is signed with (x-signature header). Owners and admins can reveal it; each reveal is recorded. |
Recent deliveries
| Setting | Description |
|---|---|
| Deliveries | The last 20 deliveries to your endpoint, test events included: time, result and the status code your server answered. |
Events we send
| Setting | Description |
|---|---|
| SUCCESS | The user approved. provisional: true means they approved during a phone call; wait for APPROVAL_RECONFIRMED before a critical action. |
| REJECTED | The request was refused. The reason field says why (listed under Rejection reasons on the page). |
| APPROVAL_RECONFIRMED | After the call, the user confirmed on the phone that a provisional approval was theirs. |
| APPROVAL_REVOKED | The user took an approval back. End the session or stop the action; their 2FA is frozen. |
Limits
- One callback URL per organization.
- HTTPS only, except
localhost. - Recent deliveries shows the last 20.
- Your handler should ignore event types it does not know, and treat a
reasonit does not know as a rejection.
See also
- API keys: The keys your server uses to call the Touchque API: create, rotate and revoke them, and see how much each one is used.
- End users: The people who sign in to your own app and approve with Touchque Authenticator through the 2FA API: their status, phone, secrets, passkeys and recent requests.
- Action types: The actions your server asks your users to approve, such as a sign-in or a transfer, with the name and description they see on their phone.
- System log: Every request and sign-in Touchque answered for your app, with its IP, browser, status, latency and the redacted request, newest first.
API and SDKs
- The webhook: what it sends and how to check the signature
- Polling instead: GET /login/status
- REST reference
Changelog
- New2026.11.10 New webhook events for Device risk, account recovery and help desk sessions.