SalePilot Agencyby Kowaling

API Reference

Complete reference for the SalePilot Agency API.

Base URLhttps://api.salepilot.dev

Create Organization

POST/v1/organizations

Create a new organization to manage WhatsApp channels, templates, flows, and team settings.

Request

Content-Type: application/json

{
  "name": "Acme Digital Agency",
  "timezone": "America/Sao_Paulo",
  "currency": "BRL",
  "industry": "Marketing",
  "website": "https://acme.digital"
}

Parameters

NameTypeRequiredDescription
namestringYesName of the organization
timezonestringYesTimezone (e.g., America/Sao_Paulo)
currencystringNoCurrency code (e.g., BRL, USD)
industrystringNoIndustry or business category
websitestringNoOrganization website URL

Response

201 Created
{
  "id": "org_9fJb2c1a8d4e",
  "name": "Acme Digital Agency",
  "timezone": "America/Sao_Paulo",
  "currency": "BRL",
  "industry": "Marketing",
  "website": "https://acme.digital",
  "created_at": "2025-05-21T10:15:30Z"
}

Send Message

POST/v1/messages

Send a WhatsApp message to a contact.

Request

Content-Type: application/json

{
  "to": "+5511999999999",
  "type": "text",
  "text": {
    "body": "Hello from SalePilot! 👋"
  }
}

Parameters

NameTypeRequiredDescription
tostringYesRecipient phone number in E.164 format
typestringYesMessage type: text, template, media
text.bodystringYesMessage text content (max 4096 chars)

Response

202 Accepted
{
  "id": "msg_8e7d6f4c2b1a",
  "status": "accepted",
  "to": "+5511999999999",
  "type": "text",
  "created_at": "2025-05-21T10:16:45Z"
}

Webhook Example

POST/v1/webhooks

We send event notifications to your webhook URL. Example payload for message.received event.

{
  "event": "message.received",
  "organization_id": "org_9fJb2c1a8d4e",
  "channel_id": "wa_12345678",
  "data": {
    "message_id": "msg_8e7d6f4c2b1a",
    "from": "+5511999999999",
    "type": "text",
    "text": {
      "body": "Hi, I need help with pricing."
    },
    "timestamp": "2025-05-21T10:18:22Z"
  }
}
2,500+Agencies trust us
75,000+Organizations onboarded
1.2B+Messages delivered
99.99%Uptime SLA
“

SalePilot Agency’s API is clean, reliable, and developer-friendly. We integrated in a day and scaled to millions of messages effortlessly.

— Rodrigo Silva, CTO at Nexo Digital