Skip to main content
POST
Issue a new credential for an agent

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

Body

application/json

Validation for POST /v1/agents/{agent_id}/credentials.

Top-level shape and per-grant type are validated here. RAR grant sub-field shape is owned by AuthorityValidator (the canonical), so the controller reads granted_scopes from the raw input after validation so every sub-field reaches the service intact. Redeclaring sub-field rules here would silently drop any RAR field not in the local whitelist.

name
string
required
Required string length: 2 - 255
granted_scopes
object[]
required
Required array length: 1 - 20 elements
expires_at
string<date-time>
required
revocation_policy
enum<string>
required
Available options:
kill,
drain
description
string | null
Maximum string length: 500
max_concurrent_invocations
integer | null
Required range: 1 <= x <= 1000
app_id
string | null
project_id
string | null

Response

success
boolean
required
data
object
required