Sessions API
Create, list, update, and analyze coding sessions.
Sessions track AI coding activity. The CLI creates sessions automatically when you run crewkit code. The API provides endpoints for managing and analyzing session data.
All session endpoints are organization-scoped: /:org_id/sessions.
Create session
POST /:org_id/sessions
Content-Type: application/json
{
"remote_url": "git@github.com:acme/backend",
"component": "api",
"repository_id": "repo_abc123"
}Creates a conversation keyed by the Claude session ID. Returns the conversation.
List sessions
GET /:org_id/sessionsQuery parameters:
| Parameter | Description |
|---|---|
page | Page number (default: 1) |
per_page | Items per page (default: 25) |
project_id | Filter by project |
repo | Filter by repository slug |
agent_name | Filter by agent |
current_user_only |