THISBIT VOICE & TRANSCRIPTS / DOCUMENTATION
POST /api/v2/integrations/runtimes
Connect a model runtime: an OpenAI-compatible host (weights.fyi by default) or Claude.
Implemented. Requires the integrations registry on the customer deployment. A pasted token needs the deployment's Key Vault (STUDIO_KEY_VAULT); without it, name a Key Vault secret by its full URL in a vault the operator approved (STUDIO_INTEGRATION_VAULTS) or use the managed identity.
POST $STUDIO_CUSTOMER_URL/api/v2/integrations/runtimes- Host
- Customer API
- Caller
- Workspace administrator.
- Authorization
- Bearer token for the customer API, as for every /api/v2 route; the signed-in member must hold the workspace administrator role, otherwise 403 unavailable.
Request
transport_version: 2, provider (openai or claude), credential ({kind: token, value} or {kind: key_vault, secret: name or secret URL}); optional name, host (HTTPS), models (distinct model IDs; the default on weights.fyi is qwen3.8-27b), default_model, allow_automatic, batch, enabled and provision_endpoints (default true on weights.fyi hosts). One enabled runtime per provider.
{
"transport_version": 2,
"provider": "openai",
"name": "weights.fyi",
"models": [
"qwen3.8-27b"
],
"credential": {
"kind": "key_vault",
"secret": "weights-api-key"
}
}Return value
201. {transport_version: 2, runtime}. Stored only after verification: the host must list every model (GET /models), create the weights.fyi endpoints the models need when provision_endpoints is set, and answer the batch listing when batch is requested. A pasted token is written to the deployment’s Key Vault as integration-<runtime id> and comes back as a key_vault reference; the value is never returned.
Errors and retrying
A failed verification stores nothing, in the registry or the vault. 400 invalid_request carries a detail that names the field, host or HTTP status, never the credential. After a lost reply, read GET /api/v2/integrations before sending the request again. A second enabled runtime for the same provider is refused.
Read the error codes and limits before retrying. A missing or inaccessible resource can produce the same refusal; do not infer its existence.