Projects API

A project owns conversations, contacts, KB articles, widget config, integrations, forms, beacons, and webhooks. API keys are bound to a single organization but can reach any project within that org.

Endpoints

MethodPathScope
GET/v1/orgs/{orgId}/projectsread
POST/v1/orgs/{orgId}/projectsprojects:write
GET/v1/orgs/{orgId}/projects/{projectId}read
PATCH/v1/orgs/{orgId}/projects/{projectId}projects:write
DELETE/v1/orgs/{orgId}/projects/{projectId}projects:admin (destructive)

List projects

bash
curl https://api.rogeriq.com/api/v1/orgs/org_xxx/projects \ -H "X-API-Key: riq_xxx"

Create a project

bash
curl -X POST https://api.rogeriq.com/api/v1/orgs/org_xxx/projects \ -H "X-API-Key: riq_xxx" \ -H "Content-Type: application/json" \ -d '{"name": "Acme Support", "domain": "support.acme.com"}'

Body

namestringrequiredbody

1-100 characters.

slugstringbody

Lowercase + hyphens, 2-50 chars. Auto-derived from name if omitted. Must be unique within the org.

domainstringbody

Optional custom domain associated with the project.

Response

json
{ "data": { "id": "prj_xxxxxxxxxxxx", "org_id": "org_xxxxxxxxxxxx", "name": "Acme Support", "slug": "acme-support", "domain": "support.acme.com", "agent_mode": "copilot", "ai_model": null, "created_at": "2026-05-17T18:00:00Z" }}

409 SLUG_CONFLICT if the slug already exists in the org.

Update a project

bash
curl -X PATCH https://api.rogeriq.com/api/v1/orgs/org_xxx/projects/prj_xxx \ -H "X-API-Key: riq_xxx" \ -H "Content-Type: application/json" \ -d '{"agent_mode": "autopilot", "ai_model": "anthropic/claude-sonnet-4"}'

Body

namestringbody
domainstringbody
agent_modestringbody

One of autopilot, copilot, assist.

ai_modelstringbody

OpenRouter model id, e.g. anthropic/claude-sonnet-4.

Delete a project

bash
curl -X DELETE https://api.rogeriq.com/api/v1/orgs/org_xxx/projects/prj_xxx \ -H "X-API-Key: riq_xxx"

Requires projects:admin scope. Cascades — every conversation, contact, KB article, integration, webhook, form, and beacon owned by the project is deleted.

Audit

Every create / update / delete is recorded in the audit log with the acting API key id. See Settings → Audit log.

Ask a question... ⌘I