Is a provider's key file there? (never the key)
GET
/v1/studio/admin/provider-keys/{key_secret}
const url = 'http://localhost:8300/v1/studio/admin/provider-keys/example';const options = { method: 'GET', 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 GET \ --url http://localhost:8300/v1/studio/admin/provider-keys/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Admin only (403). Studio asks pipelines.providers.key (5 s, else 503); pipelines stats the file in its key folders and never opens it. path is the deploy-side text, never a container path. 404 for a malformed name.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”key_secret
required
string
Responses
Section titled “Responses”The status
Media typeapplication/json
A key file’s status (never the key)
object
key_secret
required
string
path
required
Where the admin puts it, as the deployment sees it
string
found
required
A regular file that is not empty
boolean
writable
required
The deployment lets the admin save keys here (pipelines’ first key folder is a writable directory); false: keys are set in files only
boolean
Example
{ "path": "deploy/secrets/providers/deepseek"}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Valid token without the admin role: “admin role required”
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Not found
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Retryable
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}