Authentication
Delegate Access to Another Agent
Allow an authenticated agent to generate a temporary, scoped credential (macaroon) and delegate it to another agent for specific resources and permissions.
post/auth/delegate
Request body
Example request
{
"target_agent_id": "agent-target-1234",
"resource": "openai-api",
"permissions": [
"read",
"write"
],
"ttl_seconds": 3600
}Response
Delegation token created successfully
Example response
{
"delegation_token": "MDAxY2xvY2F0aW9uIGh0dHA6Ly9leGFtcGxlLm9yZy8KMDAyY2lkZW50aWZpZXIg..."
}