post/scoped-tokens

Request

  • Base URL: https://api.useanima.sh/v1
  • URL: https://api.useanima.sh/v1/scoped-tokens
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Request body

audiencestring required

Token audience (typically the service identifier, e.g. 'api.useanima.sh')

scopesstring[] required

Scope strings the token grants, e.g. ['email:send']

ttlSecondsinteger

Token TTL in seconds (max 1h)

parentJtistring

Parent token jti for delegation chains

metadataobject

Free-form metadata (task id, conversation id, etc.)

Response

OK

tokenstring required

Raw JWT — only returned at issuance time

Changes

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