List a project's API keys
curl --request GET \
--url https://api.opper.ai/management/v1/projects/{uuid}/api-keys \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/management/v1/projects/{uuid}/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/management/v1/projects/{uuid}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": 123,
"name": "<string>",
"prefix": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"total_count": 123
}
}{
"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
List a project's API keys
Lists the runtime API keys bound to a project. Only the key prefix is returned — the full key is shown once, at creation. Requires the apikeys:read scope.
GET
/
management
/
v1
/
projects
/
{uuid}
/
api-keys
List a project's API keys
curl --request GET \
--url https://api.opper.ai/management/v1/projects/{uuid}/api-keys \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/management/v1/projects/{uuid}/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/management/v1/projects/{uuid}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": 123,
"name": "<string>",
"prefix": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"total_count": 123
}
}{
"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.
Path Parameters
Project UUID