Skip to content

Agent activity for multiple projects

POST
/projects/agent-activity/batch
curl --request POST \
--url https://example.com/api/projects/agent-activity/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "project_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'

Returns the same shape as GET /projects/{id}/agent-activity for each requested project_id (sessions, checkpoints, session_history). Caller must have access to every project; fails with 403/404 on the first inaccessible or missing id.

Media type application/json
object
project_ids
required
Array<string>
>= 1 items <= 25 items

Per-project agent activity payloads

Media type application/json
object
results
required
Array<object>
object
project_id
required
string format: uuid
sessions
required
Array<object>
object
checkpoints
required
Array<object>
object
session_history
required
Array<object>
object

Invalid request

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Not authenticated

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number
reconnect

True if re-linking GitHub may fix the issue

boolean

Forbidden

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Not found

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number