Sdrs API documentation
The REST API connects your workspaces to your CRM, data warehouse and workflow tools. It is part of the Pro and Enterprise plans. Every request and response is JSON over HTTPS. To work with Sdrs from ChatGPT conversations instead of code, use the Sdrs plugin for ChatGPT.
Authentication
Create a token in your account under Settings, API Tokens and choose its permissions (read, create, update, delete). Send it as a bearer token. A token acts as you, so it reaches the workspaces you belong to and can do what your role in each workspace allows.
curl https://sdrs.ai/api/v1/workspaces \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Accept: application/json"
Workspaces
Each brand or client lives in its own workspace with separate mailboxes, leads, campaigns and replies. Pick the workspace with the X-Workspace-Id header (or a workspace_id parameter). Without it the API uses the workspace you have open in the app.
GET /api/v1/workspaces
{"data": [
{"id": 12, "name": "Acme outbound", "role": "owner", "current": true, "api_access": true},
{"id": 31, "name": "Client Northwind", "role": "admin", "current": false, "api_access": true}
]}
Roles are owner, admin (everything in the workspace, including members), member (read, create, update) and read only.
Leads
# List leads, newest first (filters: status, email, updated_since, page, per_page up to 100)
curl "https://sdrs.ai/api/v1/leads?per_page=50&updated_since=2026-10-01" \
-H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
# Add one lead (needs the create permission)
curl -X POST https://sdrs.ai/api/v1/leads \
-H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12" \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "first_name": "Jane", "last_name": "Doe",
"company_name": "Example Inc", "job_title": "VP Sales"}'
# Get one lead
curl https://sdrs.ai/api/v1/leads/481 -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
Fields: email (required), first_name, last_name, job_title, company_name, company_size, industry, location, phone, linkedin_url. A lead whose email already exists in the workspace is not added twice: the response is 200 with "duplicate": true and the existing lead.
Import leads
Send up to 5,000 leads per request, as JSON or as a CSV file with a header row (email, first name, last name, company, title, phone, linkedin, location, industry, company_size). Duplicates are skipped and invalid rows are reported.
curl -X POST https://sdrs.ai/api/v1/leads/import \ -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12" \ -F "[email protected]" curl -X POST https://sdrs.ai/api/v1/leads/import \ -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12" \ -H "Content-Type: application/json" \ -d '{"leads": [{"email": "[email protected]"}, {"email": "[email protected]", "company_name": "Example Org"}]}' {"data": {"created": 2, "duplicates": 0, "invalid": 0, "errors": []}}
Campaigns
# List campaigns (filter: status)
curl https://sdrs.ai/api/v1/campaigns -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
# Start or resume, and pause (needs the update permission)
curl -X POST https://sdrs.ai/api/v1/campaigns/7/start -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
curl -X POST https://sdrs.ai/api/v1/campaigns/7/pause -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
# Statistics
curl https://sdrs.ai/api/v1/campaigns/7/stats -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
{"data": {"leads": 240, "sent": 612, "opened": 301, "clicked": 44, "bounced": 3,
"replies": 38, "meetings": 9, "reply_rate": 6.2}}
A campaign needs at least one sequence step to start. A finished campaign cannot be restarted.
Replies and meetings
# Replies (filters: since, classification, campaign_id) curl "https://sdrs.ai/api/v1/replies?since=2026-10-14T00:00:00Z" \ -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12" # Meetings booked (filter: since) curl https://sdrs.ai/api/v1/meetings -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
Webhooks
Get a POST to your endpoint the moment a prospect replies (reply.received) or a meeting is booked (meeting.booked). The URL must be public HTTPS. The signing secret is shown once, when you create the webhook.
curl -X POST https://sdrs.ai/api/v1/webhooks \
-H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12" \
-H "Content-Type: application/json" \
-d '{"url": "https://hooks.example.com/sdrs", "events": ["reply.received", "meeting.booked"]}'
# List, change (url, events, active), delete, send a test event
curl https://sdrs.ai/api/v1/webhooks -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
curl -X PATCH https://sdrs.ai/api/v1/webhooks/3 -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12" \
-H "Content-Type: application/json" -d '{"active": false}'
curl -X DELETE https://sdrs.ai/api/v1/webhooks/3 -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
curl -X POST https://sdrs.ai/api/v1/webhooks/3/test -H "Authorization: Bearer YOUR_TOKEN" -H "X-Workspace-Id: 12"
Each delivery carries X-Sdrs-Event, X-Sdrs-Timestamp and X-Sdrs-Signature. The signature is sha256= followed by the HMAC SHA-256 of the timestamp, a dot and the raw body, keyed with your secret. Answer with any 2xx status. Failed deliveries are retried after 1, 5 and 30 minutes, and a webhook that fails 20 times in a row is turned off until you set it active again.
{"id": "evt_...", "type": "reply.received", "created_at": "2026-10-14T18:02:11+00:00", "workspace_id": 12,
"data": {"reply_id": 905, "body": "Sounds good, send me a time next week.", "classification": "interested",
"campaign_id": 7, "lead": {"id": 481, "email": "[email protected]", "first_name": "Jane"}}}
# Verify in Python
import hmac, hashlib
expected = "sha256=" + hmac.new(secret.encode(), f"{timestamp}.{raw_body}".encode(), hashlib.sha256).hexdigest()
valid = hmac.compare_digest(expected, signature_header)
Limits and errors
Each token can make 120 requests per minute, and lead imports are limited to 20 per minute. Over the limit the API answers 429 with a Retry-After header. Errors share one shape.
{"error": {"code": "role_permission", "message": "Your role in this workspace does not allow \"create\"."}}
401missing or revoked token403plan_required, token_permission or role_permission404workspace_not_found or not_found (records of other workspaces are never visible)422validation errors, invalid_url, campaign_without_steps429rate limit reached