Remove a provider's key file (the provider then shows Missing)
const url = 'http://localhost:8300/v1/studio/admin/provider-keys/example';const options = { method: 'DELETE', 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 DELETE \ --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.write with op: remove (5 s, else 503); pipelines deletes the file of that name in its first key folder only (missing is fine). The answer is the status after it: found stays true when a later key folder still has a file of that name. 404 malformed name; 409 not writable.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The status after removal
A key file’s status (never the key)
object
Where the admin puts it, as the deployment sees it
A regular file that is not empty
The deployment lets the admin save keys here (pipelines’ first key folder is a writable directory); false: keys are set in files only
Example
{ "path": "deploy/secrets/providers/deepseek"}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"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}