Account
List API keys
Lists the team’s live API keys, oldest first, by mask only: a key’s secret is shown once, when it is created. Each says its kind: personal or service. Console session only: an API key gets 403 console-only.
GET
/
v1
/
keys
List API keys
curl --request GET \
--url https://api.offstage.cloud/v1/keys \
--cookie oc_session=const options = {method: 'GET', headers: {cookie: 'oc_session='}};
fetch('https://api.offstage.cloud/v1/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.offstage.cloud/v1/keys"
headers = {"cookie": "oc_session="}
response = requests.get(url, headers=headers)
print(response.text){
"keys": [
{
"id": "<string>",
"name": "<string>",
"mask": "<string>",
"createdAt": 1,
"lastUsedAt": 123,
"createdBy": {
"email": "<string>"
},
"kind": "personal"
}
]
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}⌘I
List API keys
curl --request GET \
--url https://api.offstage.cloud/v1/keys \
--cookie oc_session=const options = {method: 'GET', headers: {cookie: 'oc_session='}};
fetch('https://api.offstage.cloud/v1/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.offstage.cloud/v1/keys"
headers = {"cookie": "oc_session="}
response = requests.get(url, headers=headers)
print(response.text){
"keys": [
{
"id": "<string>",
"name": "<string>",
"mask": "<string>",
"createdAt": 1,
"lastUsedAt": 123,
"createdBy": {
"email": "<string>"
},
"kind": "personal"
}
]
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}