Skip to Content
Xeonr Developer Docs
API SpecificationCredentials

Describe kinds

POST
/xeonr.notify.v1.CredentialService/DescribeKinds

What credentials can be registered and what each one needs: its fields, which of them are secret, their input types and defaults, the channel it serves, and whether this deployment already holds a platform-wide default of that kind. The console builds its forms from this, which is what keeps a new kind from needing new UI.

Required scopes: notify:credentials:read

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

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.CredentialService/DescribeKinds" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "kinds": [
    "map[blurb:Where this owner's email leaves from. Either an SMTP relay, or an AWS IAM key. channel:CHANNEL_EMAIL fields:[map[hint:Leave empty to use SES with the AWS key below. input:text label:SMTP host name:host placeholder:smtp.example.com required:false secret:false] map[input:text label:Password name:password required:false secret:true]] kind:CREDENTIAL_KIND_SMTP name:Mail relay platformDefault:true]"
  ]
}