Authentication
Authenticate every request with a bearer token in the Authorization header.
Authorization: Bearer amz_live_8f2c1d9a47b0e6c3Key types
| Prefix | Purpose | Delivers messages |
|---|---|---|
amz_live_ | Production traffic | Yes |
amz_test_ | Integration tests and CI | No, simulated |
Rotating keys
Create a second key, deploy it, then revoke the old one. Revoked keys stop working within a few seconds. A key that was exposed should be revoked immediately from Settings → API keys.
Idempotency
Send an Idempotency-Key header on POST requests. Repeating a request with the same key within 24 hours returns the original response instead of creating a duplicate.
curl -X POST https://api.amantizz.ru/v2/messages \
-H "Idempotency-Key: 6b1c-order-A-10482" ...