List Dynamic Content Profiles
const url = 'https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1/dynamic_content_profiles?per=10&page=1';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?per=10&page=1' \ --header 'Authorization: Bearer <token>'Retrieves the dynamic content profiles for the currently logged in user.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Workspace ID
Query Parameters
Section titled “Query Parameters”Number of records per page
Page number
Responses
Section titled “ Responses ”Successful
object
object
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
Opening syntax for the first locale. Must include {{locale}}.
Opening syntax for every locale after the first. Must include {{locale}}.
The closing syntax for the conditional.
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
object
Example
{ "results": [ { "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" } } } ], "pagination": { "per": 10, "page": 1, "total": 100 }}Not Found
object
Example
{ "message": "Record not found", "code": "share_link_expired"}