List API keys
curl --request GET \
--url https://arena-predictions.com/api/v1/api_keys \
--cookie sb-access-token=import requests
url = "https://arena-predictions.com/api/v1/api_keys"
headers = {"cookie": "sb-access-token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sb-access-token='}};
fetch('https://arena-predictions.com/api/v1/api_keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"keys": [
{
"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
}
],
"count": 1,
"usage": {
"tier": "none",
"month": {
"limit": 123,
"used": 123,
"resetsAt": "2023-11-07T05:31:56Z"
},
"minuteLimit": 123,
"enforced": 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
}
}API keys
List API keys
Every key on the signed-in account, newest first, including revoked, expired and rotating ones, each with this month’s requests, and the account’s plan. status=active keeps the keys that still work (active and rotating). Not paginated: an account holds at most 10 active keys.
GET
/
api_keys
List API keys
curl --request GET \
--url https://arena-predictions.com/api/v1/api_keys \
--cookie sb-access-token=import requests
url = "https://arena-predictions.com/api/v1/api_keys"
headers = {"cookie": "sb-access-token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sb-access-token='}};
fetch('https://arena-predictions.com/api/v1/api_keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"keys": [
{
"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
}
],
"count": 1,
"usage": {
"tier": "none",
"month": {
"limit": 123,
"used": 123,
"resetsAt": "2023-11-07T05:31:56Z"
},
"minuteLimit": 123,
"enforced": 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
}
}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).
Query Parameters
Available options:
all, active