Delete an API key
curl --request DELETE \
--url https://api.opper.ai/management/v1/projects/{uuid}/api-keys/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/management/v1/projects/{uuid}/api-keys/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/management/v1/projects/{uuid}/api-keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}{
"allowed_plans": [
"<string>"
],
"current_plan": "<string>",
"error": "<string>",
"required_scope": "<string>"
}{
"error": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}Management
Delete an API key
Permanently deletes a runtime API key. Requires the apikeys:write scope.
DELETE
/
management
/
v1
/
projects
/
{uuid}
/
api-keys
/
{id}
Delete an API key
curl --request DELETE \
--url https://api.opper.ai/management/v1/projects/{uuid}/api-keys/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/management/v1/projects/{uuid}/api-keys/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/management/v1/projects/{uuid}/api-keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}{
"allowed_plans": [
"<string>"
],
"current_plan": "<string>",
"error": "<string>",
"required_scope": "<string>"
}{
"error": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}Authorizations
Management API authentication. Pass an op-mak-… management token as a Bearer token. Runtime op-… API keys are rejected with 403 — they belong on the data-plane endpoints. Mint a management key from the platform UI under Settings → API keys.
Response
No content