Delete OAuth credentials
EA Early Availability: this endpoint may change before GA.
Deletes an OAuth credential set. By default the delete is refused while the credentials are still in use: if any webhook references them, nothing is deleted and the request fails with 409 Conflict, naming the reason and listing the ids of the referencing webhooks. This protects a shared credential set from being removed out from under the webhooks that depend on it, since several webhooks may reference the same one.
Pass forceDelete=true to delete anyway. That detaches every referencing webhook — it clears each webhook’s webhookOauthId, it does not delete the webhook — then deletes the credential set and returns the deleted resource together with detachedWebhookIds. The detached webhooks keep delivering notifications, but without an Authorization header, so their endpoints will see unauthenticated deliveries from that point on.
When nothing references the credentials the delete succeeds either way, and detachedWebhookIds comes back empty.
Endpoint Permissions: Owner, Admin, Non-Signing Admin.
Path Parameters
Query Parameters
Response
The deleted OAuth credentials, plus the ids of any webhooks that were detached from them
The deleted OAuth credential set, plus the ids of any webhooks the delete detached from it. Webhooks are only detached by forceDelete=true; without it a delete is refused with 409 while anything still references the credentials.
How the client credentials are presented to the token endpoint: client_secret_basic, client_secret_post, client_secret_jwt or private_key_jwt. Credentials created without this field report client_secret_basic, which is what they use.
"client_secret_basic"
Algorithm of the key pairs, and of the assertions signed with them. Present only when authMethod is private_key_jwt. Which key is signing is never returned; each assertion names it in its kid header. Defaults to RS256 on create only.
RS256, PS256, ES256 "RS256"
The id of the set of custom headers added to the token request sent to the authorization server — not to the webhook delivery. Absent when the token request adds none. Header values are write-only and are never returned; read the header names from /v1/webhooks_settings/custom_headers/{webhookCustomHeadersId}.
"6f1b7c62-0f2e-4f1a-9a5e-9f2b1c3d4e5f"