Authentication

How to authenticate with the AEO Goal REST API using Bearer tokens.

Last updated November 25, 2026

The AEO Goal REST API uses Bearer token authentication. All API requests must include an Authorization header with a valid API key.

Getting a token

Create a personal API key in Settings → API (see API Keys & Scopes).

Your key starts with aeo_ and looks like:

aeo_AbCdEfGhIjKlMnOpQrStUvWxYz01234567890123456789

The full secret is shown only once at creation time - copy and store it securely. AEO Goal never shows the full key again; only the first 8 characters are stored and displayed.

Making authenticated requests

Include the key in every request as a Bearer token:

curl https://api.aeogoal.com/api/me/api-credits \
  -H "Authorization: Bearer aeo_YOUR_KEY_HERE"

Idempotency for write requests

Every authenticated personal-key POST, PUT, PATCH, and DELETE request requires an Idempotency-Key header, even a POST that only calculates a preview. Missing keys return 428; invalid keys return 422. Ordinary GET requests do not require this header.

Use a nonblank string of at most 255 characters. A freshly generated UUID is recommended. Generate a new value for each logical operation; preserve the same value and exact request body when retrying that operation. Keys are scoped to the authenticated user, HTTP method, and path, including across that user’s personal keys.

Completed keys currently have no configured expiry. Do not reuse a key for a new operation or assume it becomes reusable after 24 hours. A completed response is replayed; a different body or an in-progress duplicate returns 409. Successful 2xx responses and stable 409/422 outcomes are retained. Transient failures release the claim; streaming responses are not replayed.

Example in PowerShell (uses a file to avoid shell-specific JSON quoting):

# Set AEOGOAL_API_KEY privately in your environment before running.
$idempotencyKey = [guid]::NewGuid().ToString()
'{"domain":"example.com"}' | Set-Content -NoNewline -Encoding ascii preview.json
curl.exe -X POST "https://api.aeogoal.com/api/seo/domain/preview" `
  -H "Authorization: Bearer $env:AEOGOAL_API_KEY" `
  -H "Content-Type: application/json" `
  -H "Idempotency-Key: $idempotencyKey" `
  --data-binary "@preview.json"

Keep $idempotencyKey unchanged if retrying that same request.

API reference and route paths

The public OpenAPI reference lists the stable developer operations, methods, schemas, scopes, products, and credit costs. Workspace route families have additional SaaS permissions; see API Keys & Scopes.

/api/ai-search, /api/ai-seo, and /api/usage are route prefixes, not callable collection endpoints. For example, use GET /api/ai-search/citations, GET /api/ai-seo/prompts, or GET /api/usage/current-month, subject to the operation’s permissions and parameters. To check authentication, use GET /api/me/api-credits as shown above.

Base URL

All API endpoints are at:

https://api.aeogoal.com

What API keys can access

Verified Free keys can use the live domain preview and credit balance. A settled Wallet purchase unlocks the documented stateless domain and content SEO operations; API Volume provides the same endpoint set. Workspace routes require an eligible SaaS subscription. Products combine on one account: subscribers keep their workspace permissions and gain the purchased stateless operations and API capacity. Key scopes can further restrict access and do not expand automatically after a purchase.

Personal keys are blocked from sensitive endpoints regardless of scope:

  • Billing and account management (/api/billing, /api/me/organization)
  • Team and user management (/api/teams, /api/admin)
  • Security and auth (/api/auth, /api/sessions, /api/oauth)
  • Onboarding (/api/onboarding)
  • Course checkout (/api/courses)
  • Key management itself (/api/me/api-keys)

These endpoints require an interactive browser session - no scope grants API key access to them.

Error responses

Status Meaning
401 Unauthorized Missing or invalid Bearer token
403 Forbidden Valid token but blocked endpoint (sensitive path) or insufficient scope
402 Payment Required The operation requires a different plan or purchased Wallet entitlement
404 Not Found The resource is missing or outside the key’s brand allowlist
409 Conflict The idempotency key was reused with another payload, a duplicate is still running, or the resource state conflicts
413 Payload Too Large The route’s documented byte limit was exceeded
422 Unprocessable Entity A field, collection, query, or schema constraint failed
428 Precondition Required A mutating personal-key request omitted Idempotency-Key
429 Too Many Requests Rate limit exceeded; retry after Retry-After header
500/502/503/504 A server or dependency failed; retry only transient failures with bounded backoff

Send a unique Idempotency-Key header for each mutation and reuse it when retrying that request. See the API terms for usage and commercial conditions.

For 429 and transient 5xx responses, honor Retry-After when present, keep the same idempotency key for the same logical mutation, and use bounded exponential backoff with jitter. Do not automatically retry 401, 402, 403, 404, 409, 413, 422, or 428 without correcting the request or account state.

Account limits

These request ceilings apply across all active personal keys on the account. Monthly usage is limited by credits; there is no separate monthly request allowance. Endpoint-specific limits may be lower.

Product Requests per minute Requests per hour Concurrent paid-provider jobs
Free preview 10 No separate cap 1
Wallet without SaaS 30 No separate cap 1
Agency Core 30 No separate cap 1
Growth, either track 60 No separate cap 2
Scale, either track 120 No separate cap 4
API Volume 120 No separate cap 4
Enterprise default 300 No separate cap 8

There is no separate hourly request bucket. Buying credits keeps your subscription’s request and concurrency ceilings. Provider work also requires available provider capacity. When a limit rejects a request, follow Retry-After and use bounded retries. See the exact Growth API access and limits.

MCP vs. REST API

The MCP server uses a separate OAuth flow (not personal API keys). If you’re connecting Claude or Cursor, see MCP Connectors instead.

Frequently asked questions

How does the AEO Goal API authenticate?

With Bearer token authentication. Every request must include an Authorization header of the form 'Bearer aeo_YOUR_KEY', using a key that starts with aeo_.

Where do I find my API key?

Create a personal API key in Settings then API. The full secret is shown only once at creation time, so copy and store it securely - AEO Goal never shows the full key again.

What can an API key not access?

Sensitive endpoints are always blocked regardless of scope: billing and account, team and user management, auth and sessions, onboarding, course checkout, and key management. Those require an interactive browser session.

How is the MCP server different from the REST API?

The MCP server uses a separate OAuth flow, not personal API keys. If you are connecting Claude or Cursor, use the MCP connector instead of a Bearer token.