GET
/
pipelines
/
run
/
$
{pipelineId}
Poll Pipeline Result
curl --request GET \
  --url 'https://api.getomni.ai/pipelines/run/${pipelineId}' \
  --header 'x-api-key: <api-key>'
{
  "jobId": "093ae7d8-1668-4c76-9f31-772c50bcb172",
  "metadata": {
    "file": "https://omni-demo-data.s3.us-east-1.amazonaws.com/templates/bank-account-statement.png"
  },
  "result": {
    "transactions": [
      {
        "amount": 100,
        "date": "2021-01-01",
        "description": "Transaction 1"
      }
    ],
    "total_balance": 1000
  },
  "status": "COMPLETE",
  "timeElapsed": 7885
}

Path Parameters

pipelineId
string
required
The ID of the pipeline to run

Query Parameters

jobId
string
required
The job ID of the pipeline run

Response

jobId
string
The job ID of the pipeline run
metadata
object
The metadata of the pipeline run. This is the body parameters passed in the pipeline run request.
result
object
The result of the pipeline run
status
string
The status of the pipeline run.
timeElapsed
number
The time elapsed in milliseconds for the pipeline run
{
  "jobId": "093ae7d8-1668-4c76-9f31-772c50bcb172",
  "metadata": {
    "file": "https://omni-demo-data.s3.us-east-1.amazonaws.com/templates/bank-account-statement.png"
  },
  "result": {
    "transactions": [
      {
        "amount": 100,
        "date": "2021-01-01",
        "description": "Transaction 1"
      }
    ],
    "total_balance": 1000
  },
  "status": "COMPLETE",
  "timeElapsed": 7885
}