Citera home

CITERA :: HELP CENTER

Authentication and access

Create API keys and authenticate requests. API and MCP access is open to everyone.

source
/help/authentication

Availability

API and MCP access is open to every Citera account. For hosted MCP, browser sign-in grants read-only access to the brands you select. For REST requests or the optional manual MCP route, create a key under Settings → API & MCP and choose the required surface, brands and scopes. No invitation or separate access request is needed.

Key-authenticated requests require an active, unexpired key, the required scopes and an owned brand bound to the key. OAuth connections use the access approved during browser sign-in. Operation-specific permissions, feature settings and usage limits still apply; a connection does not grant every operation in the API reference.

Browser sign-in for hosted MCP

Open Settings → API & MCP → MCP and select Connect another assistant. Copy https://mcp.citeralabs.ai/mcp into a remote HTTP MCP client. Choose OAuth or browser sign-in, sign in to Citera and select the brands it may read. Leave static request headers empty when using this flow.

Open API & MCP settings

The hosted sign-in flow is read-only. Disconnect the assistant from the AI assistants list to revoke its connection. Creating a manual API key is optional for clients that need fixed Authorization headers; never paste an app session token into an MCP configuration.

Choose a client setup guide

API keys

Property

Value

Format

rk_live_ + 43 chars base64url (32 random bytes). rk_test_ is also recognized

Display prefix

rk_live_ + first 8 secret chars, e.g. rk_live_ab12cd34 (safe to share with support)

Storage

Only a cryptographic verifier is stored; the raw key is never stored

Shown

Once, in the create/rotate response (token field)

Transport

Only Authorization: Bearer rk_live_…. Query string or cookie carriers are rejected

Binding

A set of surfaces (api, mcp), scopes, brands (at least 1), optional expiry

Create API keys in Settings → API & MCP → API or via POST /v1/api-keys. Manual MCP keys are also available from the MCP connection dialog. The key format and lifecycle reference below applies to those manually managed credentials.

curl -s "${CITERA_API_BASE_URL%/}/v1/brands" \
  -H "Authorization: Bearer $CITERA_API_KEY" \
  -H "Accept: application/json"
curl -s "${CITERA_API_BASE_URL%/}/v1/brands" \
  -H "Authorization: Bearer $CITERA_API_KEY" \
  -H "Accept: application/json"
curl -s "${CITERA_API_BASE_URL%/}/v1/brands" \
  -H "Authorization: Bearer $CITERA_API_KEY" \
  -H "Accept: application/json"
curl -s "${CITERA_API_BASE_URL%/}/v1/brands" \
  -H "Authorization: Bearer $CITERA_API_KEY" \
  -H "Accept: application/json"

A 401 response includes WWW-Authenticate: Bearer realm="rankad", error="invalid_token".

Session tokens (key management and usage only)

The routes /v1/api-keys* and /v1/usage also accept a Citera (Supabase) session JWT. This is how the Settings page works. A session principal:

  • is verified by the service;

  • receives only the keys:manage scope and no brands;

  • is accepted on the API surface only (never on MCP);

  • must still satisfy api.enabled and the account security checks.

Browser key-management calls are restricted to approved application origins.

Optional client headers

Header

Purpose

X-Client-Name, X-Client-Version

Telemetry only (≤ 64 printable chars); never affect authorization

X-Request-Id

Your own correlation ID (8–64 [A-Za-z0-9_-]); logged, not echoed