Get Dynamic Content Profile
GET
/api/v1/workspaces/{workspace_id}/dynamic_content_profiles/{id}
const url = 'https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1/dynamic_content_profiles/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1/dynamic_content_profiles/example \ --header 'Authorization: Bearer <token>'Retrieves a DynamicContentProfile.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”workspace_id
required
integer
Workspace ID
id
required
string
DynamicContentProfile ID
Responses
Section titled “ Responses ”Successful
Media typeapplication/json
object
id
required
string
name
required
string
created_at
required
string format: date-time
updated_at
required
string format: date-time
organization_id
required
integer
locale_conditional
required
One of:
The ESP syntax used to wrap each locale’s content in a conditional when locales are combined into a single email. In the if and else if syntax, {{locale}} is replaced with the locale’s code in the ESP: its mapping in locale_values, or the locale code itself if it has no mapping.
object
if_syntax
required
Opening syntax for the first locale. Must include {{locale}}.
string
else_if_syntax
required
Opening syntax for every locale after the first. Must include {{locale}}.
string
end_syntax
required
The closing syntax for the conditional.
string
locale_values
required
Maps a locale code (e.g. fr-FR) to the code the ESP stores for that locale (e.g. fr), for ESPs that use their own locale format. Locales without a mapping use their locale code unchanged.
object
key
additional properties
string
null
Example
{ "id": "uuid TODO", "name": "Mailchimp Profile", "created_at": "2023-08-23T10:30:00.000Z", "updated_at": "2023-08-23T10:30:00.000Z", "organization_id": 12345, "locale_conditional": { "if_syntax": "{% if ${language} == \"{{locale}}\" %}", "else_if_syntax": "{% elsif ${language} == \"{{locale}}\" %}", "end_syntax": "{% endif %}", "locale_values": { "fr-FR": "fr", "en-GB": "UKEN" } }}Not Found
Media typeapplication/json
object
message
required
string
code
string
Example
{ "message": "Record not found", "code": "share_link_expired"}