Issues a namespace-scoped JWT. Requires the admin token, even when the deployment allows unauthenticated requests.
Changed onRequest
- Base URLhttps://api.rivet.dev
- URLhttps://api.rivet.dev/auth/tokens
- Auth
- HTTP bearer
- or API key in header x-rivet-token
Request body
Example request
{
"grants": [
{
"target": {
"id": "d97pbq1nyqxw1w5qdwz0iirbqiblh2"
}
}
]
}Response
The issued token. The response carries Cache-Control: no-store.
Example response
{
"token": "eyJ..."
}Changes
- breaking
removed the enum value
runnerof the request property// - breaking
removed the enum value
runner_configof the request property// - breaking
the
request property's min was increased to1.00 - breaking
the
request property's minItems was increased to1 - breaking
the
//request property's minItems was increased to1 - breaking
added the pattern
^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$to the request property - info
the endpoint scheme security
rivet_token_headerwas added to the API - info
added the new
nodeenum value to the request property// - info
added the new
poolenum value to the request property// - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- info
endpoint added
- info