Developer documentation
Authenticate a passport signature and mint one audience-bound identity token
POST/api/auth/agent-token
Request
No account or developer API key. Requires the agent's passport proof, never anonymous minting. The signed payload carries passport_id, ts (milliseconds), nonce, aud, optional ttl and purpose. A token is not permission; the receiving service decides.
No account or developer API key is required. Choose a trusted issuer origin. Public lookups do not prove that the caller owns the passport. Token minting requires the agent's signed passport proof.
Generated curl examples use GATEWAY for the deployment origin and ID for a path identifier. Set those shell variables before running the request. JSON examples show the request shape; replace each sample value with your own input.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| payload | body | string | Yes | Base64url of the raw signed JSON payload. |
| signature | body | string | Yes | Base64url Ed25519 signature over the payload bytes. |
Request schema
The JSON body follows this schema. Nested required fields are listed inside each object.
Responses
Illustrative response bodies are generated from the schema. Sample IDs, dates, numbers and strings are placeholders. The schema below each status is the response contract.
| Status | Description | Media type |
|---|---|---|
| 200 | EdDSA JWT, typ passcontrol-agent+jwt; claims follow PublicAgentTokenClaims. | application/json |
| 501 | signing_not_configured; the issuer has no signing key or configured origin. | application/json |
| default | Authentication, input, rate-limit or service error; never an identity assertion. | application/json |
Errors
501: signing_not_configured; the issuer has no signing key or configured origin. default: Authentication, input, rate-limit or service error; never an identity assertion.
A successful HTTP response is not permission. Check the returned status or decision and apply your service's access rule.
Rate limit
20 requests per IP address per 60 seconds.
On 429, wait for Retry-After before retrying. An unavailable check must never be treated as a successful identity or mandate decision.