Basic request and response
Create a project withPOST /api/v1/app/project.
Endpoint parameters
Endpoint parameters
Example response
Example response
Project response fields
Create, get, PUT, PATCH and DELETE return this JSON model with200. Null fields may be omitted. Creation defaults to Viewer, default_role_enabled:false, use_citations:true, use_system_prompt:true. Nested members use the Project Members model.
Get a project
Example response
Example response
Update a project
PUT and PATCH accept the same optional fields. Omitted or null values preserve existing settings.project_context is trimmed; an empty or whitespace-only string clears it. The deployment limits its length. Setting default_role_enabled:true makes the project Public; false makes it Private, overriding a simultaneous visibility field.
- PUT
- PATCH
Endpoint parameters
Endpoint parameters
Example response
Example response
Delete a project
Example response
Example response
204 No Content.
Leave a project
Example response
Example response
Transfer project ownership
Endpoint parameters
Endpoint parameters
Example response
Example response
Project workspace member info
Get project information for a specified workspace member, or update it for the currently authenticated workspace member.- Get member info
- Update current member info
Endpoint parameters
Endpoint parameters
Example response
Example response
Project-scoped chat
Use the currentPOST /api/v1/app/chat with project_id in the body. The compatibility URL POST /api/v1/app/project/{projectID}/chat remains available; migrate new clients to the current route. The current route always returns SSE.
Endpoint parameters
Endpoint parameters
pgpt.stream: true streams events; false returns a Message response.
Errors and edge cases
- 403: not a project member.
- 404: project not found.
- 409: transfer target not eligible.