Check that a provider answers
const url = 'http://localhost:8300/v1/studio/admin/providers/example/test';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/v1/studio/admin/providers/example/test \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Admin only. Studio asks pipelines.providers.test (30 s, else 503); ?model= adds one tiny chat completion. A failed test is 200 with ok false and failure.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A provider’s name (unknown = 404 on DELETE and test; malformed = 404)
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The result
object
What its /models listed
With ?model=: its answer to a tiny prompt
Network: unreachable, TLS, timeout, 5xx, 429; answer: a 4xx (401: the key) or not OpenAI-shaped; refused: the host rule; off: remote models are off
What each listed model offers (only the models a rule covers): from the preset’s rules, or for a preset whose thinking is “models” (OpenRouter) from the provider’s /models answer (its reasoning supported_efforts and mandatory)
object
What one model offers: its levels (empty when it always thinks), always (thinks and cannot be set), default (what the provider uses when nothing is sent)
object
Off + on, or some of off, low, medium, high (our high is the provider’s high, never max)
Example
{ "failure": "network", "thinking": { "additionalProperty": { "levels": [ "off" ], "default": "off" } }}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Valid token without the admin role: “admin role required”
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}