Revoke API key
curl --request DELETE \
--url https://arena-predictions.com/api/v1/api_keys/{id} \
--cookie sb-access-token=import requests
url = "https://arena-predictions.com/api/v1/api_keys/{id}"
headers = {"cookie": "sb-access-token="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'sb-access-token='}};
fetch('https://arena-predictions.com/api/v1/api_keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"key": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"tokenPrefix": "<string>",
"scopes": [
"records:read"
],
"status": "active",
"createdAt": "2023-11-07T05:31:56Z",
"lastUsedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"createdVia": "web",
"rotatedFrom": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rotatedAt": "2023-11-07T05:31:56Z",
"requestsThisMonth": 1
},
"revoked": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}API keys
Revoke API key
Revoke one key (a rotating key too, which ends its grace). Takes effect on the next request that presents it. Safe to repeat: a second call answers 404 key_not_found, which means it is already gone.
DELETE
/
api_keys
/
{id}
Revoke API key
curl --request DELETE \
--url https://arena-predictions.com/api/v1/api_keys/{id} \
--cookie sb-access-token=import requests
url = "https://arena-predictions.com/api/v1/api_keys/{id}"
headers = {"cookie": "sb-access-token="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'sb-access-token='}};
fetch('https://arena-predictions.com/api/v1/api_keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"key": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"tokenPrefix": "<string>",
"scopes": [
"records:read"
],
"status": "active",
"createdAt": "2023-11-07T05:31:56Z",
"lastUsedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"createdVia": "web",
"rotatedFrom": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rotatedAt": "2023-11-07T05:31:56Z",
"requestsThisMonth": 1
},
"revoked": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}Authorizations
sessionsessionBearer
The signed-in browser session (Google or Apple). Used only for key management, same-origin JSON requests only. An API key presented here is refused (401 session_required).
Path Parameters
The key's id from the list.