Account
Limits, data region and retention.
- GET
/v1/accountRead the account - PUT
/v1/account/settingsChange account settings
GET /v1/account
Read the account
Example
curl -X GET https://api.superveo.io/v1/account \
-H "Authorization: Bearer $SUPERVIDEO_API_KEY"
Responses
| Status | Body | When |
|---|---|---|
| 200 | Account | OK |
| 401 | Error | unauthorized |
| 429 | Error | rate_limited |
| 503 | Error | capacity_unavailable |
PUT /v1/account/settings
Change account settings
data_region can be set once. retention can be changed at any time and applies to new jobs.
Request body
| Field | Type | Description |
|---|---|---|
data_region | string: us, eu, uk, in or null | Where to store the output. Only valid if it matches the account's region. |
retention | string: 7d, 14d, 28d, zdr or null | How long to keep the output. Defaults to the account's setting. |
Example
curl -X PUT https://api.superveo.io/v1/account/settings \
-H "Authorization: Bearer $SUPERVIDEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"retention": "7d"
}'import os, uuid, requests
r = requests.request(
"PUT", "https://api.superveo.io/v1/account/settings",
headers={
"Authorization": f"Bearer {os.environ['SUPERVIDEO_API_KEY']}",
},
json={
"retention": "7d"
},
)
print(r.status_code, r.json())const r = await fetch("https://api.superveo.io/v1/account/settings", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.SUPERVIDEO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"retention": "7d"
}),
});
console.log(r.status, await r.json());Responses
| Status | Body | When |
|---|---|---|
| 200 | Account | OK |
| 400 | Error | invalid_request |
| 401 | Error | unauthorized |
| 409 | Error | data_region_locked |
| 429 | Error | rate_limited |
| 503 | Error | capacity_unavailable |