Create Service Delegation Token
POST/api/services/:service_name/delegation-token
Exchange the authenticated user's web/API session for a short-lived service delegation token scoped to one service, organization, and scope set. This does not create a persistent Morph API key.
Request
Responses
- 200
- 400
- 401
- 402
- 403
- 404
- 429
- 500
Short-lived delegation token and redacted claim summary
Request, scopes, or audience is invalid
User authentication is missing or invalid
Canonical billing policy denies token exchange
Organization, scope, or trust-and-safety policy denies token exchange
Target service does not exist
Delegation exchange rate limit exceeded
Delegation state could not be evaluated or token signing failed