auth

Token

Exchange agent_id + signed timestamp for bearer token.

post/v1/auth/token

Request

  • Base URL
    https://api.fereai.xyz
  • URL
    https://api.fereai.xyz/v1/auth/token
  • Auth
    none declared

Request body

agent_idstring required

Agent ID from the verify step.

timestampstring required

Current Unix timestamp as a string.

signaturestring required

Base64-encoded Ed25519 signature of the timestamp.

Example request

{
  "agent_id": "agent_abc123",
  "signature": "base64-signature...",
  "timestamp": "1709251200"
}

Response

Successful Response

tokenstring required

Bearer token for authenticated API requests.

expires_ininteger required

Token lifetime in seconds.

Example response

{
  "token": "agt_eyJhbGciOiJFZ...",
  "expires_in": 3600
}

Changes

No recorded changes to this operation across all 1 revision of this API.