Skip to main content
POST
Send Channel Message

Request

LeadLex can send messages through any connected messaging provider. Slack, WhatsApp, and Telegram are fully supported with direct recipient addressing; Microsoft Teams requires an existing conversation context because Teams does not allow unsolicited 1:1 bot messages.

Headers

string
Optional UUID. Strongly recommended for outbound messages so that retries do not produce duplicates.

Body Parameters

string
required
Provider to send through. One of: slack, teams, whatsapp, telegram, email.
string
required
Provider-specific recipient identifier:
  • slack — channel ID (e.g. C01234567) or user ID (U01234567)
  • teams — conversation ID (Teams does not allow unsolicited user DMs; the conversation must already exist)
  • whatsapp — E.164 phone number (e.g. +14155550100)
  • telegram — numeric chat ID
  • email — email address
string
required
Message body. Plain text for SMS-style channels; Slack and Teams also accept mrkdwn / Adaptive Card syntax. Maximum 4,096 characters.
string
Subject line, required only for channel: "email".
string
Optional contact UUID. When provided, the message is logged to the contact timeline.
string
Optional deal UUID for association.
array
Optional attachments. Each entry accepts filename, mime_type, and either content_base64 or url.

Response

object
Responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.

Example Response

Errors