dm_chat_create
Find or create a chat for a participant on a DM-capable profile (idempotent — returns the existing chat if one already exists). Use before sending a message to a participant the profile has not yet messaged. On WhatsApp, placement_id (the phone number id from profiles_placements) is required and participant_external_id is the recipient's phone number in international format (digits only, no +); a new WhatsApp conversation must open with an approved template via dm_message_send.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile_id | Yes | Profile hashid | |
| placement_id | No | Placement id from profiles_placements. Required on WhatsApp (the phone number the chat belongs to); optional on Facebook (the page id). Ignored elsewhere. | |
| participant_name | No | Optional display name for the participant | |
| participant_username | No | Optional display username for the participant | |
| participant_external_id | Yes | Platform participant ID (Instagram-scoped user ID, Facebook PSID, Telegram user id, Bluesky DID, or WhatsApp phone number with country code — non-digits are stripped) |