You can create dynamic content. Requires the read_write_dynamic_content scope.
Intercom API version.
By default, it's equal to the version set in the app package.
The name of the dynamic content. Must be unique in the workspace.
Whether the dynamic content is a short inline value (inline) or one or more blocks of content (block). Can't be changed later.
The locale whose variation is used when there's no variation for the requested locale. variations must include a variation for this locale that applies to all brands.
The variations of the dynamic content, one per locale and optionally per brand. Set brand_id on a variation to override the all-brands value for that brand. At least one is required.
- The production API serverhttps://api.intercom.io/dynamic_contents
- The european API serverhttps://api.eu.intercom.io/dynamic_contents
- The australian API serverhttps://api.au.intercom.io/dynamic_contents
- Create inline dynamic content
- Create inline dynamic content with a brand override
- Create block dynamic content
curl -i -X POST \
https://api.intercom.io/dynamic_contents \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: Preview' \
-d '{
"name": "Support phone number",
"content_type": "inline",
"default_locale": "en",
"variations": [
{
"locale": "en",
"text_content": "+1-555-0100"
},
{
"locale": "fr",
"text_content": "+33 1 23 45 67 89"
}
]
}'Dynamic content created
String representing the object's type. Always has the value dynamic_content.
The identifier that articles use to reference the dynamic content. Derived from the name when the dynamic content is created, and never changes.
Whether the dynamic content is a short inline value (inline) or one or more blocks of content (block).
The locale whose variation is used when there's no variation for the requested locale.
The variations of the dynamic content.
The time the dynamic content was created as a Unix timestamp.
{ "type": "dynamic_content", "id": "123", "name": "Support phone number", "key": "support-phone-number", "content_type": "inline", "default_locale": "en", "variations": [ { … }, { … } ], "created_at": 1663597223, "updated_at": 1663597223 }