Authentication

You'll need an API key for everything. Generate one in your account settings (profile menu → API Keys). Keys look like this:

Authorization: Bearer cs_live_xxxxxxxxxxxx

Base URL

https://api.codesync.dev/v1

Endpoints

Projects

MethodEndpointDescription
GET/projectsList all projects
POST/projectsCreate a new project
GET/projects/{id}Get project details
PATCH/projects/{id}Update project
DELETE/projects/{id}Delete project

Collaborators

MethodEndpointDescription
GET/projects/{id}/membersList collaborators
POST/projects/{id}/membersInvite collaborator
DELETE/projects/{id}/members/{uid}Remove collaborator

Sessions

MethodEndpointDescription
GET/sessionsList active sessions
POST/sessionsCreate a session
DELETE/sessions/{id}End a session

Webhooks

If you want to get notified when something happens (like someone starts a session or a file gets updated), set up a webhook URL in your integration settings. We'll POST to that URL when events happen.

Supported events:

Rate Limits

The API enforces a rate limit of 1,000 requests per hour per API key. Exceeding the limit returns a 429 Too Many Requests response. Check the X-RateLimit-Remaining header to monitor your usage.