Authentication
Every request authenticates with a single header that carries your API key. There are no unauthenticated endpoints and no OAuth flow to set up.
How do I send my API key?
Send your key on every request in the X-API-Key header.
X-API-Key: at_live_xxxxxxxxxxxxxxxxxxxxxxxx Antero Trail issues the keys, and there is no self-serve endpoint for creating one, so request access and we will send you a key.
What is the difference between test and live keys?
You get two keys. An at_test_ key runs the
identical pipeline as a live key, with the same parsing and
the same ESX output, but its jobs are flagged environment: "test"
and excluded from usage and invoice reporting. Build and test your
integration against the test key, then switch to the live key when you
are ready to go live.
| Prefix | Environment | Billed |
|---|---|---|
at_test_ | Test, with an identical pipeline | No |
at_live_ | Live | Yes |
Treat both keys like passwords. Never put one in client-side code or a public repo, because every call is meant to run server to server. If a key leaks, tell us and we will revoke it and issue a new one.
What happens when authentication fails?
A missing or bad key is rejected before any work happens, with a
401 status and a machine-readable error.code, as
the table below shows.
| Situation | Status | error.code |
|---|---|---|
X-API-Key header missing | 401 | missing_api_key |
| Key unknown, revoked, or partner suspended | 401 | invalid_api_key |
Every error body, whether it comes from authentication or anything else, follows one shape, so you can handle them all the same way. The Errors & limits page has the full envelope and code list.