POST
/
v1
/
upload
import requests

url = "https://api.parser.expert/v1/upload"

headers = {
    'X-API-Key': 'sk-xxxx'
}

files = {
    'file': open('/path/to/your/file.pdf', 'rb'),
    'bucket_id': (None, '100202')
}

response = requests.post(url, headers=headers, files=files)

print(response.text)
{
  "data": {
    "parser_id": "f555c13a-846f-4505-95fe-8f72b39edef9"
  },
  "message": "Extract upserted successfully"
}

Authorizations

X-API-Key
string
header
required

Body

multipart/form-data

Response

200
application/json

Extract upserted successfully

The response is of type object.