Notix
API reference

Auth.

Check which team and permission an API key has. Every request needs an API key in the Authorization header; the reference overview covers keys, errors and rate limits.

Check an API key

GET/v1/auth/checkSending or full access key

Returns the team and the permission of the key in the Authorization header. It grants nothing, so a sending access key may call it too. The SMTP relay uses it to check a key at AUTH time.

terminal
curl -X GET "https://app.usenotix.dev/api/v1/auth/check" \
  -H "Authorization: Bearer $NOTIX_API_KEY"

Responses

200The key is valid; the team, key and permission it names.
200 response fields
FieldTypeAbout
okrequiredboolean

Always true on a 200.

One of true.

teamIdrequirednumber

The team the key belongs to.

keyIdrequirednumber

The id of the key presented.

permissionrequiredstring

FULL or SENDING.

401No Authorization header was provided.
403The key is malformed, unknown or revoked.