# Fetch the workspace's default project

GET

/v1/projects/default

```sh
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

- **[bearerAuth](https://docs.kindgi.com/v0.8.1/reference/api.md#bearerauth)**

## Responses

### 200

Default project.

application/json

object

**id**

required

ProjectId — opaque branded string.

string

**tenantId**

required

string

**orgId**

string

**name**

required

string

**slug**

required

string

**isDefault**

required

boolean

**description**

string

**productionSince**

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.

string format: date-time

**formerSlugs**

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, deleted or not. Absent from a runtime that doesn’t keep them.

Array\<string>

**sortEndUserCorrections**

`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.

boolean

**everyoneCanRun**

`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.

boolean

**repoConnectionId**

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.

string

**createdAt**

required

string

**updatedAt**

required

string

##### Examplegenerated

```json
{
  "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"
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 403

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.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 404

Workspace has no default project.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 429

`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.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

#### Headers

**Retry-After**

integer

\>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

### 503

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.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

#### Headers

**Retry-After**

integer

\>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

## See also

- [People, API keys and service accounts](https://docs.kindgi.com/v0.8.1/deploy/people-and-keys.md)
- [Kindgi 0.4.0](https://docs.kindgi.com/v0.8.1/releases/0.4.0.md)
- [Kindgi 0.7.0](https://docs.kindgi.com/v0.8.1/releases/0.7.0.md)
- [Error code `authz-backend-unavailable`](https://docs.kindgi.com/v0.8.1/reference/errors.md#authz-backend-unavailable)
- [Error code `database-busy`](https://docs.kindgi.com/v0.8.1/reference/errors.md#database-busy)
- [Error code `key-project-mismatch`](https://docs.kindgi.com/v0.8.1/reference/errors.md#key-project-mismatch)
- [Error code `rate-limit-exceeded`](https://docs.kindgi.com/v0.8.1/reference/errors.md#rate-limit-exceeded)
- [Every error code](https://docs.kindgi.com/v0.8.1/reference/errors.md)
