Skip to main content

Getting Started

1. Register an account

POST /auth/register
Content-Type: application/json

{
"name": "Jane Smith",
"email": "jane@example.com",
"password": "hunter2hunter2"
}

Response:

{
"accessToken": "eyJ...",
"refreshToken": "eyJ...",
"user": { "id": "...", "email": "jane@example.com" }
}

2. Connect a task source

Use the access token to get an OAuth URL for a connector:

POST /connectors/configs
Authorization: Bearer <accessToken>
Content-Type: application/json

{ "source": "todoist" }

Response: { "url": "https://todoist.com/oauth/..." }

Visit that URL in a browser to authorise CTM. The callback is handled automatically.

3. List your tasks

Once a connector is set up, the sync worker mirrors tasks within ~15 minutes:

GET /tasks
Authorization: Bearer <accessToken>