WarmablyWarmablyDOCS
Search docs⌘K
Dashboard
API Reference/Endpoints

Start a new chat

POST/api/linkedin/gateway/chats

Opens a conversation with one or more attendees, optionally sending the opening message in the same call.

Authentication

Send your personal API key as a bearer token. A missing, malformed or revoked key returns 401.

Body parameters

FieldTypeDescription
account_id *stringThe account starting the chat. Must belong to this key.
attendees_ids *string[]Provider ids of the recipients — at least one.
textstringThe opening message. A handful of basic HTML tags (<strong>, <em>, <a>, <ul>/<li>) are honored for LinkedIn.
subjectstringA subject line, for the channels that support one.

Response fields

FieldTypeDescription
chat_idstring | nullThe new chat's id, once created.
message_idstring | nullThe opening message's id, if text was sent.
Warmably's gateway only forwards JSON request bodies, so attachments, voice_message and video_message — all binary uploads on this endpoint upstream — aren't usable here yet. Send text only.

Errors

·401 Unauthorized. The key is missing, malformed or has been rotated.·403 Forbidden. account_id doesn't belong to this key.·422 Unprocessable Entity. The recipient can't currently be messaged (not connected, or outside messaging permissions).
CredentialsRequired
AuthorizationBearer wm_live_••••••••
RequestTry it
curl -X POST https://api.warmably.com/api/linkedin/gateway/chats \
  -H "Authorization: Bearer wm_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "459993d2-b0e7-4b19-baf9-45252ca324cf",
    "attendees_ids": ["ACoAAAEkwwAB9KEc2TrQgOLEQ-vzRyZeCDyc6DQ"],
    "text": "Saw your post on Copilot — would love to connect."
  }'
Response
201 Created
{
  "object": "ChatStarted",
  "chat_id": "9c5e2a71-4b3f-4e8a-9c2d-9f1e6a2b7c44",
  "message_id": "6e2f1a9c-8b3d-4c2a-9f1e-2b7c449c5e2a"
}
No key yet? Create one from Dashboard → API Keys.