Webhooks
Set webhook OAuth credentials
Configure OAuth 2.0 credentials for authenticating webhook callbacks to your endpoints.
When you provide a callbackUrl in estimate requests, we will:
- Request an access token from your OAuth server using these credentials
- Include the token in the Authorization: Bearer <token> header
Security:
- Client secrets are stored securely encrypted
- Tokens are cached and automatically refreshed
- Only client_credentials grant type is supported
put/v1/webhook/oauth
Request
- Base URL: https://api.handoff.ai
- URL: https://api.handoff.ai/v1/webhook/oauth
- Auth: HTTP bearer
Request body
Example request
{
"clientId": "webhook-client-123",
"clientSecret": "secret_xxxxxxxxxxxxx",
"tokenEndpointUrl": "https://auth.example.com/oauth/token",
"scope": "webhooks:receive",
"audience": "https://api.example.com",
"grantType": "client_credentials"
}Response
OAuth credentials configured successfully
Example response
{
"clientId": "webhook-client-123",
"tokenEndpointUrl": "https://auth.example.com/oauth/token",
"scope": "webhooks:receive",
"audience": "https://api.example.com",
"grantType": "client_credentials",
"enabled": true
}Changes
No recorded changes to this operation across all 1 revision of this API.