List research usage
curl --request GET \
--url https://seneca-research.fly.dev/v1/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://seneca-research.fly.dev/v1/usage"
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/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"credits_reserved": 123,
"created_at": "2023-11-07T05:31:56Z",
"prompt_preview": "<string>",
"source": "<string>",
"panel": "<string>",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Account
List research usage
Workspace runs, newest first. Pass next_cursor back as cursor to read the following page. Each item includes credits_reserved, not the final charge.
GET
/
v1
/
usage
List research usage
curl --request GET \
--url https://seneca-research.fly.dev/v1/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://seneca-research.fly.dev/v1/usage"
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/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"credits_reserved": 123,
"created_at": "2023-11-07T05:31:56Z",
"prompt_preview": "<string>",
"source": "<string>",
"panel": "<string>",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"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.