Skip to main content
The REST endpoint destination POSTs data to an HTTP endpoint. It supports synchronous and asynchronous modes, bearer token authentication, and configurable timeouts.

Request

The pipeline sends an HTTP POST request with the following JSON payload:
{
  "pipelineToken": "abc-123",
  "pipelineName": "orders",
  "data": {
    "size": 100,
    "header": ["order_id", "amount", "region"],
    "rows": [
      ["1001", "59.99", "us-east"],
      ["1002", "24.50", "eu-west"]
    ],
    "rawData": null
  }
}
Payload FieldDescription
pipelineTokenToken identifying the pipeline run
pipelineNameName of the pipeline being sent
data.sizeNumber of rows in this batch
data.headerArray of column names
data.rowsArray of row arrays, each matching the header order
data.rawDataRaw string content when sending JSON or XML data instead of rows

Expected Response

The endpoint must return a JSON response with the following structure:
{
  "data": {
    "size": 100,
    "header": ["order_id", "status"],
    "rows": [
      ["1001", "accepted"],
      ["1002", "accepted"]
    ],
    "rawData": null
  }
}
The response data is forwarded to downstream steps in the pipeline.

Sync and Async Modes

Set async to control whether the pipeline waits for a response:
asyncBehavior
falseThe pipeline waits for the endpoint to return a response before proceeding (default).
trueThe pipeline sends the request and continues without waiting for a response.

Authentication

Set bearerToken to include an Authorization: Bearer {token} header on every request. If omitted, requests are sent without authentication.

Timeout

The timeoutMs field controls the maximum time in milliseconds the pipeline will wait for a response when async is false. The default is 300000 ms (5 minutes).

Configuration Example

{
  "name": "orders_rest",
  "source": { "..." : "..." },
  "destination": {
    "restEndpoint": {
      "endpoint": "https://api.example.com/ingest",
      "async": false,
      "bearerToken": "eyJhbGciOiJIUzI1NiIs...",
      "timeoutMs": 300000
    }
  }
}

Field Reference

FieldRequiredDefaultDescription
endpointyesTarget endpoint URL
asyncnofalseIf true, send the request and continue without waiting for a response
bearerTokennoBearer token added as Authorization: Bearer header
timeoutMsno300000Response timeout in milliseconds (sync mode only)