Projects

Create, list, and manage projects. Each project has its own API key and can contain multiple review sources.

Create Project

POST/api/projects

Creates a new project.

Body:

Request Body
{
  "name": "My Project"
}

Response:

Response
{
  "project": {
    "id": "clx...",
    "name": "My Project",
    "apiKey": "clx...",
    "createdAt": "2026-02-07T19:39:27...",
    "updatedAt": "2026-02-07T19:39:27..."
  }
}

List Projects

GET/api/projects

Lists all projects (internal, no API key required).

Response
{
  "projects": [
    {
      "id": "clx...",
      "name": "My Project",
      "apiKey": "clx...",
      "_count": {
        "sources": 2,
        "reviews": 42
      }
    }
  ]
}

Get Project

GET/api/projects/[id]

Retrieves details for a specific project.

Delete Project

DELETE/api/projects/[id]

Deletes a project and all associated sources and reviews.

Warning: This action cannot be undone. All sources and reviews associated with this project will be permanently deleted.