Project API

Retrieve project details and manage published versions. The API key is scoped to a single project, so these endpoints return data for the authenticated project only.

Endpoints

GET
/api/v1/project

Get project details

GET
/api/v1/project/versions

List published versions

Get Project

Returns the full project configuration including name, description, framework, language, and widget config.

Request
GET /api/v1/project
Authorization: Bearer cdt_abc123...
Response
{
  "id": "proj_abc123",
  "name": "Customer Support Agent",
  "description": "Handles customer inquiries and support tickets",
  "framework": "agentic",
  "language": "en",
  "slug": "support-agent",
  "createdAt": "2025-01-01T00:00:00Z",
  "updatedAt": "2025-01-15T12:00:00Z"
}

List Versions

Returns all published versions (snapshots) for the project, ordered by most recent. Use version IDs when interacting with the Conversations API to target a specific release.

Request
GET /api/v1/project/versions
Authorization: Bearer cdt_abc123...
Response
[
  {
    "id": "ver_xyz789",
    "name": "V3 release (manual)",
    "createdAt": "2025-01-15T10:30:00Z"
  },
  {
    "id": "ver_abc456",
    "name": "V2 release (manual)",
    "createdAt": "2025-01-10T08:00:00Z"
  }
]

Response Fields

Project

FieldTypeDescription
idstringUnique project identifier
namestringProject display name
descriptionstring | nullProject description
frameworkstring"agentic", "conversation-flow", or "outbound"
languagestring | nullISO language code (e.g. "en")
slugstring | nullURL-friendly project slug
createdAtstringISO 8601 creation timestamp

Version

FieldTypeDescription
idstringUnique version identifier
namestringVersion name / release label
createdAtstringISO 8601 publish timestamp

Targeting Environments

When calling the Conversations API, you can specify which version of your project to target by passing a versionId in the request body:

ValueDescription
"development"Latest unpublished changes (default)
"production"Most recently published version
"ver_xyz789"Specific version by ID