POST
/
pipeline_async
Pipeline Async
import requests

url = "https://platform.reducto.ai/pipeline_async"

payload = {
    "document_url": "<string>",
    "pipeline_id": "<string>",
    "webhook": {
        "mode": "disabled",
        "channels": []
    },
    "priority": False
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
{
  "job_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
document_url
required

The URL of the document to be processed. You can provide one of the following: 1. A publicly available URL 2. A presigned S3 URL 3. A reducto:// prefixed URL obtained from the /upload endpoint after directly uploading a document

pipeline_id
string
required

The ID of the pipeline to use for the document.

webhook
object
priority
boolean
default:false

If True, attempts to process the job with priority if the user has priority processing budget available; by default, sync jobs are prioritized above async jobs.

Response

Successful Response

job_id
string
required