---
title: "Token"
method: POST
path: "/v1/auth/token"
tags: ["auth"]
---

# Token

`POST /v1/auth/token`

## Request

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

Exchange agent_id + signed timestamp for bearer token.

## Request body

- TokenRequest
  - `agent_id` string, required: Agent ID from the verify step.
  - `timestamp` string, required: Current Unix timestamp as a string.
  - `signature` string, required: Base64-encoded Ed25519 signature of the timestamp.

## Response `200`

Successful Response

- TokenResponse
  - `token` string, required: Bearer token for authenticated API requests.
  - `expires_in` integer, required: Token lifetime in seconds.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fereai/apis/fereai-gateway.md) - [All operations](https://skmtc.dev/fereai/apis/fereai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/fereai/apis/fereai-gateway/revisions/ad211f8e2f30?raw)
