Poll Run Batch Transforms

GET /v1/batches/transforms/run?batchId=${batchId}

Poll to retrieve the batched transforms

Request

Headers

An API Key is required to access this endpoint.

Example

response = requests.get(
  'https://api.getomni.ai/v1/batches/transforms/run',
  headers={ 'x-api-key': 'YOUR_API_KEY' },
)

Polling response

The API returns the response in JSON format.

The request will return a 200 with the batchId, requests, status, and timeElapsed.

Example

{
  "batchId": "093ae7d8-1668-4c76-9f31-772c50bcb172",
  "requests": [
    {
      "jobId": "9877133c-6aa8-4314-99c7-7f0d5cc5e203",
      "result": [
        {
          "result": "Lorem ipsum",
          "type": "SUMMARY"
        }
      ],
      "status": "COMPLETE",
      "timeElapsed": 36159
    },
    {
      "jobId": "6c4e0f24-9e86-49e2-9d82-db1dad7313cc",
      "result": [
        {
          "result": "Lorem ipsum",
          "type": "SUMMARY"
        }
      ],
      "status": "COMPLETE",
      "timeElapsed": 36154
    },
  ],
  "status": "COMPLETE",
  "timeElapsed": 36159
}

Last updated