Projects API
Complete API reference for managing projects programmatically via REST endpoints.
Overview
The Projects API allows you to create, update, and manage projects programmatically. All endpoints require authentication via API key.
Base URL: https://cencori.com/api
List Projects
Get all projects in your organization.
Request
request
Response
response.json
Example
list-projects.ts
Create Project
Create a new project in your organization.
Request
request
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
name | string | ✅ | Project name |
description | string | ❌ | Project description |
visibility | string | ❌ | public or private (default: public) |
Example
create-project.ts
Get Project
Retrieve details for a specific project.
Request
request
Response
response.json
Update Project
Update an existing project.
Request
request
Example
update-project.ts
Delete Project
Permanently delete a project and all associated data.
Request
request
Warning: This action is irreversible. All API keys, logs, and analytics for this project will be permanently deleted.
Error Responses
| Status | Error | Description |
|---|---|---|
| 400 | Invalid Request | Missing or invalid parameters |
| 401 | Unauthorized | Invalid API key |
| 403 | Forbidden | No permission to access project |
| 404 | Not Found | Project doesn't exist |
| 409 | Conflict | Project with same name exists |

