MessageRecipient
Who to send the message to: an existing conversation, a contact or a phone number.
Variants
Set type to one of conversation, contact, phone.
ConversationRecipient
conversationSend to an existing conversation.
- Name
type- Type
- const
- required
- Name
conversationId- Type
- string
- required
Example
{
"type": "conversation",
"conversationId": "cnv_01HV8Z2JH0Q7K4M9N6P2A1B3C5"
}ContactRecipient
contactSend to a contact through the `inboxId` inbox. Flownally uses the contact's conversation in that inbox when there is one; otherwise it sends to the phone number in the contact's `cf_phone` custom field.
- Name
type- Type
- const
- required
- Name
contactId- Type
- string
- required
Example
{
"type": "contact",
"contactId": "ctc_01HV8Z2JH0Q7K4M9N6P2A1B3C5"
}PhoneRecipient
phoneSend to a phone number through the `inboxId` inbox. The inbox's channel must support sending to phone numbers, such as WhatsApp or Twilio; other channels return `400`.
- Name
type- Type
- const
- required
- Name
phoneNumber- Type
- string
- required
E.164 phone number. Common formatting is accepted and normalized.
Example
{
"type": "phone",
"phoneNumber": "+48123456789"
}