API Documentation

Programmatic access to your platform

Authentication

All requests require a Bearer token in the Authorization header. Generate an API key from your Settings page.

Authorization: Bearer sk_your_api_key_here

Base URL

Your API base URL is https://api.{your-subdomain}

Endpoints

POST/people

Create a new person in your database.

ParameterTypeDescription
name requiredstringFull name
emailstringEmail address
mobilestringMobile phone number
address_line1stringStreet address
address_line2stringApt, suite, etc.
address_citystringCity
address_statestringState or province
address_zipstringPostal code
address_countrystringCountry

Example request:

curl -X POST https://api.{your-subdomain}/people \
  -H "Authorization: Bearer sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Jane Smith", "email": "jane@example.com"}'

Example response:

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "Jane Smith",
  "email": "jane@example.com",
  "mobile": null
}

POST/sequences/:sequence_id/enrollments

Enroll a person in a sequence.

ParameterTypeDescription
sequence_id requiredstringUUID of the sequence (in URL)
person_id requiredstringUUID of the person to enroll

Example request:

curl -X POST https://api.{your-subdomain}/sequences/SEQ_ID/enrollments \
  -H "Authorization: Bearer sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"person_id": "PERSON_ID"}'

Example response:

{
  "id": "enrollment-uuid",
  "sequence_id": "sequence-uuid",
  "person_id": "person-uuid",
  "status": "active"
}

Errors

StatusMeaning
201Created successfully
401Missing or invalid API key
404Resource not found
422Validation error (check response body)
500Server error
Need help? Contact your administrator for support.