Servers

Create a key for a server

Creates another live key for the server and answers its value once; it is never shown again. Every key of a server has the same rights. A server holds at most two live keys: the one in use and the one being rotated in.

post/v1/servers/{id}/tokens

Request

  • Base URL: https://api.sendora.se
  • URL: https://api.sendora.se/v1/servers/{id}/tokens
  • Auth: HTTP bearer

Path parameters

idstring uuid required

The server id.

Request body

namestring required

1 to 100 characters.

Response

The new key, its value shown this once.

tokenIdstring uuid required
namestring required

The name given at creation, for people to tell keys apart.

prefixstring required

The first characters of the key, to match it with a value in hand.

createdAtstring date-time required
revokedAtstring date-time nullable required
tokenstring required

The key itself, shown this once.

Changes

No recorded changes to this operation across all 1 revision of this API.