Webhooks V2
Create OAuth credentials
Creates a reusable OAuth client credential set. Attach it to a webhook by passing the returned id as that webhook's webhookOauthId. Several webhooks may share one credential set, so rotating its client secret covers all of them at once. The client secret is write-only and is never returned.
Endpoint Permissions: Owner, Admin, Non-Signing Admin.
post/webhooks_settings/oauth
Request
- Base URLhttps://api.fireblocks.io/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Request body
Example request
{
"name": "Production treasury gateway",
"clientId": "my-client-id",
"clientSecret": "my-client-secret",
"url": "https://auth.example.com/oauth/token",
"authMethod": "client_secret_basic",
"customJwtClaims": {
"aud": "https://auth.example.com",
"email_verified": true
},
"customBodyParams": {
"scope": "payments.read payments.write"
},
"customHeaders": {
"x-api-key": "gateway-key"
},
"webhookMtlsId": "6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f"
}Response
created the OAuth credentials successfully
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production treasury gateway",
"clientId": "my-client-id",
"url": "https://auth.example.com/oauth/token",
"authMethod": "client_secret_basic",
"customJwtClaims": [
"aud",
"resource"
],
"customBodyParams": [
"scope"
],
"customHeaders": [
"X-Api-Key"
],
"webhookMtlsId": "6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f",
"createdAt": 1625097600000,
"updatedAt": 1625097600000
}Changes
No recorded changes to this operation across all 1 revision of this API.