Amazi API
API authentication
Get an API token with your email and password, then use it for your requests.
1. Get a token
Send your Amazi email and password to POST https://api.amazi.pro/v1/auth/token:
curl --fail-with-body https://api.amazi.pro/v1/auth/token \
-H 'Content-Type: application/json' \
-d '{"email":"you@example.com","password":"YOUR_PASSWORD"}'
Replace the example credentials with your own. Your email must be verified. The HTTP 201 response contains token and item with the token's ID and expiration. Copy token, which starts with amz_api_. It is shown only once.
You can also run this request in the API v1 reference. Creating a token requires no existing token. The returned token is ready to use; there are no scopes to select or other tokens to obtain.
2. Use the token
Send the same token in the Authorization: Bearer header:
curl --fail-with-body https://api.amazi.pro/v1/projects/PROJECT_ID/chats \
-H 'Authorization: Bearer YOUR_API_TOKEN'
Replace PROJECT_ID with your project ID and YOUR_API_TOKEN with your token. In the interactive reference, select Authorize → userApiTokenBearer and paste the token.
The token uses your account's current project access. It can read and manage chats; sending messages can start agent work and use credits. It is not limited to one project. See Project chats.
Manage tokens
Use the same bearer token for GET /v1/auth/tokens to list your tokens and their IDs, or DELETE /v1/auth/tokens/{tokenId} to revoke one. Revocation returns HTTP 204. Lists never return secrets.
Tokens expire after 365 days by default. Creation optionally accepts name and expiresAt, an ISO UTC date within the next 365 days. You can have up to 20 active tokens. Existing tokens keep working with your account's project access.
Store the token in your server's secret storage. Keep it out of browser code, URLs and logs. Logging out of Amazi does not revoke it. Revocation blocks new requests but does not cancel work already accepted.
Errors
Email must be a valid address with at most 254 characters in total and 64 before @. Surrounding spaces are ignored. Malformed or oversized addresses return 400.
401 means invalid credentials or an invalid, expired or revoked token. 403 means your email needs verification or your account lacks project access. 404 means the resource is unavailable. 400 means invalid input. 409 means a conflicting operation or the active-token limit has been reached.
Each token allows 60 requests per minute. For 429, wait the number of seconds in Retry-After before retrying.