Read the projects' last 24 hours
const url = 'http://localhost:8080/api/v1/orgs/example/projects/activity?ids=example';const options = {method: 'GET', headers: {cookie: 'cetra_session=<cetra_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8080/api/v1/orgs/example/projects/activity?ids=example' \ --cookie cetra_session=<cetra_session>The org home’s activity of the requested projects (D-C-27): traces, error traces and the sum of cost_total (USD) with the default exclusions, 24 hourly buckets from from (the epoch-aligned hours whose last one holds the request time; to is one nanosecond after it), and last_ingest_at when the server has received spans for the project since it started. ids is 1 to 50 distinct project ids, comma-separated; the answer follows their order. Unknown ids, ids of another org and projects hidden from the caller are left out. A project whose query fails or runs out of time is listed in unavailable. Any org member, through a session or a personal access token.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Org UUID or slug.
Query Parameters
Section titled “Query Parameters”One to 50 distinct project ids, comma-separated, in the order of the answer.
Responses
Section titled “Responses”The activity of the requested projects.
GET /api/v1/orgs/{org}/projects/activity: the requested projects’ last 24 hours (D-C-27).
object
One entry per requested project the caller can see, in request order.
One project’s traces over the activity window.
object
24 hourly buckets, oldest first. Bucket i starts i hours after from.
One hour of a project’s traces.
object
Of those, the traces whose status is error.
Traces that started in the hour.
Sum of the traces’ cost_total, USD.
Of those, the traces whose status is error.
When the server last committed spans sent over OTLP to this project (D-C-20). Kept in memory: absent until the first batch after the server starts.
The project.
Traces that started in the window, with the default exclusions (spec 05).
Window start: the start of the hour 23 hours before the current one. JSON is RFC 3339.
Window end, exclusive: one nanosecond after the request time. JSON is RFC 3339.
Requested projects whose query failed or ran out of time, in request order.
Example generated
{ "data": [ { "buckets": [ { "errors": 1, "traces": 1 } ], "cost_usd": 1, "errors": 1, "last_ingest_at": "2026-04-15T12:00:00Z", "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "traces": 1 } ], "from": "2026-04-15T12:00:00Z", "to": "2026-04-15T12:00:00Z", "unavailable": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}The request is malformed or a filter is invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}No credentials, or the credentials are invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The resource does not exist.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}