Skip to main content
POST
/
edit
Edit
import requests

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

payload = {
    "document_url": "<string>",
    "edit_instructions": "<string>",
    "edit_options": {
        "color": "#FF0000",
        "enable_overflow_pages": False
    },
    "form_schema": [
        {
            "bbox": {
                "left": 123,
                "top": 123,
                "width": 123,
                "height": 123,
                "page": 123,
                "original_page": 123
            },
            "description": "<string>",
            "type": "text",
            "fill": True,
            "value": "<string>"
        }
    ],
    "priority": True
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
{
  "document_url": "<string>",
  "form_schema": [
    {
      "bbox": {
        "left": 123,
        "top": 123,
        "width": 123,
        "height": 123,
        "page": 123,
        "original_page": 123
      },
      "description": "<string>",
      "type": "text",
      "fill": true,
      "value": "<string>"
    }
  ],
  "usage": {
    "num_pages": 123,
    "credits": 123
  }
}

Authorizations

Authorization
string
header
required

Body

application/json
document_url
required
edit_instructions
string
required
edit_options
EditOptions · object
form_schema
EditWidget · object[] | null
priority
boolean
default:true

Response

document_url
string
required
form_schema
EditWidget · object[] | null
usage
ParseUsage · object