Webhooks V2

Get all OAuth credentials

Lists every OAuth credential set for the workspace. Client secrets are never returned.

get/webhooks_settings/oauth

Request

Response

The workspace's OAuth credentials

idstring uuid required

The id of the OAuth credentials. Pass this as a webhook's webhookOauthId to attach them.

namestring required

The label given to this credential set.

clientIdstring required

OAuth client ID used to authenticate with the token endpoint.

urlstring required

Token endpoint URL.

authMethodstring required

How the client credentials are presented to the token endpoint: client_secret_basic, client_secret_post or client_secret_jwt. Credentials created without this field report client_secret_basic, which is what they use.

customJwtClaimsstring[]

Names of the additional claims placed in the JWT assertion. Claim values are write-only and are never returned. Absent when no custom claims are configured.

customBodyParamsstring[]

Names of the additional parameters added to the token request body. Parameter values are write-only and are never returned. Absent when no custom parameters are configured.

customHeadersstring[]

Names of the additional HTTP headers added to the token request sent to the authorization server — not to the webhook delivery, which has its own separate customHeaders. Header values are write-only and are never returned. Absent when no custom headers are configured.

webhookMtlsIdstring uuid

The id of the mTLS configuration presented to the token endpoint. Absent when the token request does not use mTLS. Read the certificate from /v1/webhooks_settings/mtls/{id}.

createdAtinteger required

The date and time the OAuth credentials were created, in milliseconds.

updatedAtinteger required

The date and time the OAuth credentials were last updated, in milliseconds.

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.