0 · Getting Started

GET/api/auth/verify

Verify API key

Verify that your API key is valid and inspect its metadata.

Run this first after generating a key to confirm it is active and check the environment (test vs live).

Authentication

  • Header: x-api-key: {{apiKey}}

Success — 200 OK

{
  "success": true,
  "message": "API key is valid",
  "business": { "id": "org_abc123", "name": "Acme Corp", "slug": "acme-corp" },
  "key": { "id": "sk_test_abc123", "environment": "test" },
  "timestamp": "2026-06-26T10:00:00.000Z"
}

Common errors

  • 401 — key missing, malformed, or revoked
  • 403 — key found but inactive

Headers

x-api-key

Responses

200 – Key valid

{
  "success": true,
  "message": "API key is valid",
  "business": {
    "id": "org_abc123",
    "name": "Acme Corp",
    "slug": "acme-corp"
  },
  "key": {
    "id": "sk_test_abc123",
    "environment": "test"
  },
  "timestamp": "2026-06-26T10:00:00.000Z"
}
boltTry it
env
GEThttp://localhost:5050/api/auth/verify

Headers

x-api-key

Code samples

curl -X GET 'http://localhost:5050/api/auth/verify'