Disable the calling management key
curl --request POST \
--url https://api.opper.ai/management/v1/management-keys/_self/disable \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/management/v1/management-keys/_self/disable"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/management/v1/management-keys/_self/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}Management
Disable the calling management key
Emergency revocation for a leaked token: disables the management API key the request authenticated with, and every token under it. Possession of the token is the authorization — no scope is required, and this works regardless of the organization’s plan.
POST
/
management
/
v1
/
management-keys
/
_self
/
disable
Disable the calling management key
curl --request POST \
--url https://api.opper.ai/management/v1/management-keys/_self/disable \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/management/v1/management-keys/_self/disable"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/management/v1/management-keys/_self/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}{
"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