Praecise account/ Reference/ Service tokens
Mint a service token
post/api/tokens
The only time the token itself is readable. A signed-in person only: a token that could mint its successors would make revoking the original pointless.
Before you call
- Credential
Authorization: Bearer $KEY
Request bodyapplication/json, required
- namestringrequiredAt most 80 characters.
Responses
- 201application/jsonMinted.
- namestringrequired
- tokenstringrequiredStarts
prc_. Shown once. - notestringrequired
- 400application/jsonThe token needs a name of 1 to 80 characters.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 401application/jsonNobody is signed in.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 403application/jsonA service token was presented. Tokens are managed by a signed-in person, not by another token.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired