Skip to main content
The Projects API allows you to organize memories into logical groups. Projects help you separate different applications or use cases.

List Projects

Retrieve all projects for the authenticated user.

Request

curl https://t0ken.ai/api/v1/projects \
  -H "X-API-Key: omx_your_api_key"

Response

{
  "success": true,
  "data": [
    {
      "id": "proj_default",
      "name": "default",
      "description": "Default project",
      "created_at": "2026-02-13T10:00:00Z"
    }
  ]
}

Create Project

Create a new project.
name
string
required
Project name (unique per user)
description
string
Optional project description

Request

curl -X POST https://t0ken.ai/api/v1/projects \
  -H "X-API-Key: omx_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-app",
    "description": "My AI application memories"
  }'

Response

{
  "success": true,
  "data": {
    "id": "proj_myapp",
    "name": "my-app",
    "description": "My AI application memories",
    "created_at": "2026-02-13T10:00:00Z"
  }
}

Get Project

Retrieve a specific project by ID.
curl https://t0ken.ai/api/v1/projects/proj_myapp \
  -H "X-API-Key: omx_your_api_key"

Delete Project

Delete a project and all associated memories.
This action cannot be undone. All memories in the project will be permanently deleted.
curl -X DELETE https://t0ken.ai/api/v1/projects/proj_myapp \
  -H "X-API-Key: omx_your_api_key"