Skip to main content
Client App BuilderVersion: v3

List an app's runs, newest first.

GET/ai-builder-api/projects/{projectId}/runs

Returns the project's runs ordered newest-first by createdAt. The FE calls this when a user reopens a project to rebuild the chat history; pair with listAgentRunEvents per run to replay each prompt's full event log.

Production-backed by Mongo (ai_builder_runs_records). Persists across pod restarts and is shared across pods.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:clientportal-ai.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

The API version.

Available optionsv3
Example:v3

Path Parameters

projectIdstringrequired

The project's id.

Possible values: Value must match regular expression ^prj_[A-Za-z0-9_-]+$

Example:prj_5f0c2a3e

Query Parameters

limitinteger

Cap on the number of runs returned. Default 50. Pass 0 to request every run (use sparingly — long-lived projects can accumulate hundreds of follow-up runs).

Possible values: >= 0

Default:50
Example:20

Response

Project runs, newest first.

runsobject[]required

The project's runs, newest first.