Skip to content

Reference

API Reference

Error codes, rate limits, and changelog for the Synapse API. Use these references when debugging integration issues or planning for scale.

Base URL

https://synapse-api.pyrx.tech/v1

All API routes are versioned under /v1/. No breaking changes within a version.

Error response format

All error responses follow a consistent structure:

{
  "detail": "Human-readable error message",
  "code": "machine_readable_code"
}

Plan limit errors include additional context:

{
  "message": "monthly_events limit reached (10000/10000)",
  "code": "plan_limit_reached",
  "limit_type": "monthly_events",
  "current": 10000,
  "maximum": 10000,
  "plan": "starter"
}

HTTP status codes

StatusMeaning
200Success
201Resource created
202Accepted for async processing (events, triggers)
400Bad request (invalid parameters or state)
401Missing or invalid authentication
403Insufficient permissions or plan limit reached
404Resource not found
422Validation error (request body doesn't match schema)
500Internal server error

Plan limits

Five limits are enforced at the service layer. Exceeding a limit returns 403 with code plan_limit_reached.

LimitFreeStarterGrowth
Monthly emails1,00010,000100,000
Contacts1,00010,000100,000
Monthly events10,000100,0001,000,000
Team members1310
Data retention30 days90 days365 days

Clone endpoints

Clone resources between test and live environments. All clone endpoints accept a target_environment body parameter ("test" or "live") and use upsert behavior — matching resources in the target are updated, new ones are created.

MethodEndpointAlso clones
POST/v1/templates/{slug}/cloneAll template versions
POST/v1/flows/{flow_id}/cloneVersions + conversion goals
POST/v1/segments/{segment_id}/clone-
POST/v1/contacts/views/{view_id}/clone-
POST/v1/reports/{report_id}/cloneReport schedules (inactive)

See the Clone guide for request/response examples and the recommended clone workflow.

Detailed references