# Quick Start & Authentication

Run your first clean-room AI search capture via REST API in under 60 seconds.

> Authenticate with a Bearer API key, call POST /v1/capture, and inspect billing headers and clean-room execution metadata.

## 1. Base URL & Authentication

All API endpoints are served over HTTPS at https://api.geoeval.com. Authenticate using an API key generated in console.geoeval.com via the Authorization: Bearer header. Optional multi-workspace routing is supported via X-Workspace-Id.

```bash
curl -X POST https://api.geoeval.com/v1/capture \
  -H "Authorization: Bearer $GEOEVAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "engine": "chatgpt",
    "prompt": "Best serverless Postgres databases for AI apps in 2026",
    "country": "us",
    "web_search": true,
    "include_raw_html": true
  }'
```

## 2. Discover Live Engines & Credit Rates

Avoid hardcoding supported engines, country exits, or credit pricing. Query GET /v1/engines to retrieve live availability, capabilities, and per-mode credit costs dynamically.

```bash
curl https://api.geoeval.com/v1/engines \
  -H "Authorization: Bearer $GEOEVAL_API_KEY"
```

## 3. Standard Billing & Telemetry Headers

Every API response includes deterministic billing and rate-limit headers so your pipelines can self-throttle and reconcile costs automatically.

| Header | Example | Description |
| --- | --- | --- |
| X-Request-Id | req_01JXYZ9A8B... | Unique trace identifier for logs and support. |
| X-Credits-Charged | 7 | Credits deducted (always 0 on non-200 errors). |
| X-Credits-Remaining | 4993 | Remaining workspace credit balance after this call. |
| X-RateLimit-Remaining | 28 | Remaining concurrent slots in your active plan. |
