Skip to main content
The REST API destination sends data from your pipeline to any HTTP endpoint. You can configure the request method, headers, body format, authentication, and batching to match your target API’s requirements.

Authentication

Choose one of the following authentication options:
  • None - No authentication. Use this when the target API requires no credentials or when you pass authentication through custom headers.
  • Basic - HTTP Basic authentication. Provide a Username and Password that are sent as a Base64-encoded Authorization header with each request.
  • Connection - Use a saved connection for SSH tunnel access. When an SSH tunnel is active, HTTPS URLs are automatically rewritten to route through the tunnel’s local port.

Request Configuration

URL

Enter the target API endpoint URL. You can include dynamic values from your input data using the #{fieldName} syntax. For example:
The #{contact_id} placeholder is replaced with the value of the contact_id field from each input record. All field references in the URL are validated against the input schema.

Method

Select the HTTP method for the request:
  • GET
  • POST
  • PUT
  • PATCH
  • DELETE

Headers

Add custom headers as name/value pairs. Header values also support the #{fieldName} syntax for dynamic values. Common headers like Content-Type are set automatically based on your chosen request body format, but you can override them here.

Request Body

Body format

  • JSON - Sends records as JSON objects. This is the most common format for modern APIs.
  • CSV - Sends records as comma-separated values.
  • Form Data - Sends records as multipart form-data.
  • URL-Encoded - Sends records as application/x-www-form-urlencoded.

Custom payload

Enable Custom Payload (the Custom input payload type) to write your own request body template instead of using the automatic field-to-body mapping. The template can use input fields and package variables:
  • #{fieldName} is replaced with the value of fieldName from each record. Typing #{ in the editor lists the input fields.
  • $variableName is replaced with the value of a package variable, the same way it is in the URL. Variable values are inserted as-is, without escaping. A $ followed by a name that isn’t a package variable makes the job fail.
A template that uses #{fieldName} sends one request per record, so it requires Single per record as the request mode. The editor switches to it automatically.

How field values are escaped

Each value is escaped for the place its placeholder sits in the body, so record data can fill in a value but cannot change the shape of the payload. With the CSV body format the payload is sent exactly as you write it, so the Content-Type header you set decides how values are escaped. A body filled in from #{fieldName} placeholders is sent exactly as rendered in every format. For JSON, put a placeholder in quotes ("#{full_name}") for any text field. Outside quotes, a record’s value must be exactly one JSON value: a number, true or false, null, an object or an array. Plain text outside quotes stops the job at that record, and so does text that would add keys, such as 1, "role": "admin". The editor warns about every placeholder outside quotes unless it knows the field is a number or a boolean. A field whose type it can’t tell, such as an Aggregate output, is included. A date field, or a map or bag field (for example the output of JsonStringToMap), can’t be used as a placeholder directly: package validation fails with a “Cannot explicitly cast” error, and the job can’t run. Convert it in a Select component first, for example with ToString(created_at) for a date or ToJson(field) for a map or bag, and reference the new field.
If you already escape values for JSON before this destination, for example with REPLACE in a Select component to turn " into \", remove that step. Values inside quotes are now escaped automatically, so pre-escaped values would be escaped twice and arrive with extra backslashes.

Validation

When the body format is JSON and the template uses #{fieldName}, package validation checks that the template is valid JSON with the placeholders filled in. A template that is not valid JSON is reported when you validate the package, not halfway through a job. If a record’s value still breaks the body when the job runs (for example, plain text in a placeholder outside quotes), the job error names the field. It never includes the record’s value.

Nested attribute

Enable Send records as nested attribute to wrap your record data inside a named object. For example, if you set the nested attribute name to records, the request body becomes:
The default nested attribute name is records.

Static fields

Use JSON Constants to add static key-value pairs to every request body. These are included alongside the mapped record data.

Request Mode

Controls how input records are grouped into HTTP requests:
  • Single per record - Sends one request per input record. Use this when the target API expects individual records (most common for create/update endpoints).
  • Batch - Groups records into batches of a specified size and sends one request per batch. Set the Batch size to control how many records are included in each request. The batch size must be greater than 0.
  • One request - Sends all records in a single request.

Field Mapping

Map input fields from your pipeline to the request body fields expected by the target API. Each mapping includes:
  • Input Field - The field from your pipeline input
  • Destination Column - The name used in the outgoing request body
  • Field type - The data type (must match the schema field type)

Send the value of one field

When the body format is JSON and you don’t use a custom payload, you can send the value of a single field instead of the full record. The checkbox label depends on the request mode:
  • Single per record - Send only the value of one field. Each request body is the field’s value for that record.
  • Batch and One request - Send values from one field as an array. Each request body is an array that holds the field’s value from each record.
When you select the checkbox, the field mapping is limited to one row, and Integrate.io sends the value of that row’s input field. A value that holds a JSON object or array as text is sent as JSON. For example, if the input field holds {"id": 1, "name": "Alice"}, the request bodies look like this:
In Single per record, a text value is sent as is, without JSON quoting. Inside an array or a nested attribute, it is sent as a JSON string. If you also send records as a nested attribute (see Nested attribute), the value or array is wrapped in it together with any static fields, for example {"records": "value"}. If a record has no value (NULL) in that field, Integrate.io sends null in its place. How the API handles null is up to the API; Google Sheets, for example, skips that row. Preview with data shows a warning when a previewed record has no value.

Request preview

The component editor shows a Request Preview section that renders how your form data will be serialized and sent. Two views are available.

Sample values (placeholders)

Shown by default. Renders the body only, using placeholder values ('value', 123, true) in place of real data. Use it for a quick sanity check of the body structure before you have preview data.

Preview with data

Click Preview with data to run the destination component through the previewer and render the requests it would actually send. This shows:
  • The HTTP method and the URL with #{field} placeholders substituted per record
  • The headers that will be sent
  • The serialized request body, using post-cast values from real input records
Use this to verify the exact payload before running a job, for example when a target API rejects requests with errors like payload is invalid, failed to parse the input as valid JSON. The rendered preview reflects your current mapping, batch settings, Send records as nested attribute and JSON constants, and body format serialization. Secret-variable header values and auth-looking header keys are masked. Basic auth credentials are never rendered. If you change field mappings after generating a preview, the rendered requests are cleared so a stale preview cannot be displayed. Re-click Preview with data to refresh. If the previewer is unavailable, the source graph has no records, or the preview errors, the sample values view is shown instead.

Advanced Settings

Request sleep interval

Set a delay (in milliseconds) between requests when using Single per record or Batch mode. Valid range: 0 to 60,000 ms. Use this to respect API rate limits. The delay applies between successive HTTP requests and is skipped before the first request. In Batch mode, the delay applies between batch requests. One request mode ignores this setting because it sends a single request.

Fail on error response

When enabled, the job fails if any API request returns an error response (HTTP 4xx or 5xx status). When disabled, the job continues processing remaining records even if individual requests fail.

Save responses to file

Enable this to write API response data to file storage. Configure the Response file path (an HDFS-compatible path) and Response file format to control where and how responses are saved. This is useful for logging, auditing, or downstream processing of API responses.

Redirect handling

When the destination follows an HTTP redirect, it compares each hop with the origin (scheme, host and port) of the configured URL. Redirects within the same origin send every header as usual. A same-host upgrade from http (port 80) to https (port 443) also counts as the same origin. When a redirect leaves the configured origin, the destination drops Authorization, Proxy-Authorization, Cookie and any header whose name contains auth, token, api-key (or apikey, api_key), secret, passw, session or credential, for example X-Api-Key. Other headers are still sent. A same-host redirect from https to http that carries credentials fails with Refusing to follow a redirect from https to http. A request follows at most 20 redirects, then fails with Maximum redirects (20) exceeded. Each time credentials are removed, the job log shows a warning that starts with Redirect left the configured origin and names the removed headers. When a response has a non-2xx status, the destination replaces credentials in the response body with <REDACTED> before it appears in job errors or the response file. Bodies of 2xx responses are never changed. For details and examples, see Redirect handling for the REST API source.

FAQ

How do I send a field value as a JSON string? Put the placeholder in quotes: "name": "#{full_name}". The value is escaped automatically, so quotes, backslashes and line breaks in the data are sent correctly. To send a date, convert it in a Select component first, for example ToString(created_at) AS created_text, then use "created": "#{created_text}". How do I send a number, boolean or JSON object from a field? Leave the placeholder outside quotes: "count": #{count} or "meta": #{meta_json}. The value is inserted as raw JSON, so it must be exactly one JSON value. An empty value (not one made of spaces) is sent as null. Can I use #{fieldName} with Batch or One request mode? No. A custom payload with field placeholders is built from one record at a time, so it requires Single per record. A custom payload without placeholders works with every request mode. Can I use package variables in the custom payload? Yes. Reference them as $variableName, inside or outside quotes, as you would in the URL.

REST API Source

API Call Transformation

Curl Function

Scheduling Package Execution

Last modified on December 1, 2026