Read account
curl --request GET \
--url https://seneca-research.fly.dev/v1/account \
--header 'Authorization: Bearer <token>'import requests
url = "https://seneca-research.fly.dev/v1/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://seneca-research.fly.dev/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"plan": "<string>",
"subscription_status": "<string>",
"available_credits": 0,
"entitled": false,
"monthly_credit_grant": 200
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Account
Read account
Plan, subscription status, available credits, entitlement, and monthly grant. A key can read this without an active subscription. Entitlement is required to launch paid research.
GET
/
v1
/
account
Read account
curl --request GET \
--url https://seneca-research.fly.dev/v1/account \
--header 'Authorization: Bearer <token>'import requests
url = "https://seneca-research.fly.dev/v1/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://seneca-research.fly.dev/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"plan": "<string>",
"subscription_status": "<string>",
"available_credits": 0,
"entitled": false,
"monthly_credit_grant": 200
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Workspace API key created while signed in on the Developers page. Send Authorization: Bearer seneca_sk_… A Clerk session token is not accepted.
Response
Successful Response
Grants plus refunds minus reserves. A technical-failure refund increases this balance.
True when the workspace may launch paid research. Reads do not require it.