Skip to main content
SkedX
Docs · API reference

Leads API

Updated 11 March 20261 min read

Create, read, update, delete, and search leads using the SkedX REST API with code examples.

The Leads API provides full CRUD operations for managing leads in SkedX CRM. All endpoints require authentication via API key or OAuth token. Responses are JSON-formatted with pagination support for list endpoints.

List leads

Retrieve a paginated list of leads with optional filtering and sorting.

curl -X GET "https://api.skode.ai/v1/leads?page=1&per_page=25&status=new&sort=-created_at" \
  -H "Authorization: Bearer sk_live_your_api_key"

Query parameters: page, per_page (max 100), status, source, owner_id, created_after, created_before, sort (prefix with - for descending).

Get a lead

Retrieve a single lead by ID, including all fields and related data.

curl -X GET "https://api.skode.ai/v1/leads/lead_abc123" \
  -H "Authorization: Bearer sk_live_your_api_key"

Create a lead

const response = await fetch('https://api.skode.ai/v1/leads', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer sk_live_your_api_key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'Jane Doe',
    email: '[email protected]',
    phone: '+1-555-0123',
    company: 'Example Corp',
    source: 'website',
    deal_value: 25000,
    custom_fields: {
      industry: 'Technology',
      employees: '50-200'
    }
  })
});

Required fields: name. Optional: email, phone, company, source, deal_value, status, owner_id, tags, custom_fields.

Update a lead

curl -X PATCH "https://api.skode.ai/v1/leads/lead_abc123" \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"status": "qualified", "deal_value": 50000}'

Send only the fields you want to update. All other fields remain unchanged.

Delete a lead

curl -X DELETE "https://api.skode.ai/v1/leads/lead_abc123" \
  -H "Authorization: Bearer sk_live_your_api_key"

Returns 204 No Content on success. Deleted leads are moved to trash and can be restored within 30 days.

Search leads

curl -X POST "https://api.skode.ai/v1/leads/search" \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"query": "example.com", "fields": ["email", "company"]}'

Keep reading

READY WHEN YOU ARE

One record
Start there

Free plan, no card. Five tools replaced in an afternoon; your data stays yours.

pick a slot. we call you, on your clock.
pick a slot.
we call you,
on your clock.

No card. We only use your details to set you up or call you back.

A 20-minute call with a real person, on your clock.
SetupUnder 5 min
CardNot required
Replaces5 tools
Your dataExport anytime