Pulling Data With HTTP

This guide walks through creating and configuring an HTTP Pull Output Connector (Outcon) to expose your RLD data via API endpoints.

1. Create HTTP Pull Outcon

  1. Navigate to Output Connectors using the sidebar
  2. Click + New Output Connector
  3. Name your connector (e.g., "HTTP Pull Example")
  4. Select httppull as the connector type

Create an Outcon

2. Configure Outcon

Connection Configuration

Configure Connection

Configure the basic connection settings: 1. Endpoint URL: Automatically generated (can be customized) 2. Authentication: Choose between:

Data Configuration

Configure Data

  1. Navigate to the Data tab
  2. Set optional data constraint by dragging field into "Only consider records where..." box
  3. Select output mode:
    • All Records: Returns all records (w/ data constraint)
    • Last Record: Returns last record (w/ data constraint)
  4. Drag fields to include (e.g., drag Record Id to "Select Fields To Send")

3. Start and Use Outcon

Activating the Connector

Start Outcon

  1. Go to the Connector tab
  2. Toggle the stoplight from Stop to Run
  3. Copy the generated endpoint URL

Querying Your Data

Use these examples to pull data from your endpoint. Make sure to replace your-url with the url you copied from your outcon:

Basic cURL Request

curl -X GET "<your-url>"

Javascript (fetch API)

const fetchData = async () => {
    const url = <your-url>;
    try {
        const response = await fetch(url);
        const data = await response.json();
        console.log(data);
    } catch (error) {
        console.error('Error fetching data:', error);
    }
};