Skip to main content

API Gateway

The API Gateway at api.timepointai.com is the primary entry point for all client traffic. It handles authentication, authorization, credit management, rate limiting, and proxies requests to downstream services.
Consumer apps (iPhone, web app, external clients) should always use api.timepointai.com. The gateway authenticates and routes transparently — downstream services like Flash never see raw credentials.

Auth Endpoints

All auth endpoints are at https://api.timepointai.com/api/v1/auth/.

User Endpoints

Credit Endpoints

Proxy Routes

The gateway proxies requests to downstream services based on URL pattern:
Backend services are internal only and accessed exclusively through the gateway. Never call backend services directly from untrusted clients.

Authentication Flow

Example: Authenticate and Render

Rate Limits

Rate limit headers are included on every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.

Health Check

No auth required. Returns gateway status.