# Projects (/docs/api/projects)

Projects that group decks.

## List Projects

`GET https://api.presentations.ai/api/v1/projects`

List projects, or folders with `kind=FOLDER` (optionally one container's children).

`top_level=true` keeps the caller's top level: no parent, or a parent they
cannot reach. Not with `parent_id`. A project-bound key sees its project and
the folders below it, with that project as its top.

**Query parameters**

- `page` (integer, optional, ≥ 1, default `1`) — Page number, starting at 1.
- `limit` (integer, optional, ≥ 1, ≤ 200, default `200`) — Items per page.
- `kind` (ProjectKind, optional, default `PROJECT`) — `PROJECT` lists projects; `FOLDER` lists folders.
- `parent_id` (string (uuid), optional) — Only the children of this project or folder.
- `top_level` (boolean, optional, default `false`) — Only your top level: no parent, or one you cannot open. Not with `parent_id`.

**Responses**

- `200`: Page_Project_ — Successful Response
- `401`: APIErrorResponse — Missing, malformed, expired, or revoked Bearer API key. `error.code`: `UNAUTHENTICATED`, `INVALID_TOKEN`.
- `403`: APIErrorResponse — The API key, workspace role, project scope, or plan lacks permission. `error.code`: `FORBIDDEN`, `FEATURE_NOT_IN_PLAN`, `PLAN_LIMIT_EXCEEDED`.
- `422`: RequestValidationErrorResponse — A path, query, header, or request-body field failed validation. `error.code`: `VALIDATION_FAILED`.
- `429`: APIErrorResponse — The caller exceeded the API rate limit. `error.code`: `RATE_LIMITED`.
- `500`: APIErrorResponse — Unexpected server failure. Retry only idempotent operations and retain trace_id. `error.code`: `INTERNAL_ERROR`.

## Create Project

`POST https://api.presentations.ai/api/v1/projects`

Create a project (plans with projects) or a folder (every plan).

A project-bound key creates folders only, inside its project.

**Request body** (`application/json`): CreateProjectRequest

**Responses**

- `201`: Project — Successful Response
- `401`: APIErrorResponse — Missing, malformed, expired, or revoked Bearer API key. `error.code`: `UNAUTHENTICATED`, `INVALID_TOKEN`.
- `403`: APIErrorResponse — The API key, workspace role, project scope, or plan lacks permission. `error.code`: `FORBIDDEN`, `FEATURE_NOT_IN_PLAN`, `PLAN_LIMIT_EXCEEDED`.
- `422`: RequestValidationErrorResponse — A path, query, header, or request-body field failed validation. `error.code`: `VALIDATION_FAILED`.
- `429`: APIErrorResponse — The caller exceeded the API rate limit. `error.code`: `RATE_LIMITED`.
- `500`: APIErrorResponse — Unexpected server failure. Retry only idempotent operations and retain trace_id. `error.code`: `INTERNAL_ERROR`.

## Get Project

`GET https://api.presentations.ai/api/v1/projects/{project_id}`

Fetch one project after enforcing workspace, key-scope, and read access.

**Path parameters**

- `project_id` (string (uuid), required) — ID of the project or folder.

**Responses**

- `200`: Project — Successful Response
- `401`: APIErrorResponse — Missing, malformed, expired, or revoked Bearer API key. `error.code`: `UNAUTHENTICATED`, `INVALID_TOKEN`.
- `403`: APIErrorResponse — The API key, workspace role, project scope, or plan lacks permission. `error.code`: `FORBIDDEN`, `FEATURE_NOT_IN_PLAN`, `PLAN_LIMIT_EXCEEDED`.
- `404`: APIErrorResponse — The resource does not exist or is outside the caller's scope. `error.code`: `NOT_FOUND`.
- `422`: RequestValidationErrorResponse — A path, query, header, or request-body field failed validation. `error.code`: `VALIDATION_FAILED`.
- `429`: APIErrorResponse — The caller exceeded the API rate limit. `error.code`: `RATE_LIMITED`.
- `500`: APIErrorResponse — Unexpected server failure. Retry only idempotent operations and retain trace_id. `error.code`: `INTERNAL_ERROR`.

## Patch Project

`PATCH https://api.presentations.ai/api/v1/projects/{project_id}`

Rename, re-slug, reshare, or move a folder; LEAD only.

**Path parameters**

- `project_id` (string (uuid), required) — ID of the project or folder.

**Request body** (`application/json`): UpdateProjectRequest

**Responses**

- `200`: Project — Successful Response
- `401`: APIErrorResponse — Missing, malformed, expired, or revoked Bearer API key. `error.code`: `UNAUTHENTICATED`, `INVALID_TOKEN`.
- `403`: APIErrorResponse — The API key, workspace role, project scope, or plan lacks permission. `error.code`: `FORBIDDEN`, `FEATURE_NOT_IN_PLAN`, `PLAN_LIMIT_EXCEEDED`.
- `404`: APIErrorResponse — The resource does not exist or is outside the caller's scope. `error.code`: `NOT_FOUND`.
- `422`: RequestValidationErrorResponse — A path, query, header, or request-body field failed validation. `error.code`: `VALIDATION_FAILED`.
- `429`: APIErrorResponse — The caller exceeded the API rate limit. `error.code`: `RATE_LIMITED`.
- `500`: APIErrorResponse — Unexpected server failure. Retry only idempotent operations and retain trace_id. `error.code`: `INTERNAL_ERROR`.

# Schemas

### CreateProjectRequest

Create a new project in a workspace.

- `name` (string, required, max length 120) — Project name.
- `default_member_role` (ProjectRole, optional, default `EDITOR`) — Role non-guest workspace members get without an explicit membership.
- `kind` (ProjectKind, optional, default `PROJECT`) — PROJECT needs a plan with projects; FOLDER is open to every plan.
- `parent_id` (string (uuid), optional) — FOLDER only: the folder or project to create it in; omitted puts it at the workspace root. Needs EDITOR or higher there.

### Page_Project_

- `data` (Project[], required) — Items on this page.
- `page` (integer, required) — 1-based page number returned.
- `limit` (integer, required) — Maximum items per page.
- `total` (integer, required) — Items matching the filters across all pages.

### Project

Project response shape.

- `id` (string (uuid), required) — Project id.
- `kind` (ProjectKind, optional, default `PROJECT`) — PROJECT, or FOLDER: a plain container with no knowledge, on every plan.
- `parent_id` (string (uuid), optional) — The folder or project this folder sits in; null at the workspace root.
- `workspace_id` (string (uuid), required) — Workspace that owns the project.
- `name` (string, required) — Project name.
- `slug` (string, required) — URL-safe handle, unique among sibling projects in the workspace.
- `default_member_role` (ProjectRole, required) — Role non-guest workspace members get on a workspace-visible project without an explicit membership.
- `workspace_visible` (boolean, required) — Whether non-guest workspace members can see the project; false restricts it to its creator and explicit members.
- `created_by` (string (uuid), required) — User id of the creator; null once that account is deleted.
- `archived_at` (string (date-time), required) — When archived; null if active.
- `created_at` (string (date-time), required) — Creation time.
- `knowledge_id` (string (uuid), optional) — The project's knowledge record; set only on the client project detail read.
- `has_share_link` (boolean, optional, default `false`) — Whether a reusable join link exists for the project.

### ProjectKind

What a project row is: a knowledge-bearing project or a plain folder.

One of: `PROJECT`, `FOLDER`

### ProjectRole

Project membership role.

One of: `LEAD`, `EDITOR`, `VIEWER`

### UpdateProjectRequest

Partial update of a project. Archive is handled by DELETE.

- `name` (string, optional, max length 120) — New name; omitted keeps it.
- `slug` (string, optional, max length 40) — New URL handle: lowercase letters, digits and inner hyphens.
- `default_member_role` (ProjectRole, optional) — New default member role; omitted keeps it.
- `workspace_visible` (boolean, optional) — Share with every non-guest workspace member, or restrict to the creator and explicit members; omitted keeps it.
- `parent_id` (string (uuid), optional) — FOLDER only: move it into this folder or project (EDITOR or higher there); an explicit null moves it to the workspace root; omitted keeps it.