CRM — Companies & Contacts

List companies (paginated)

Scope: crm:read. Use pageSize, page, search query params.

curl -s "https://api.live-direct-marketing.online/api/companies?pageSize=10&search=acme" \
  -H "Authorization: Bearer $LDM_KEY"

Create company

Scope: crm:write. Required: name. Optional: domain, industry, phone, website, taxId, custom fields.

curl -s -X POST "https://api.live-direct-marketing.online/api/companies" \
  -H "Authorization: Bearer $LDM_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Acme Inc","domain":"acme.com","industry":"SaaS"}'

Create contact attached to a company

Scope: crm:write. Channels (email/phone) are an array under channels.

curl -s -X POST "https://api.live-direct-marketing.online/api/contacts" \
  -H "Authorization: Bearer $LDM_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName":"John","lastName":"Doe","companyId":"<uuid>",
    "channels":[{"type":"EMAIL","value":"john@acme.com","isPrimary":true}]
  }'