Skip to Content
Xeonr Developer Docs
API SpecificationCredentials

Delete credential

POST
/xeonr.notify.v1.CredentialService/DeleteCredential

Removes the credential for one (owner, kind). Deliveries fall back to the next owner in the resolution chain, which is usually the deployment default — so this is a demotion rather than a breakage. Where the deployment holds no default of that kind, the channel stops working for that owner. A product's service account may call this for its own application — the one whose slug the account's token names — so a product owns its catalogue and its credentials without a person in the loop.

Required scopes: notify:credentials:admin

Authorization

BearerAuth
AuthorizationBearer <token>

An access token from Xeonr Auth, presented as Authorization: Bearer <token>. Its audience must include https://notify.xeonr.io, and it must carry the scope the method lists.

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

ownerUrn?string
Length1 <= length <= 191
kind?not unknown

CredentialKind is a kind of delivery credential notify can hold on somebody's behalf. Each one serves a channel, and each declares its own fields — see CredentialKindSpec — so adding a kind is a server change rather than another console screen.

Value in"CREDENTIAL_KIND_UNSPECIFIED" | "CREDENTIAL_KIND_DISCORD_BOT" | "CREDENTIAL_KIND_SMTP" | "CREDENTIAL_KIND_APNS" | "CREDENTIAL_KIND_FCM" | "CREDENTIAL_KIND_WEB_PUSH"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.CredentialService/DeleteCredential" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{}