GoGosling API

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

MethodPathPurpose / access
GET/v1/modelscaller-api-key-with-policy
GET/v1/usageRead only the current caller monthly usage, limits and remaining budget; available when the inference budget is exhausted.
POST/v1/chat/completionscaller-api-key-with-policy
POST/v1/completionscaller-api-key-with-policy
POST/v1/responsescaller-api-key-with-policy
POST/v1/messagescaller-api-key-with-policy
POST/v1/messages/count_tokenscaller-api-key-with-policy
POST/v1/embeddingscaller-api-key-with-policy
POST/v1/images/generationscaller-api-key-with-policy
POST/v1/videos/generationscaller-api-key-with-policy
POST/v1/audio/speechcaller-api-key-with-policy
POST/v1/audio/transcriptionscaller-api-key-with-policy
GET/v1beta/modelscaller-api-key-with-policy
GET, POST/v1beta/models/*caller-api-key-with-policy
GET/api/tagscaller-api-key-with-policy
GET/api/versioncaller-api-key-with-policy
POST/api/showcaller-api-key-with-policy
POST/api/chatcaller-api-key-with-policy
POST/api/generatecaller-api-key-with-policy
POST/api/embedcaller-api-key-with-policy
POST/api/embeddingscaller-api-key-with-policy
GET, POST/v1/tasksCaller-scoped content and operations suggestions, review required; existing provider pool plus budgeted OpenAI fallback.
POST/v1/decisionsNative OpenAI Decisions; paid caller permission and atomic monthly spending reservations required.

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

MethodPathPurpose / access
GET/v1/qa/healthHealth
POST/v1/qa/auth/registerRegister
POST/v1/qa/auth/loginSign in
POST/v1/qa/auth/logoutSign out
POST/v1/qa/auth/password/resetReset password
GET/v1/qa/auth/passkeysList passkeys
GET/v1/qa/accountAccount, quotas, credits and sessions
PATCH/v1/qa/account/passwordChange password
GET/v1/qa/account/statementUsage and credit statement
DELETE/v1/qa/account/sessionsRevoke all sessions
GET, DELETE/v1/qa/contextList or delete saved context
POST/v1/qa/answersAnswer a question
POST/v1/qa/screenshotsAnswer a screenshot (SSE)
POST/v1/qa/context/pagesSave page context
POST/v1/qa/context/filesUpload file context
POST/v1/qa/transcriptionsTranscribe audio
GET/v1/qa/billing/catalogPricing catalogue
GET, POST/v1/qa/billing/ordersList or create orders
POST/v1/qa/billing/pricing-intentsRecord purchase interest
POST/v1/qa/auth/passkeys/register/optionsPasskey register/options
POST/v1/qa/auth/passkeys/register/verifyPasskey register/verify
POST/v1/qa/auth/passkeys/login/optionsPasskey login/options
POST/v1/qa/auth/passkeys/login/verifyPasskey login/verify
POST/v1/qa/auth/passkeys/removePasskey remove
POST/v1/qa/billing/webhooks/stripePayment 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

MethodPathPurpose / access
See contract/v1owner-api-key
See contract/v1/career*owner-api-key-with-scopes
See contract/v1/mobile/*public-metadata
See contract/v1/waitlistpublic-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

MethodPathPurpose / access
See contract/v1/error-logsproduct-ingest-key-or-bound-desktop-ticket
See contract/v1/error-logs/eventsproduct-read-key
See contract/v1/error-logs/healthpublic-health
See contract/v1/error-logs/openapi.jsonpublic-contract
See contract/v1/desktop-diagnostics/ticketsanonymous-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.

  1. Select the application realm; use its listed same-origin login endpoint.
  2. Password or passkey proves identity; passkey verification uses the private broker and preserves RP/origin binding.
  3. The owning application issues or rotates its session and applies any additional factor.
  4. The request credential is resolved before business logic; an explicit rejected credential cannot change identity through a Cookie fallback.
  5. Check account status, role/scope, resource ownership, CSRF for Cookie writes and quotas before performing the operation.
  6. Logout, password changes and recovery revoke sessions according to the owning realm contract.
Access schemeCredential / permissionCookie write protection
public-contractnone
Public read-only discovery or health; no account or personal-data access.
Not applicable
public-healthnone
Public read-only discovery or health; no account or personal-data access.
Not applicable
public-metadatanone
Public read-only discovery or health; no account or personal-data access.
Not applicable
public-rate-limitednone
Public operation with validation and abuse limits; registration may be deployment-disabled.
Not applicable
caller-api-key-with-policyBearer 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-keyAuthorization: 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-scopesAuthorization: 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-bearerQA 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-strictQA 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-enabledQA 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-clientPer-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-ceremonyPasskey 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-tokenReset token in request body
Single-use, expiring password-reset token issued through the existing recovery process.
Not applicable
product-ingest-key-or-bound-desktop-ticketIngest 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-keyRead API key
Separate read credential; only events for allowed products are visible.
Not applicable
anonymous-body-bound-rate-limitednone
Anonymous ticket issuance checks report metadata and rate limits; it does not prove an official client identity.
Not applicable
provider-signature-billing-enabledProvider signature
Provider callback signature, order binding and billing deployment flag.
Not applicable
per-route-dashboard-session-or-inference-keyOperation-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-sessionOperation-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-publicPer-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.