# Get a Project by handle or id

`GET /o/{org}/p/{project}`

A private Project is its creator's alone; anyone else gets the same `404` as for a missing one.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org` | path | string | yes | The org's slug or id. A caller with no role in the org gets `404`. |
| `project` | path | string | yes | A Project's handle (name) or id, resolved inside `{org}` — OR the reserved sentinel `_` meaning "no Project" (a direct-repo / repo-less dispatch on `POST`; "no Project constraint, resolve by session id alone" everywhere else). A real handle that doesn't match the session's actual Project is `404`. |

## Example request

```bash
curl "https://api.phoenix.so/o/$RUSH_ORG/p/_" \
  -H "Authorization: Bearer $RUSH_TOKEN"
```

```typescript
const org = process.env.RUSH_ORG;

const res = await fetch(`https://api.phoenix.so/o/${org}/p/_`, {
  headers: {
    Authorization: `Bearer ${process.env.RUSH_TOKEN}`,
  },
});

console.log(res.status, await res.json());
```

```python
import os

import requests

org = os.environ["RUSH_ORG"]

res = requests.get(
    f"https://api.phoenix.so/o/{org}/p/_",
    headers={"Authorization": f"Bearer {os.environ['RUSH_TOKEN']}"},
)

print(res.status_code, res.json())
```

## Responses

### 200

The Project.

- `project` (Project, required): The repository is optional Context. A GitHub one has installation_id, repo_owner and repo_name all set; a gitlab.com one has `repo_host: gitlab`, repo_owner (its group path) and repo_name, with installation_id and repo_id null; with none, all are null.
  - `id` (string, required)
  - `org_id` (string, optional): The org the Project belongs to.
  - `user_id` (string, optional): The Project's creator: the one person who sees it while it is private, and the only one who changes its visibility.
  - `visibility` (string, optional, one of `private`, `org`): Who sees the Project, its runs, automations, secrets and files: `private` is its creator alone, `org` is every member of its org. A run is always readable by whoever started it; a run with no Project is readable by them alone.
  - `name` (string, required)
  - `repo_host` (string, optional, one of `gitlab`): Present when the repository is on gitlab.com; absent for a GitHub repository or none.
  - `installation_id` (integer | null, required)
  - `repo_owner` (string | null, required)
  - `repo_name` (string | null, required)
  - `repo_id` (integer | null, optional)
  - `default_branch` (string | null, optional)
  - `default_harness` (string, required, one of `claude`, `codex`, `opencode`): Launch-boundary managed harnesses.
  - `default_harness_version` (string | null, optional)
  - `readiness` (string, required, one of `pending`, `ready`, `error`)
  - `sync_status` (string, optional, one of `idle`, `syncing`, `synced`, `error`)
  - `sync_error` (string | null, optional)
  - `last_synced_at` (string | null, optional)
  - `created_at` (string, optional)
  - `updated_at` (string, optional)
  - `is_default` (boolean, optional): The project a prompt-only surface (Slack) resolves to. Per user, not per org.
  - `people_count` (integer, optional): How many people it is shared with by name (GET …/people lists them).
  - `goal` (string, optional): What the Project is for; empty when unset.
  - `instructions` (string, optional): Standing instructions every run in the Project receives ahead of its prompt; empty when unset.
  - `paused_at` (string | null, optional): When it was paused: no run or follow-up starts (`409 PROJECT_PAUSED`) and no automation fires. Null when running.
  - `archived_at` (string | null, optional): When it was archived. A client leaves it out of its lists; nothing else changes, its runs and automations carry on. Null when not archived.
  - `last_run_at` (string | null, optional): When a run last started in the Project. Null before its first run.

### 401

No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.

### 404

No such resource for the caller, including one in an org the caller is not in or a Project that is private to someone else.

### 429

The account is over its request budget, 1,800 a minute shared by the person's API keys and console on every API host (`RATE_LIMITED`). The error names the limit. Wait `Retry-After` seconds.

## Example response (200)

```json
{
  "project": {
    "id": "7d2e9a14-5b3c-4f60-8e21-9a0b1c2d3e4f",
    "org_id": "0b6f3c52-8d1e-4a7b-9c55-2f1e8d7a6b90",
    "user_id": "4e8a1f3c-6b2d-4c97-a05e-8d3f2b1c9a76",
    "default_harness": "claude",
    "default_harness_version": null,
    "paused_at": null,
    "archived_at": null,
    "readiness": "ready",
    "visibility": "org",
    "people_count": 0,
    "name": "web",
    "installation_id": 58213904,
    "repo_owner": "acme",
    "repo_name": "web",
    "repo_id": 702918346,
    "default_branch": "main",
    "goal": "The acme.dev storefront.",
    "instructions": "Run `pnpm test` before opening a PR.",
    "last_run_at": "2026-10-06T15:02:11.000Z",
    "sync_status": "synced",
    "last_synced_at": "2026-10-06T14:58:20.000Z",
    "sync_error": null,
    "created_at": "2026-09-14T16:20:05.000Z",
    "updated_at": "2026-10-01T12:44:39.000Z",
    "is_default": true
  }
}
```
