Use one base URL for new integrations: https://api.gogosling.ca/v1.
Start building with runnable examples, the downloadable Node.js client and the Postman collection.
All inference protocols use one origin, https://api.gogosling.ca. OpenAI SDK base: https://api.gogosling.ca/v1; Anthropic, Gemini and Ollama SDK origin: https://api.gogosling.ca. Native protocol paths remain intact.
Machine-readable route catalogue — use the same guide URL with ?format=json to discover canonical resources and available contracts.
One stable major version. Compatible additions and performance fixes stay in v1. A future v2 is reserved for breaking changes, with a documented migration period. No v2 endpoints are active.
Native SDK paths such as Gemini /v1beta retain their upstream protocol version; they do not introduce another gateway API version.
Each resource keeps its existing credentials and response contract. An inference key does not grant access to QA accounts, career records or diagnostic logs. Unknown routes return 404. Management consoles are separate from this product API.
Inference
Method
Path
Purpose / access
GET
/v1/models
caller-api-key-with-policy
GET
/v1/usage
Read only the current caller monthly usage, limits and remaining budget; available when the inference budget is exhausted.
POST
/v1/chat/completions
caller-api-key-with-policy
POST
/v1/completions
caller-api-key-with-policy
POST
/v1/responses
caller-api-key-with-policy
POST
/v1/messages
caller-api-key-with-policy
POST
/v1/messages/count_tokens
caller-api-key-with-policy
POST
/v1/embeddings
caller-api-key-with-policy
POST
/v1/images/generations
caller-api-key-with-policy
POST
/v1/videos/generations
caller-api-key-with-policy
POST
/v1/audio/speech
caller-api-key-with-policy
POST
/v1/audio/transcriptions
caller-api-key-with-policy
GET
/v1beta/models
caller-api-key-with-policy
GET, POST
/v1beta/models/*
caller-api-key-with-policy
GET
/api/tags
caller-api-key-with-policy
GET
/api/version
caller-api-key-with-policy
POST
/api/show
caller-api-key-with-policy
POST
/api/chat
caller-api-key-with-policy
POST
/api/generate
caller-api-key-with-policy
POST
/api/embed
caller-api-key-with-policy
POST
/api/embeddings
caller-api-key-with-policy
GET, POST
/v1/tasks
Caller-scoped content and operations suggestions, review required; existing provider pool plus budgeted OpenAI fallback.
For OpenAI-compatible SDKs set the base URL to https://api.gogosling.ca/v1. For Anthropic SDKs use https://api.gogosling.ca; they append /v1/messages. Send your existing inference caller key as a Bearer token (or the supported protocol key header). Chat Completions, Responses and Messages retain their protocol-specific bodies and streaming formats. No cookie authentication is used for inference.
Gemini uses /v1beta/models and model operations beneath it. Ollama uses its native /api/tags, /api/chat and related listed paths. These explicit native routes use caller keys only; dashboard sessions, cookies and management APIs are not accepted through this origin.
Ollama routes are registered on the unified origin, but calls require the service's ollama_emulation feature to be enabled. When disabled, authenticated calls return 404; gateway routing does not enable the feature.
GET /v1/usage returns only the current caller's monthly usage, limits, remaining budget and UTC reset time. It makes no provider request and remains readable after a monthly cap is reached; source restrictions and rate limits still apply. Usage reflects completed successful requests, with spend estimated at list price. A zero limit means unlimited and its remaining value is null; this snapshot does not reserve quota or grant access to paid models. The route accepts no query selectors and never lists other callers.
QA
Method
Path
Purpose / access
GET
/v1/qa/health
Health
POST
/v1/qa/auth/register
Register
POST
/v1/qa/auth/login
Sign in
POST
/v1/qa/auth/logout
Sign out
POST
/v1/qa/auth/password/reset
Reset password
GET
/v1/qa/auth/passkeys
List passkeys
GET
/v1/qa/account
Account, quotas, credits and sessions
PATCH
/v1/qa/account/password
Change password
GET
/v1/qa/account/statement
Usage and credit statement
DELETE
/v1/qa/account/sessions
Revoke all sessions
GET, DELETE
/v1/qa/context
List or delete saved context
POST
/v1/qa/answers
Answer a question
POST
/v1/qa/screenshots
Answer a screenshot (SSE)
POST
/v1/qa/context/pages
Save page context
POST
/v1/qa/context/files
Upload file context
POST
/v1/qa/transcriptions
Transcribe audio
GET
/v1/qa/billing/catalog
Pricing catalogue
GET, POST
/v1/qa/billing/orders
List or create orders
POST
/v1/qa/billing/pricing-intents
Record purchase interest
POST
/v1/qa/auth/passkeys/register/options
Passkey register/options
POST
/v1/qa/auth/passkeys/register/verify
Passkey register/verify
POST
/v1/qa/auth/passkeys/login/options
Passkey login/options
POST
/v1/qa/auth/passkeys/login/verify
Passkey login/verify
POST
/v1/qa/auth/passkeys/remove
Passkey remove
POST
/v1/qa/billing/webhooks/stripe
Payment callback: stripe
DELETE
/v1/qa/account/sessions/{session_id}
Revoke one of your sessions without signing out other devices
Send the QA login token as Authorization: Bearer <token>. Browser sessions use cookies scoped to /v1/qa; cookie writes require X-Requested-With. Content endpoints require a valid session: email, user ID and Basic identity fallbacks are not accepted. Invalid Authorization does not fall back to a cookie.
GET /v1/qa/account combines account, quotas, credits and session information. Use GET /v1/qa/context to list saved context and DELETE /v1/qa/context with the existing JSON deletion selector to remove it. DELETE /v1/qa/account/sessions revokes all old sessions and issues a replacement current session.
For one device, take its opaque sessions[].session_id from the account response and call DELETE /v1/qa/account/sessions/{session_id} without query parameters or a request body. It revokes only that signed-in user's selected session and reports revoked and revoked_current. Other devices stay signed in. Cookie requests retain their CSRF requirement; revoking the Cookie session clears its Cookie. Session identifiers are selectors, never authentication credentials.
Context reads accept limit from 1 to 200 (default 50) and an optional type=page|file|transcript. Continue with before=page.next_before from the previous response, keeping the same type filter, until the cursor is null. The first paged response includes the account-wide summary; continuation responses omit it to avoid repeated full-history aggregation. Unparameterized reads retain their existing response fields.
Order creation accepts an Idempotency-Key header or idempotency_key JSON field containing 1–128 visible ASCII characters without whitespace; when both are provided, they must match. Retries with the same signed-in user, key, sku and provider return the original order. Reusing the same user and key with a different product or provider returns 409 idempotency_conflict.
Screenshots stream SSE. Answers preserve their existing JSON/multipart response formats. Billing orders and provider callbacks remain subject to deployment feature flags and provider configuration. Account UI and password-reset pages remain under /v0.
Career, mobile & waitlist
Method
Path
Purpose / access
See contract
/v1
owner-api-key
See contract
/v1/career*
owner-api-key-with-scopes
See contract
/v1/mobile/*
public-metadata
See contract
/v1/waitlist
public-rate-limited
GET /v1 remains the private, owner-key-scoped career catalogue. Mobile metadata is public and accepts no personal skill inputs. See the mobile OpenAPI contract.
Career history supports ?limit=30&before=... on both record and entry history routes. Pass pagination.next_before to continue until it is null. Existing indexes support stable pagination without scanning an offset.
Diagnostics
Method
Path
Purpose / access
See contract
/v1/error-logs
product-ingest-key-or-bound-desktop-ticket
See contract
/v1/error-logs/events
product-read-key
See contract
/v1/error-logs/health
public-health
See contract
/v1/error-logs/openapi.json
public-contract
See contract
/v1/desktop-diagnostics/tickets
anonymous-body-bound-rate-limited
Backend log upload and query credentials have separate product scopes. Query /v1/error-logs/events?request_id=... or ?release=... to find a specific request or software release within the products your read credential permits. Desktop upload tickets are short-lived, anonymous and bound to one report. See the diagnostics OpenAPI contract.
For automation, start with /v1/error-logs/events?after=0 to read retained events in ascending order. Process the complete page before saving next_after; continue while has_more is true, then poll again with the same checkpoint. Keep product and other filters unchanged for that checkpoint. after and before are mutually exclusive. Existing unparameterized reads keep their descending response. Retention and the response byte limit still apply; see the release diagnostics example.
Sign in & authentication
API administration console — existing admins sign in directly; other users require administrator approval.
Choose the application account below. Shared passkey verification does not merge accounts or provide single sign-on. An inference key, dashboard session, QA session and owner key have separate permissions.
QA account — Opaque Bearer or HttpOnly Cookie; server-side hashed session store
AI console — Opaque dashboard Bearer session; independent of inference caller keys
Personal website — Host-only HttpOnly signed Cookie with database session_version revocation
Terminal — Independent terminal session with its existing additional-factor policy
Select the application realm; use its listed same-origin login endpoint.
Password or passkey proves identity; passkey verification uses the private broker and preserves RP/origin binding.
The owning application issues or rotates its session and applies any additional factor.
The request credential is resolved before business logic; an explicit rejected credential cannot change identity through a Cookie fallback.
Check account status, role/scope, resource ownership, CSRF for Cookie writes and quotas before performing the operation.
Logout, password changes and recovery revoke sessions according to the owning realm contract.
Access scheme
Credential / permission
Cookie write protection
public-contract
none Public read-only discovery or health; no account or personal-data access.
Not applicable
public-health
none Public read-only discovery or health; no account or personal-data access.
Not applicable
public-metadata
none Public read-only discovery or health; no account or personal-data access.
Not applicable
public-rate-limited
none Public operation with validation and abuse limits; registration may be deployment-disabled.
Not applicable
caller-api-key-with-policy
Bearer or supported protocol API key header Inference key is resolved to caller policy, model permissions, budget and limits before provider dispatch.
Not applicable
owner-api-key
Authorization: Bearer <owner-key> Owner-issued API key; career read/write scope and owner access are enforced by the primary service.
Not applicable
owner-api-key-with-scopes
Authorization: Bearer <owner-key> Owner-issued API key; career read/write scope and owner access are enforced by the primary service.
Not applicable
qa-session-or-bearer
QA Bearer session or HttpOnly kair_session Cookie Real QA session only. Explicit invalid Authorization fails; it never falls back to a Cookie or identity field.
Cookie mutations require X-Requested-With; Bearer does not use ambient cookies.
qa-session-or-bearer-strict
QA Bearer session or HttpOnly kair_session Cookie Real QA session only. Explicit invalid Authorization fails; it never falls back to a Cookie or identity field.
Cookie mutations require X-Requested-With; Bearer does not use ambient cookies.
qa-session-or-bearer-billing-enabled
QA Bearer session or HttpOnly kair_session Cookie Real QA session plus deployment billing flag and order ownership.
Cookie mutations require X-Requested-With.
qa-session-or-legacy-client
Per-route QA session or legacy identity Compatibility only: some content routes accept legacy Basic/user-id identities when REQUIRE_BEARER is disabled. Strict account/admin routes never do.
Cookie mutations require X-Requested-With.
qa-passkey-ceremony
Passkey assertion/challenge, and QA session where required Login proves a challenge and exact browser origin; enrollment/removal require QA session and reauthentication as defined by the adapter.
Exact Origin, ceremony binding and operation-specific CSRF.
password-reset-token
Reset token in request body Single-use, expiring password-reset token issued through the existing recovery process.
Not applicable
product-ingest-key-or-bound-desktop-ticket
Ingest key or desktop ticket Product-scoped write-only key, or short-lived desktop ticket bound to exact body digest, size and event UUID.
Not applicable
product-read-key
Read API key Separate read credential; only events for allowed products are visible.
Not applicable
anonymous-body-bound-rate-limited
none Anonymous ticket issuance checks report metadata and rate limits; it does not prove an official client identity.
Not applicable
provider-signature-billing-enabled
Provider signature Provider callback signature, order binding and billing deployment flag.
Not applicable
per-route-dashboard-session-or-inference-key
Operation-specific dashboard Bearer or inference key Website compatibility namespace: admin routes use dashboard session; explicit native inference routes use caller key. Consult exact operation.
Not applicable
caller-api-key-or-dashboard-session
Operation-specific dashboard Bearer or inference key Legacy embedding endpoint supports distinct dashboard-session and caller-key handlers; they retain their original policy.
Not applicable
per-route-session-key-or-public
Per-route session Cookie or owner key Website namespace; declared route guards select public, owner key, session or admin authorization.
Cookie mutations require X-CSRF-Token as declared by route.
Compatibility
Existing api.gogosling.ca/v0 and ai.gogosling.ca inference clients continue to use the same handlers and data. They are compatibility addresses. New integrations, including native Gemini and Ollama SDKs, should use api.gogosling.ca and the protocol bases above; no cross-domain POST or SSE redirects are required.
Routing reference; consult each service contract for request and response schemas. This page is generated from the gateway route registry and is not a combined OpenAPI schema.
Versioning follows Google AIP-185; resource naming follows Microsoft REST API design guidance. Following the shared-source publishing practice in GitHub's REST API descriptions, this guide and its JSON catalogue are generated together from the route registry. The JSON catalogue is discovery metadata, not an OpenAPI schema.