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
- Base URLhttp://localhost:8000/api/v1
- AuthHTTP bearer
- TypeScripthttps://skmtc.dev/deeptrail/apis/deepsecure-api-dual-service-architecture/docs/auth/delegate/post.tsA function with typed inputs. Its response is checked against the schema.
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..."
}Changes
No recorded changes to this operation across all 2 revisions of this API.