Build with GoGosling

Connect scripts and apps to GoGosling inference, QA accounts, career records and release diagnostics through one API origin.

1. Make your first request

Read public mobile capability metadata without an account or API key. A successful response describes device-side features; it does not run a personal skill or upload personal inputs.

curl --fail-with-body https://api.gogosling.ca/v1/mobile/capabilities

For model inference, obtain a caller key from your existing AI console account. Store it in your server environment, then list the models that key can access:

curl --fail-with-body https://api.gogosling.ca/v1/models \
  -H "Authorization: Bearer $GOSLING_INFERENCE_KEY"

Choose a returned model ID and replace MODEL_FROM_THE_LIST below. This request runs inference and uses the key's configured budget:

curl --fail-with-body https://api.gogosling.ca/v1/chat/completions \
  -H "Authorization: Bearer $GOSLING_INFERENCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"MODEL_FROM_THE_LIST","messages":[{"role":"user","content":"Help me outline a project."}]}'

Use GOSLING_API_BASE_URL=https://api.gogosling.ca/v1 for integrations. OpenAI-compatible clients use that base. Anthropic, Gemini and Ollama SDKs use https://api.gogosling.ca and their native protocol paths. Ollama calls remain subject to the ollama_emulation feature flag.

Inspect your current key's monthly usage and remaining limits without running a model:

curl --fail-with-body https://api.gogosling.ca/v1/usage \
  -H "Authorization: Bearer $GOSLING_INFERENCE_KEY"

The snapshot counts successful logged requests. Spend is a list-price estimate; zero limits mean unlimited and remaining values are then null. In-flight work is excluded, and the response does not reserve quota or grant paid-model access.

2. Choose the credential for the task

Use existing application accounts. The login directory collects the entry points; it does not merge accounts or issue a universal token.

TaskCredentialWhere to start
Models, chat and mediaInference caller keyAI console; a dashboard session is not an inference key
QA answers, context metadata, devicesQA Bearer sessionQA sign in; POST /v1/qa/auth/login returns a token
Career facts and controlled editsOwner key with read/write scopesOwner account; request only required scopes
Release diagnosticsProduct-scoped read keyAsk the service operator for a read credential; upload keys and desktop tickets cannot query logs
Mobile metadata, API discoveryNo credentialUse the public contracts; personal actions remain device-side

3. Build a useful workflow

One inference origin

Connect compatible assistants, desktop tools and scripts through OpenAI, Anthropic, Gemini or Ollama wire formats. Caller permissions and budgets still apply.

Inference routes

Manage devices independently

Read your QA account's sessions and revoke a selected device using its opaque session ID, keeping other devices signed in.

QA account routes

Keep career facts in sync

Preview a local record's changes before applying them. Version checks protect existing records from accidental overwrites; new entries use create semantics.

Download career sync example

Check a release after deployment

Fetch new error events using an ascending cursor. Save the checkpoint after processing; retry without skipping later events.

Download release check example

QA context listing returns metadata, not a searchable full-text knowledge base. The automation kit does not forward career facts or context to a model automatically.

4. Start from a working integration

The small Node.js client handles service-specific credentials, timeouts, cancellation and pagination. It does not implement a second inference SDK or retry writes automatically.

Save the client and examples in the documented directory structure. Review the script, set only the credentials your workflow needs, and start with the default read-only career preview.

Troubleshooting

ResponseNext step
401Use the credential for this service. Reauthenticate expired sessions. An explicit rejected token will not fall back to a browser cookie.
403Check role, product scope, source restrictions and model permissions. Browser Cookie writes also need the application's CSRF header.
409Refresh the record/version and review changes before retrying. Do not overwrite another edit automatically.
429Honor Retry-After, reduce polling and resume from the last processed cursor.
404 on OllamaCheck the deployment's Ollama feature flag; a registered route does not enable a disabled feature.
5xx or timeoutKeep the request ID for support. Reconcile writes before retrying; a lost response does not prove the write failed.

Compatibility paths remain supported. Public examples contain no service credentials. Route discovery is not a combined OpenAPI schema.