admin

Create an API token, returning its secret exactly once

The secret is in this response and nowhere else. Naming a scope is a request rather than a grant: a token holds the intersection of its scopes and the live role of the member who created it, read at request time, so demoting that person weakens every token they made in the same moment.

post/v1/tokens

Request

  • Base URL: https://api.indraft.io
  • URL: https://api.indraft.io/v1/tokens
  • Auth: HTTP bearer

Request body

labelstring required
scopesstring[] required

Response

Success

idstring required
prefixstring required
tokenstring required

Changes

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