Skip to content

Authentication

Send your key as a bearer token on every request:

Terminal window
curl -H "Authorization: Bearer am_live_..." https://api.argamin.ai/v1/coverage
Prefix Use Billing
am_test_ Trying the API Never billed. Up to 10 stops per request and 100 calls a day
am_live_ Production Billed per the price list
  • A key is shown once, when you create it. We store only a hash, so we cannot show it again. If you lose it, create a new one.
  • You can have several keys per account. Give each a name, limit it to the services it needs and set a spend cap.
  • Never ship a key to a browser or a mobile app. A key exposed in client code can be copied and billed to you. Call the API from your server.
  • Rotate a key by creating a new one, deploying it, then deleting the old one.

A missing or invalid key returns HTTP 401 with the code UNAUTHENTICATED, or KEY_REVOKED for a revoked key. See Errors.

A monthly spend cap stops billable calls that would pass it. Those calls fail with SPEND_CAP_REACHED (HTTP 402) and are not billed. Raise the cap in the dashboard.