POST: upload

Sending an extraction request

POST /api/upload

Headers

Name
Type
Description

Authorization*

string

Your provided bearer token API Key

Request Body

Name
Type
Description

files*

file

The file to be extracted. We currently support .pdf, .jpg, .jpeg, .png ,.xlsx, .csv

Note that this needs to be sent over as multipart/form-data (more information here)

tsSchema*

object

The JSON response schema expected for data extraction

tabularData

boolean

Optional parameter (will default to false).

If true value is provided, then Cohesive will optimize for extracting table-based data. We recommend this if you know that your import file(s) will primarily be tables, like startup cap tables.

// Example response
{
  "data": {
    "data": [
      {
        "pageRange": [
          0
        ],
        "extraction": null
      }
    ]
  }
}

Last updated