Skip to main content
POST
Attenuate token

Authorizations

Authorization
string
header
required

Biscuit-based bearer token. Obtain tokens from the Adaptyv Portal or via the /tokens endpoint. Tokens encode organization membership and role-based capabilities; the API verifies the token's cryptographic signature and authorization claims before processing requests. Use /tokens/attenuate to create restricted tokens for delegation.

Body

application/json

Request to attenuate (restrict) an existing token.

Attenuation is a Biscuit cryptographic feature that adds restriction blocks without needing the private signing key. Any authenticated user can attenuate their tokens to create limited-scope versions for delegation.

attenuation
object
required

Restrictions to apply to the token.

name
string
required

Human-readable label for this attenuated token.

Names are not unique — they are purely for display purposes.

token
string
required

Existing token string (format: abs0_{slug}{biscuit_base64}) to attenuate.

attenuated_parent_token_id
string<uuid> | null

If attenuating an already-attenuated token (chained attenuation), provide the id of the parent attenuated token record. Omit when attenuating a root token directly.

Response

Token attenuated and persisted

Response after attenuating a token.

id
string
required

Database ID of the attenuated token record (for revocation/management).

token
string
required

The attenuated token string. Format: abs0_{slug}{biscuit_base64}.