POST
/
edit_async
Edit Async
import requests

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

payload = {
    "document_url": "<string>",
    "edit_instructions": "<string>",
    "edit_options": {
        "color": "#FF0000",
        "llm_provider_preference": "openai"
    },
    "form_schema": [
        {
            "bbox": {
                "left": 123,
                "top": 123,
                "width": 123,
                "height": 123,
                "page": 123,
                "original_page": 123
            },
            "description": "<string>",
            "type": "text"
        }
    ],
    "priority": False,
    "webhook": {
        "mode": "disabled",
        "channels": []
    }
}
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

Response

200
application/json

Successful Response

The response is of type object.