Callback
Set callback URLs per authorization request and see how metadata appears in the callback body.
Configure where Tecalis sends callbacks and see how the metadata you send appears in the callback body.
If you reuse the same callback URLs across authorization requests, set them once in your workflow configuration. You don't need to send them in every POST /api/auth request. Override a URL per request only when you need a different destination for that authorization.
In your workflow's Callback settings, enter the destination URL for each outcome you want to receive: Process approved, Process rejected, or Process cancelled.
Callback endpoint requirements
- Use a URL that Tecalis Bridge can reach. The endpoint doesn't have to accept unauthenticated requests: if it requires OAuth, configure it in your workflow.
- Accept
POSTrequests with a JSON body and theContent-Type: application/jsonheader.
Callback types
| Process outcome | Callback field |
|---|---|
| OK | callback |
| KO | callback_ko |
| Cancelled | callback_cancelled |
Set a callback URL per request
- Add the optional
replacementsobject to your Authorization request body. - To override the URL for an OK or KO outcome, set
replacements.callbackorreplacements.callback_ko, respectively. Each field takes a URL string.
{
"replacements": {
"callback": "http://callback",
"callback_ko": "http://callback_ko"
}
}Authorization request and callback body
This POST /api/auth request sends two fields in metadata without overriding the callback URLs set in the workflow.
{
"api_key": "API_KEY",
"profile_uuid": "UUID",
"short_url_pwcs": true,
"metadata": {
"variable1": "value1",
"variable2": "value2"
}
}In the callback body, variable1 and variable2 appear at the top level alongside auth_uuid (the authorization ID), not inside a metadata object.
{
"variable1": "value1",
"variable2": "value2",
"auth_uuid": "UUID"
}Optional: Authenticate callbacks with OAuth
If your callback endpoint requires OAuth, turn on Enable OAuth in your workflow. Bridge requests an OAuth token before calling your callback URL. Both the token URL and the callback URL must be reachable from Bridge; enabling OAuth does not make a private network reachable.
- Enter your provider's Token URL and Grant type. For client credentials, use
client_credentials. - Enter your Client ID and Client secret. Under Client auth, select
basicto send client credentials in the header orbodyto send them as form fields, depending on what your provider expects. - Enter a Scope if your provider requires one. The Username and Password fields apply only to the password grant.
Callback source IP
All callbacks come from the fixed IP address 34.78.205.27. If your endpoint restricts inbound traffic by IP address, add this address to your allowlist.
Updated 2 days ago
