Page

API Documentation

Base URL: http://localhost:3003

Browser Management

POST/api/browser/launchLaunch Chrome and navigate to Canva
GET/api/browser/statusCheck browser connection and Canva login status
POST/api/browser/cookiesInject cookies to login without password

Team Members

GET/api/members/listList all team members (active + invited)
POST/api/members/inviteInvite members by email

Debug

GET/api/debug/page-infoInspect current page elements (buttons, links)

Quick Start

1. Launch browser + inject cookies

# Launch browser
curl -X POST http://localhost:3003/api/browser/launch

# Inject cookies (export from your real Chrome first)
curl -X POST http://localhost:3003/api/browser/cookies \
  -H "Content-Type: application/json" \
  -d @cookies.json

2. Verify login

curl http://localhost:3003/api/browser/status
# => {"connected":true,"loggedIn":true,...}

3. Invite members

curl -X POST http://localhost:3003/api/members/invite \
  -H "Content-Type: application/json" \
  -d '{"emails":["new@example.com"]}'

4. List members

curl http://localhost:3003/api/members/list

Error Handling

// All endpoints return this format on error:
{
  "success": false,
  "error": "Error description message"
}

// HTTP Status Codes:
// 200 - Success
// 400 - Bad Request (invalid input)
// 500 - Server Error (browser not connected, etc.)