curl --request GET \
--url https://arena-predictions.com/api/v1/organizations \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/organizations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://arena-predictions.com/api/v1/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"organizations": [
{
"id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee",
"slug": "acme",
"name": "Acme",
"role": "member"
}
],
"mode": "paper"
}{
"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
}
}List your organizations
The organizations this personal API key belongs to. Any valid key, no particular scope. Forwarded to the organizations edge function: the anon key is only the gateway bearer, and the caller’s key goes in X-Arena-Key. The function’s JSON is returned. A 2xx object has mode paper (set here when the function left it out). Each organization’s id is what X-Arena-Org takes on GET /portfolio, GET /portfolio/trades, POST /portfolio/orders and DELETE /portfolio/orders/. This route ignores X-Arena-Org and does not select a sandbox or a Combine evaluation account. GET takes no query parameters. POST and every other method answer 405 method_not_allowed and are not forwarded. Paper only. Not cached.
curl --request GET \
--url https://arena-predictions.com/api/v1/organizations \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/organizations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://arena-predictions.com/api/v1/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"organizations": [
{
"id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee",
"slug": "acme",
"name": "Acme",
"role": "member"
}
],
"mode": "paper"
}{
"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
Authorization: Bearer arena_sk_... (the x-arena-key header is accepted too). Keys are made in Settings (https://arena-predictions.com/settings#api-keys) or with arena keys create, shown once, stored hashed.