Skip to main content
Using the Rest API source provides access to read data from HTTP endpoints such as Rest Web Services. Use the Rest API source component to define the authentication method, request parameters, and response fields to use in the package. For OAuth-protected APIs, use the Connection option with a Universal OAuth connection to handle token management automatically.
REST API source component in the pipeline designer

Authentication

  • None - No authentication
  • Basic - Use basic authentication (user and/or password).
  • Connection - Use a saved Integrate.io ETL connection to handle authentication automatically. When selected, a Choose connection dropdown appears with two types of connections:
    • Pre-built service connections – Ready-made connections for popular platforms, including: Google Analytics, Facebook Ads Insights, HubSpot (Service Token), HubSpot, Facebook Ads (Destination), Intercom, Xero, LinkedIn, Instagram, Google Sheets, Google Drive, YouTube, Shopify, Salesforce, Marketing Cloud (SOAP), and Marketing Cloud (REST).
      • Universal OAuth – A flexible connection for any OAuth-protected API not covered by the pre-built options. Supports three authentication methods: OAuth 2.0 (authorization code flow), Client Credentials (server-to-server), and Custom Auth (non-standard endpoints). See Allowing Integrate.io ETL access to any API with Universal OAuth to set one up.
      • Tip: If the API you want to connect to appears in the pre-built list, select it for the simplest setup experience. If your API is not listed, use the Universal OAuth connection to configure authentication manually.

Using a Universal OAuth Connection

When you select Connection as your authentication method:
  1. A Choose connection dropdown appears. Select an existing connection or create a new one.
  2. The component will automatically attach the correct authentication header (typically Authorization: Bearer {token}) to every outbound API request.
  3. If you configured a custom authentication header in your connection (e.g., X-Shopify-Access-Token for Shopify), that will be used instead, so no changes are needed in the Headers section.
  4. Tokens are refreshed automatically when possible, so long-running jobs won’t fail due to token expiry mid-execution.

Request and response

Request

  • method - The HTTP method. Select GET (default), POST, PATCH or PUT.
  • URL - Enter the URL of your source endpoint.
  • Headers - Optionally add request headers (names and values).
  • Body - Optionally add a request body string.

Pagination

Check Use pagination to have the source component make paginated requests. See here for list of supported API endpoints in addition to the standard link headers.
  • Pagination scheme - The method to paginate through response data (e.g. page number, offset+limit, cursor, link headers) and how to detect the final page.
    • Automatic (Default) - the source detects the pagination scheme to use by the URL host/path.
      • Jira - Use with hosted Jira installations.
      • Magento - Use with hosted Magento installations.
      • BigCommerce - Use with hosted BigCommerce installations.
      • Elasticsearch - Use with hosted Elasticsearch installations.
      • UMU Enterprise API - Used when the URL host is exactly eapi.umu.com, eapi.umu.co or eapi.test.umu.work. See UMU Enterprise API pagination.
      • Link headers - the fallback option which will be used with the default automatic as well.
  • Sleep interval between paginated requests (ms) - use to throttle API requests to avoid rate limitations. Default is 0 (no sleep).
  • Maximum paginated requests - use to control the maximum number of pages for the source to go through. Default is unlimited, 0 or 1 means a single request will be made.

UMU Enterprise API pagination

With Automatic pagination, the source reads every page of a UMU Enterprise API list endpoint. It increments the page query parameter until it reaches the total record count that UMU reports, or until a page returns no records. Keep the page and size parameters in the URL. The source uses the page size that UMU returns in the response, so a size above the endpoint’s cap still reads every page.
  • The source waits at least 100 ms between page requests to stay within UMU’s rate limit of 100 requests per 10 seconds. A longer Sleep interval between paginated requests is kept.
  • UMU reports errors as a non-zero err_code in an HTTP 200 response. If any page returns a non-zero err_code, including the first page, the job fails.
  • UMU rejects a signature timestamp older than 1 minute. The package computes the timestamp and token once per job, so all page requests must finish within about 60 seconds. That is roughly 100 to 150 pages. Longer reads fail with an err_code of 200001. Use a larger size to reduce the number of pages.

Response

Select the response type to determine how to parse the response from the API endpoint.
  • Raw - returns 3 fields: status code (integer), body (string) and headers (map).
  • JSON - Response is processed using a JSONPath expression.
    You can use a custom JSONPath expression to extract nested objects and arrays or the presets for object and array. Using the object preset, the response fields are the keys of the JSON object. Using the array preset, the response fields are the keys of the JSON objects within the array and each object is returned as a record in the component’s output.
  • Line Delimited JSON - Response is a single JSON object per line. Note that the response as a whole is not a valid JSON. The response fields are the keys of the JSON objects and each object is processed as a record.
  • Line Delimited raw data - Response is broken to record per line. Useful when data contains records delimited by new line.

Extended JSON extraction

Setting this option to true enables extracting nested json fields into schema. As you can see on the screenshot below, each nested object property or array item can be selected directly in the schema section.
Extended JSON extraction showing nested fields in schema
Nested object properties selectable in the schema section
You can also modify key item directly in the schema in the case, where the nested attribute is missing in the list. The job will take that field for given record if it will be available. If not, then it will be set to null. For example, in the below screenshot, tags is an array of object. However, first item has empty tags, so it’s not available in the fields list. But you can modify Key manually to tags[*].name.
Manually editing a Key path for missing nested attributes
Field names that start with a number Some APIs key their JSON by number. For example, Gravity Forms returns each form field under its numeric field ID:
With Extended JSON extraction enabled, you can select and extract these fields like any other field. Keep the original JSON key (for example 44) in the Key column and set the field’s alias to a name that starts with a letter, such as first_name. The alias becomes the output field name. The same applies to any field name that does not start with a letter. Multiple output parses If you want to extract data from the REST API response for multiple components, then you can add new parse using + Add output parse button. It will add a new schema section. Each section/edge can be named differently.
Add output parse button for multiple output parses
Multiple output parse sections with different edge names
Schema fields configured for an additional output parse

Schema

After defining the request and the response, select the fields to use in the source.

Redirect handling

When the source follows an HTTP redirect, it drops the Authorization header if the next hop is on a different host than the URL you configured, or if the redirect downgrades https to http. Same-host redirects that keep the scheme send the header as usual. This lets you read endpoints that hand off to pre-signed URLs on another host. A common case is an API that returns a 302 to an S3 URL whose signature is already in the query string. If the Authorization header were forwarded, the second host would reject the request because two authentication mechanisms would arrive together. If the API you call redirects to a sibling host that still requires your credentials (for example, api.example.com to www.example.com), the request to that host is sent without the Authorization header and typically returns 401. Point the source directly at the final host. Only the Authorization header is stripped. Custom auth headers (for example, apikey or X-Shopify-Access-Token) and Cookie are still sent to the redirect target.

Known Limitations

When using a $ sign in the call, it needs to be escaped with back slash - \ Please note - it will run successfully at runtime, but will fail with a preview of the API source component or component preview in the flow. Only one bag field can be flattened per parse. To flatten another BAG field, create a new parse.

API Ingestion Guide

Ingesting a Postman API Call

API Endpoints with Pagination

Universal OAuth

Last modified on October 27, 2026