astrom8 ไทย Get API key
Get started

Authentication

Your API key is a bearer token — include it in the Authorization header (or X-API-Key) on every request.

Header format

Attach Authorization: Bearer <YOUR_API_KEY> to every API call.

Authorization: Bearer YOUR_API_KEY

You can also send the key as X-API-Key: YOUR_API_KEY. If both headers are present, Authorization wins.

Test with cURL

# Smoke test — list available planets at a given UTC moment
curl -s "https://api.astrom8.com/v1/planets?dt=2026-05-09T00:00:00Z" \
  -H "Authorization: Bearer $ASTROM8_API_KEY" | jq .

401 vs 403 vs 429

401 Unauthorized

401 Unauthorized — header missing or invalid API key

402 Payment Required

402 Payment Required — the key is valid but the account has no credits left, or fewer than this endpoint costs

403 Forbidden

403 Forbidden — the key is valid but your plan does not include this endpoint (code endpoint_tier_locked)

429 Rate Limited

429 Too Many Requests — exceeded current tier rate limit

Sandbox vs Live keys

Only live keys are available today — sandbox keys are on the roadmap. Free covers every compute endpoint, including the Thai calendar and natal chart, so you can experiment without billing impact.