Integrate CodeSync into your workflow with our RESTful API.
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
https://api.codesync.dev/v1
| Method | Endpoint | Description |
|---|---|---|
GET | /projects | List all projects |
POST | /projects | Create a new project |
GET | /projects/{id} | Get project details |
PATCH | /projects/{id} | Update project |
DELETE | /projects/{id} | Delete project |
| Method | Endpoint | Description |
|---|---|---|
GET | /projects/{id}/members | List collaborators |
POST | /projects/{id}/members | Invite collaborator |
DELETE | /projects/{id}/members/{uid} | Remove collaborator |
| Method | Endpoint | Description |
|---|---|---|
GET | /sessions | List active sessions |
POST | /sessions | Create a session |
DELETE | /sessions/{id} | End a session |
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:
session.started — a new collaboration session beginssession.ended — a session is closedmember.added — a collaborator is invitedmember.removed — a collaborator is removedfile.updated — a file is modifiedThe 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.