Fetch the workspace's default project
const url = 'https://example.com/v1/projects/default';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/projects/default \ --header 'Authorization: Bearer <token>'Returns the row where Project.isDefault = true (at most one per workspace), to a caller who can read it, as GET /v1/projects/{projectId} checks. Returns 404 project-not-found when the workspace has none.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Default project.
object
ProjectId — opaque branded string.
When the project was put in production; absent while it isn’t. A run in a project in production is a production run, and a run anywhere else is staging.
The slugs this project had before it was renamed, newest first, and empty when it never was. No other project of the workspace can take them, in any org, while this project exists. Absent from a runtime that doesn’t keep them.
true: end users’ corrections (an app’s, with a participantId, and not an expert’s) are sorted like the others when they’re saved, and a schedule counting everyone’s corrections counts them. false (the default): they’re listed and become test cases, but stay open and unsorted, and never start Improve.
true: everyone in the project’s workspace can run this project’s agents and flows without a role of their own; service accounts aren’t included. That reads nothing more than running takes: the project, its agents and flows with their versions (an agent’s owner by id alone), and each person’s own runs, conversations and schedules. false: only people given a role. A new project has it unless its creator turns it off; existing projects and workspaces keep it false until a project admin turns it on. Absent from an older server.
The company-wide GitHub connection the project opens its block changes’ pull requests through; absent while none is set. A connection removed since reads as none.
Examplegenerated
{ "id": "example", "tenantId": "example", "orgId": "example", "name": "example", "slug": "example", "isDefault": true, "description": "example", "productionSince": "2026-04-15T12:00:00Z", "formerSlugs": [ "example" ], "sortEndUserCorrections": true, "everyoneCanRun": true, "repoConnectionId": "example", "createdAt": "example", "updatedAt": "example"}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The caller can’t read the default project.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Workspace has no default project.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The database was too busy to answer in time (database-busy); Retry-After (whole seconds) says when to try again.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}