Instead of copying and updating data from various places, external sources let you get up-to-date information directly from external systems—like ERP, CRM, inventory, pricing, e-commerce platforms, other CMSs, or any REST API—and pull live data in real time when content is generated.
By creating an external source, you establish a connection with an external service by providing key details such as the endpoint URL, HTTP method (GET or POST), authentication method (for example, API key, login/password, OAuth2 Client Credentials, or SHA256-based), and other settings. During content generation (when an object with a record is generated or a record is previewed for the context of a specific profile in the editor) Synerise sends a request to the configured endpoint.
In the configuration of the external source, you can also use Jinjava (for example, in the endpoint URL or request body) to dynamically pass profile information in the request. At the end of the external source configuration, a preview cURL command is provided, which you can copy and test in your terminal or API testing tool.
This integration lets external data appear seamlessly as part of your content, just like data stored directly inside Brickworks. External sources eliminate multi-system integration complexity while ensuring your content remains accurate, complete, and contextually relevant—making it a live reflection of your entire business ecosystem.
Benefits
- Content always reflects the latest state of your business systems. Inventory counts, pricing, customer data, and metrics are fetched live when content is requested.
- Your applications make one API call to Brickworks and receive complete, enriched content that combines your managed content with live external data.
- No ETL jobs to monitor, no data synchronization to manage, no stale data concerns. External systems remain the single source of truth.
- External sources can use context parameters and other record's simple fields to fetch precisely the right data for each request, enabling dynamic, personalized content experiences.
Example use cases
You can use external sources in the following cases:
- E-commerce operations - You can combine static product information from a record with live data such as current inventory levels, pricing updates, customer ratings, and shipping costs pulled directly from your backend or e-commerce platform. You also add personalized product suggestions based on what each customer has recently viewed. This way, the product details you show are always accurate and tailored for each shopper in real time.
- Customer experience platforms - You can merge personalized data created inside Synerise — like recent product views or preferences—with up-to-date information about the customer’s account or status pulled from your external CRM or other backend systems. For example, you could show each customer their current membership level or available offers alongside personalized clothing recommendations, all combined into one seamless experience.
- Legacy CMS modernization - If you’re still using an older CMS for your website content, you can fetch static content (like text and images) from your legacy CMS, then enrich it by adding AI-driven Synerise product recommendations, personalized promotions, and personalized messages without needing to move your content elsewhere.
Procedure
- Go to
Data Modeling Hub > External sources > New external source.
Result:

Selecting the external source type - Optionally, you can enter a description for the connection to explain its purpose to other people in the organization.
Select the method of authorization to the external source to which you will make a request.
This method sends an authentication token request before executing the main request defined in the external source settings. The token is fetched when the request data is uncached, then cached according to its TTL, and added to the target request.
- Click Select connection.
- In the connection list:
- If the connection you want to use is in the list, select it and proceed to selecting the HTTP method.
- If the connection list is empty or you don't see a connection, you must:
At the top of the dropdown list, click Add connection.
- In the Authorization request tab, click Define.
- In the Connection name field, enter the name of your connection (it's visible only on the Select connection dropdown list or on the list of connections in Settings > Connections).
- In Secret, enter a value which is required in the request to obtain a token. This value will be anonymized and displayed as asterisks.
- From the Method dropdown list, select the HTTP method of the request.
- In URL, provide the URL to which the request will be sent.
- In the Headers section, add request headers (in the left field, enter the key; in the right, enter its value).
- In the Body field, enter the request body.
For example:
where{ "api-key": "{{secret}}" }{{secret}}retrieves the value of the Secret field to anonymize the token. - Confirm the settings in the Authorization request tab by clicking Apply.
- In the Token placement settings section, click Define.
- Click Authorization response.
If you:
specify the value in the Headers section, the extracted authorization data from the response will be added as a header to the target request.
provide the value in the URL Parameters section, the data will be appended to the target request’s URL as a parameter.
You can use the following values to retrieve values from the response:authResponseBody- a variable that contains the full body of an authentication responseauthResponseStatusCode- a variable that contains the status code of an authentication responseauthResponseHeaders- a variable that contains the headers of an authentication response
For example:
Bearer {{ authResponseBody | fromjson | attr("token") }}
It takes the
JSONresponse body stored inauthResponseBody, parses it into a usable structure, and extracts the value of thetokenfield. Outputs a string like:Bearer "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."- In TTL field, specify how long the cached response from the external request will be valid.
If you leave this field empty, it's 60 seconds. - Confirm by clicking Create.
You can reuse this connection in other external sources and in Workflows.
This method lets you use basic authentication to authenticate with the remote server.
- Click Select connection.
- In the connection list:
- If the connection you want to use is in the list, select it and proceed to selecting the HTTP method.
- If the connection list is empty or you don't see a connection, you must:
- At the top of the dropdown list, click Add connection.
- In the Connection name field, enter the name of your connection (it's visible only in Synerise).
- In the Login field, enter a login.
- In the Password field, enter the password.
- Click Create.
You can reuse this connection in other external sources and in Workflows.
This method is particularly recommended for the users who use Synerise REST API. It lets you select a connection that includes an API key with the required permissions. This way, the requests to Synerise API are executed by this integration and a JWT is not required as it is generated while sending requests and attached to the request headers.
- Click Select connection.
- If the connection you want to use is in the list, select it and fill in the configuration.
- If the connection list is empty or you don't see a connection, you must:
- At the top of the dropdown list, click Add connection.
- In the Connection name field, enter the name of your connection (it's visible only in Synerise).
- From the API key dropdown, select the API key.
If the list is empty, make sure your user role includes the permission to preview API keys. - Click Create.
You can reuse this connection in other external sources and in Workflows.
- If the connection list is empty or you don't see a connection, you must:
This method lets you use your OAuth2 credentials to authorize.
- Click Select connection.
- In the connection list:
- If the connection you want to use is in the list, select it and proceed to selecting the HTTP method.
- If the connection list is empty or you don't see a connection, you must:
- At the top of the dropdown list, click Add connection.
- In the Connection name field, enter the name of your connection (it's visible only in Synerise).
- In the Token endpoint URL field, enter the URL used to obtain an access token from the authorization server.
- In the Client ID field, enter a unique identifier assigned to your application by the service provider.
- In the Client secret field, enter a confidential key issued alongside the Client ID. It is used to securely authenticate your application.
- Optionally, in the Scope field, define the level of access your application is requesting. Scopes specify which actions or data your application can access (for example, read user data, send messages). Refer to the API documentation for the correct scope values.
- Click Create.
You can reuse this connection in other external sources and in Workflows.
This method is recommended exclusively for connecting with Eagle Eye. This method lets you authenticate using the SHA256 algorithm. When a target request is sent, the following headers are added to the request:
- X-EES-AUTH-CLIENT-ID - the value is taken from the Client ID field.
- X-EES-AUTH-HASH - the value is generated by concatenating the endpoint URI, request body, and client secret, and then hashing the result using SHA256.
- Click Select connection.
- In the connection list:
- If the connection you want to use is in the list, select it and proceed to selecting the HTTP method.
- If the connection list is empty or you don't see a connection, you must:
- At the top of the dropdown list, click Add connection.
- In the Connection name field, enter the name of the connection.
It's used to find the connection on the list. - In Client ID, enter a unique identifier assigned to your application by the service provider.
- In Client secret, enter the client secret assigned to your application by the service provider.
- Confirm by clicking Create.
You can reuse this connection in other external sources and in Workflows.
This method lets you authenticate using an API secret by including it in a header of your choice or in a URL parameter. Example outputs:
- the authorization header:
Authorization: Bearer [secret] - URL parameter:
client_id=[rendered secret]
When you use this connection, the token will be automatically added to either the request header or the request URL with every request.
- Click Select connection.
- If the connection you want to use is in the list, select it and proceed to selecting the HTTP method.
- If the connection list is empty or you don't see a connection, you must:
- At the top of the dropdown list, click Add connection.
- In the Connection name field, enter the name of your connection (it's visible only in Synerise).
- In the Secret field, enter an API Key.
- If you:
- specify the value in the Headers section, the API key will be added as a header to the request. For example,
x-api-key: {{secret}}where{{secret}}retrieves the value of the Secret field to anonymize the API key value. - provide the value in the URL Parameters section, the API key will be appended to the request’s URL as a parameter.
- specify the value in the Headers section, the API key will be added as a header to the request. For example,
- Click Create.
You can reuse this connection in other external sources and in Workflows.
- If the connection list is empty or you don't see a connection, you must:
No authentication is required.
Optionally, to import the request from a cURL string instead of entering all data manually:
- Click Import cURL.
- Paste the request into the text field.
- Click Import.
- If prompted, review the data and confirm with Yes, import.
Result: Data from the cURL is inserted into the editor. You can skip the instructions for editing the fields imported from your cURL.
- From the Method dropdown list, select the request method to specify how the request will be sent.
- In URL, provide the endpoint address to which the request will be made. You can include query parameters directly in the URL, for example:
https://example.com/products?productId={{profile.id}}&lang={{profile.language}}.
Values of query parameters can use Jinjava, which allows you to dynamically pass profile data or record field values in the request. If the same parameter is defined both in the URL query string and in the Query parameters section, the value from Query parameters overrides the value from the URL. Because of this, parameters defined in the URL do not need to be repeated in Query parameters unless you want to overwrite them. - In TTL, specify how long the cached response from the external request will be valid. After changing data, the old value can be visible through brickworks for a maximum time defined here. You can set maximum 1800s value.
We recommend setting short TTL for fast-changing data and longer for stable information. - In the Headers section, by clicking Add header, you can define the request headers such as
content-type: application/jsonin the key-value form: in the left field (key) provide a header name, in the right field, provide a value.
These headers will be used in all schemas where you use this data source. If you selected the POST method, you must provide the request body in the Body section:
IMPORTANT: The content of the request body may be returned during object generation when the Return error details when the source responds with an error option is enabled in a schema. In such cases, you can remove sensitive data carried over from the request body by using Response transformers.
- Define the body type:
- Single object sends the object that you enter, once.
- List of objects sends an array of objects. The objects are created from the template that you enter.
For details on building the body, see External source request as array of objects.
- If you selected List of objects, in Number of items enter how many times you want to repeat the object from the template.
This is a default value. It can be modified during content generation. - In the text box, enter the request body (for Single object) or the item template (for List of objects).
For details on building the item template, see External source request as array of objects. - Optionally, by clicking
, you can use a snippet which will let you add dynamic values (Jinjava) to the request body.
- If you used Jinjava, you must enable its processing. In Treat the selected body parameters as Jinjava section:
- From the dropdown list, select the field that includes Jinjava.
- Optionally, you can enable casting the Jinjava result to a data type. You can use the following options:
- From the Cast to dropdown list, select the data type to cast the Jinjava result to.
- No cast (default): the result is always a string.
- Boolean: the result is returned as a boolean. The input must be a boolean or a
"true"or"false"string (any casing). - Number: the result is returned as a floating-point number, for example
3.14. The input must be a number. - Integer: the result is returned as an integer. The input must be an integer.
- JSON: the result is returned as a JSON object or array. The input must be a JSON object or array.
- Use the Strict toggle to define what happens when casting is not successful (for example, trying to cast
3.14into an integer):- when the option is disabled, the Jinjava result is set to a null value.
- when the option is enabled, returns an error in generating an object from a record.
The indicated parameter will be rendered as Jinjava by the backend and you can define the value type returned.

Example body with dynamic values - From the Cast to dropdown list, select the data type to cast the Jinjava result to.
- Optionally, you can enable the Remove whitespaces option.
This setting removes whitespace characters (tab\t, line feed\n, vertical tab\u000B, form feed\f, and carriage return\r) after processing Jinjava, but before type casting. Regular spaces are not removed.
- Define the body type:
- In the Query parameters section, by clicking Add parameter, you can add query parameters appended to the URL. In the left field (key) provide a parameter name; in the right field, provide its value.
Testing the external source
In the Preview cURL section, you can view the cURL request that will be sent to the endpoint when invoking the object with the record result or previewing a record that references an external source.
You can copy this cURL command and run it in your terminal or use it with any API testing tool to see how the request works.
Using external sources in a record
See the External Data section.
External source request as array of objects
When the body type in the external source configuration is set to List of objects, a request generates a number of objects according to the template and sends them as an array to the external source.
The content of these objects can be manipulated by using Jinjava and sending values as the context of a Brickworks generation request.
The default number of iterations is set in the external source settings, but you can change it with the bodyArrayLength parameter in the generation request (see example below).
IMPORTANT: The parameters with Jinjava must be added to the Treat the selected body parameters as Jinjava setting of the External Source.
Example
- A schema contains an external source field (
exampleexternalsource). In the external source settings, the object template is:
{ "exampleParam": "{{ context.foo }}", "currentIndex": "{{ context.__index }}", "uniqueId": "{{ context.identifiers[context.__index] }}" }where:
foois a parameter added to the request'scontextcontext.__indexwill show the index of the item in the array, starting with 0.{{ context.identifiers[context.__index] }}will pull an identifier from thecontext.identifiersarray added to the request (identifierscan be a different variable name in your deployment).
When generating the object, the context is added, for example:
curl --location 'https://api.synerise.com/brickworks/v1/schemas/2e38959d-b9d9-4699-9ace-9e5eeb96b251/records/715f4d74-25c3-47ca-874b-861f9d0ab190/generate' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer eyJhb...0LALNE' \ --data '{ "context": { "foo": "bar", "identifiers": [ "id1", "id2", "id3" ] }, "fieldContext": { "exampleexternalsource": { "bodyArrayLength": 3 } } }'where:
context.foois the value for{{ context.foo }}context.identifiersis an array of values for{{ context.identifiers[context.__index] }}, which will be injected into generated objects in the order you send.fieldContext.exampleexternalsource.bodyArrayLengthis the number of iterations, which overrides the default settings in the external source configuration.
To make such a request as a record preview, you need these settings:

Setting a preview for an array of objects: context for Jinjava In Additional context, add keys and their values. In the example, they are:
-foowith a value ofbar
-identifiers, whose value is an array:id1,id2,id3
Setting a preview for an array of objects: the number of iterations In Specific fields context, select the field with the external connection (exampleexternalsource in the example) and from the dropdown list, select bodyArrayLength. Then, enter the number of iterations as the value (
3in the example).- When the request is made, the JSON data sent to the external source is:
[ { "uniqueId": "id1", "currentIndex": "0", "exampleParam": "bar" }, { "uniqueId": "id2", "currentIndex": "1", "exampleParam": "bar" }, { "uniqueId": "id3", "currentIndex": "2", "exampleParam": "bar" } ] - The external source processes the request from Synerise according to its own logic. If it sends a response, the data from that response can be shown as Brickworks content in the same way as other external source responses.