presentations.ai

Projects

Projects that group decks.

GET
/projects

List accessible projects; a project-bound key sees only its bound project.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

page?Page
Range1 <= value
Default1
limit?Limit
Range1 <= value <= 200
Default200

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/projects"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",      "name": "string",      "slug": "string",      "default_member_role": "LEAD",      "workspace_visible": true,      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "archived_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "knowledge_id": "5f8a7b91-9139-4c2f-b26f-44794dba4c86",      "has_share_link": false    }  ],  "page": 0,  "limit": 0,  "total": 0}
POST
/projects

Create a workspace project when the caller's plan and key allow it.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Create a new project in a workspace.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "name": "string",  "slug": "string",  "default_member_role": "LEAD",  "workspace_visible": true,  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "knowledge_id": "5f8a7b91-9139-4c2f-b26f-44794dba4c86",  "has_share_link": false}
GET
/projects/{project_id}

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

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

project_id*Project Id
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "name": "string",  "slug": "string",  "default_member_role": "LEAD",  "workspace_visible": true,  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "knowledge_id": "5f8a7b91-9139-4c2f-b26f-44794dba4c86",  "has_share_link": false}
PATCH
/projects/{project_id}

Update a project's name, slug, or default member role.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

project_id*Project Id
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

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

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "name": "string",  "slug": "string",  "default_member_role": "LEAD",  "workspace_visible": true,  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "knowledge_id": "5f8a7b91-9139-4c2f-b26f-44794dba4c86",  "has_share_link": false}