Execute HTTP Request
Execute an HTTP API request and create the necessary data objects and lineage
Execute HTTP Request
This endpoint executes an HTTP request to an external API, creates data objects for both the request configuration and response data, establishes data lineage between them, and starts background jobs to analyze and prepare the data.
Request Body
ID of the project to associate with the request
ID of the datasource created for this HTTP connection
Connection specification object containing configuration details
The URL of the API endpoint
The HTTP method to use
HTTP headers to include with the request
Query parameters with values and required flags
Groups of related parameters
Authentication type
Authentication details
JSON path to extract a specific key from the response to use as the main data source. For example, “value” will extract data from the “value” field of the response.
Response
Array of job objects created for processing the data
ID of the data object created for the response data
Request Example
Response Example
Error Responses
Returned when the request is malformed or invalid
Returned when there’s a server error processing the request
Under the Hood
When you call this endpoint, the system:
- Creates an
HTTPEndpoint
instance from your connect_spec - Loads data from the API using
endpoint.load_with_defaults()
- If a
responsePathExtractor
is provided, extracts data from the specified key in the response - Stores the HTTP request configuration as a JSON file
- Converts the response data (or extracted data) to a Parquet file
- Creates data objects in the database for both files
- Establishes data lineage connections between the objects
- Creates and queues background jobs to analyze and prepare the data
The resulting data object is ready to be used as a datasource in your project.
Important Notes
- The
responsePathExtractor
parameter should only be used in Step 1 (Test Connection) and Step 4 (Execute HTTP Request). It is not needed in Steps 2 and 3. - Use the
responsePathExtractor
when your API response contains a specific key that holds the main data you want to work with. For example, if your API returns JSON with avalue
field containing stringified JSON data, settingresponsePathExtractor
to “value” will extract and use that data.