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. An API key or session limited to a project gets the default project only when it’s that project; otherwise, and when the workspace has none, it gets 403 key-project-mismatch, naming default.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Default project.
object
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
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The caller can’t read the default project. An API key or session limited to a project gets key-project-mismatch when the default project isn’t that one, or the workspace has none.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Workspace has no default project.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}