POST https://api.agentity.to/auth/token
Request
Basic Auth credentials encoded as
Basic base64(email:password).Response
A successful request returns200 OK with both tokens.
A short-lived JWT. Include this in the
Authorization header as Bearer <accessToken> for all authenticated requests.A long-lived token. Use it with the Refresh Token endpoint to obtain a new access token when the current one expires.
Pass the
accessToken as Authorization: Bearer <accessToken> on all subsequent requests that require authentication.Errors
| Status | Description |
|---|---|
401 | Invalid email or password. |