Parse PDF and Files Using API

In this article we'll see how to upload PDF and other files using Parsio API.

Related articles:

Authentication

To access the API, you will need the API key that you will find in your account:

This API key should be included in the X-API-Key HTTP header.

Unauthenticated responses will return in a HTTP 401 Unauthorized code.

Here's a request example using cURL:

curl -X GET https://api.parsio.io/mailboxes/ -H "X-API-Key: <YOUR_API_KEY>"

How to parse HTML and text documents using Parsio 

API Endpont: POST https://api.parsio.io/mailboxes/<mailbox_id>/upload

Parameters:

  • file: Binary file object

Supported formats: PDF, HTML, CSV, TXT, DOCX, RTF or XML

Max. file size: 2MB

Request example

curl \
-X POST \
https://api.parsio.io/mailboxes/<YOUR_MAILBOX_ID>/upload \
-F 'file=@./receipt.pdf' \
-H "X-API-Key: <YOUR_API_KEY>"

 

Was this article helpful? Happy face Sad face