Authorization header. Errors are returned as { "error": "string message" }.
List projects
GET /projects
Returns all projects accessible to the authenticated user.
Auth required: Yes
Response
Array of project objects.
Example request
Example response
Errors
| Status | Description |
|---|---|
401 | Missing or invalid token. |
500 | Internal server error. |
Create a project
POST /projects
Creates a new project. The authenticated user is automatically assigned as the project manager.
Auth required: Yes
Request body
Name of the project.
Name of the client.
Short description of the project scope or goals.
Response
Returns the newly createdProject object.
Example request
Example response
Errors
| Status | Description |
|---|---|
400 | Missing or invalid fields. |
401 | Missing or invalid token. |
Get a project
GET /projects/:id
Returns the full project, including its tasks and team members. Use this endpoint when you need to display or work with project details.
Auth required: Yes
Path parameters
The project ID.
Response
Unique project identifier.
Name of the project.
Name of the client.
Project description.
User ID of the project manager.
Array of task summary objects linked to this project.
Array of user IDs on the project team.
Example request
Example response
Errors
| Status | Description |
|---|---|
401 | Missing or invalid token. |
403 | You do not have access to this project. |
404 | Project not found. |
Update a project
PUT /projects/:id
Updates the name, client, or description of a project. Only the project manager can update project details.
Auth required: Yes
Path parameters
The project ID.
Request body
Updated project name.
Updated client name.
Updated project description.
Response
Returns the updatedProject object.
Example request
Example response
Errors
| Status | Description |
|---|---|
400 | Missing or invalid fields. |
401 | Missing or invalid token. |
403 | Only the project manager can update this project. |
404 | Project not found. |
Delete a project
DELETE /projects/:id
Permanently deletes a project and all associated data. Only the project manager can delete a project.
Auth required: Yes
Path parameters
The project ID.
Response
Returns a confirmation message on success.Example request
Example response
Errors
| Status | Description |
|---|---|
401 | Missing or invalid token. |
403 | Only the project manager can delete this project. |
404 | Project not found. |
