CreateContentRequest
Properties
Name | Type | Required | Description |
---|---|---|---|
author_identity_id | str | ❌ | Identity identifier of the author of content. Not mandatory on creation, by default it uses the token's user first identity on channel. |
body | str | ❌ | The content's body. On creation this field is mandatory except for WhatsApp content using templates. The following are the max length restrictions for the different channels supported. Channel and max length _ Apple Messages For Business (max length 10000) _ Email (max length 262144) _ RingCX Digital Messaging (max length 1024) _ Facebook (max length 8000) _ GoogleBusinessMessages (max length 3000) _ Google My Business (max length 4000) _ Instagram (max length 950) _ Instagram Messaging (max length 1000) _ LinkedIn (max length 3000) _ Messenger (max length 2000) _ Twitter (max length 280) _ Viber (max length 7000) _ WhatsApp (max length 3800) _ Youtube (max length 8000) |
in_reply_to_content_id | str | ❌ | The content identifier to which this content is a reply to. On creation, if omitted, a new discussion will be created. If the channel does not support to initiate discussion this parameter is mandatory. |
public | bool | ❌ | True if the content is publicly visible on the remote channel (default). Private content is NOT supported on every channel. |
source_id | str | ❌ | Identifier of the channel. On creation if inReplyToContentId is specified, the channel will be determined from it. Otherwise, this parameter is mandatory. |
attachment_ids | List[str] | ❌ | An array containing the attachment identifiers that need to be attached to the content. |
title | str | ❌ | Applicable to Email channels only. The subject of the email. This field is mandatory when initiating a discussion. |
to | To | ❌ | |
cc | List[str] | ❌ | Applicable on Email channels only. An array containing the email addresses used in sections of the email. This parameter is mandatory when initiating a discussion. |
bcc | List[str] | ❌ | Applicable on Email channels only. An array containing the email addresses used in sections of the email. This parameter is mandatory when initiating a discussion. |
template_name | str | ❌ | Applicable to WhatsApp channels only. Name of the Whatsapp template to use for the content. All available template names are visible on the Whatsapp Business Manager interface. |
template_language | str | ❌ | Applicable to WhatsApp channels only. Language of the Whatsapp template to use for the content. All available template languages are visible on the Whatsapp Business Manager interface. Language specified must conform to the ISO 639-1 alpha-2 codes for representing the names of languages. |
components | List[ContentComponents] | ❌ | Applicable to WhatsApp channels only. Component configuration of the Whatsapp template to use for the content. All available components are visible on the Whatsapp Business Manager interface. |
context_data | dict | ❌ | Additional data of the content. The contextData hash keys are the custom fields keys. |
auto_submitted | bool | ❌ | Auto submitted content: - won't reopen tasks or interventions - can be used to send automatic messages like asking an user to follow on twitter, sending a survey, etc, - doesn't get included in statistics |
To
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs