Run Pipeline

POST /pipelines/run/${pipelineId}

Run pipeline based on the passed in request parameters

Request

Pipeline must be enabled to run.

Headers

An API Key is required to access this endpoint.

NameValue

x-api-key

your_api_key

Body

The body should exactly match what you defined. The parameter can be passed in either as text or file, depending on how it was defined.

Example

{
  "restaurant_id": "d9504261cc66", 
  "review": "This place was really good. Highly recommend it. We had the steak, chicken and prawns. All super good. You definitely come out full."
}

Response

The API returns the response in JSON format.

The request will return a 200 with a jobId and status. You can use this jobId to check the processing status and fetch results.

Example

{
  "jobId": "093ae7d8-1668-4c76-9f31-772c50bcb172",
  "result": "https://api.getomni.ai/pipelines/run/46e92af4-3174-47af-998a-cd694fc850ce?jobId=093ae7d8-1668-4c76-9f31-772c50bcb172",
  "status": "PENDING"
}

Last updated