API Access

Entry points for authentication, session handling, and the live API reference surfaces.

Live Reference

Use the runtime-resolved reference endpoints below for the authoritative API contract. These workflow pages are intended to complement the live reference, not replace it.

API base
waiting for runtime config
Scalar endpoint
waiting for runtime config

The ordinary REST API supports two authentication modes:

  • Browser sessions use HttpOnly cookies issued by the auth endpoints.
  • Automation and third-party API clients use personal access tokens with Authorization: Bearer.

Use the live reference above for the current OpenAPI contract and interactive Scalar requests.

Authentication Availability

Monitoring clients can call GET /health/auth without credentials. It returns HTTP 200 when the application database and configured account-admission authority are healthy, or HTTP 503 when either is degraded or unavailable. Responses contain only the overall health status, without connection or account details.

This check is independent of /health/ready and excludes optional storage, search and messaging dependencies. It does not issue tokens or perform a password, MFA or browser login. A successful check therefore confirms these dependencies, rather than every part of an individual sign-in flow.

Browser Sessions

Browser clients sign in through POST /v1/auth/login. Use GET /v1/auth/requirements first to discover registration, password, and MFA enforcement policy. A successful password or MFA flow sets:

  • pixservice_at: short-lived access token cookie
  • pixservice_rt: refresh token cookie
  • pixservice_td: trusted-device cookie when the user completes MFA with rememberDevice

The access token is not exposed to JavaScript. Session requests should use the browser cookie jar:

await fetch(`${apiBaseUrl}/v1/users/me`, {
  credentials: 'include',
});

Unsafe cookie-authenticated requests must come from the API origin or an explicitly allowed frontend origin. Cross-site requests without a trusted Origin or Referer header are rejected.

External API Clients

External clients should create a personal access token in the UI or through the PAT endpoints, then send it directly:

curl -H "Authorization: Bearer $PIX_PAT" "$API_BASE/v1/auth/tokens"

Do not use browser session cookies for scripts, CLIs, server-side integrations, or workers.

MCP Agents

PixAtlas MCP uses a separate OAuth delegation flow, scoped to eligible Pro and Unlimited organizations. The integration is under development and disabled until rollout checks pass. See PixAtlas MCP agents for consent, connection controls and current availability. MCP credentials are not REST session or personal access tokens.

Request correlation

For support investigations, keep the X-Request-ID response header together with the request time and HTTP status. The API returns an opaque correlation ID for requests that reach its routing pipeline. The public proxy may replace a supplied ID. Do not include passwords, tokens or full sensitive request URLs in a support report. A request ID identifies diagnostic records; it grants no access.

On this page