Cohesive
  • 👋 Welcome!
  • ✨Getting Started
  • Reference
    • API Documentation
      • POST: upload
      • POST: upload_async
      • Guide: Having a custom response schema
        • Template: Metrics Data
        • Template: Order Data
      • Guide: Tabular Data
    • Workflow Documentation
      • Overview
      • Templates
        • Lists
        • Math Expressions
        • Date Expressions
      • Integrations
        • ERP Integrations
        • CRM Integrations
        • Communication Integrations
    • Security Policy
Powered by GitBook
On this page
  1. Reference
  2. API Documentation

POST: upload_async

PreviousPOST: uploadNextGuide: Having a custom response schema

Last updated 1 year ago

Sending an extraction request with an async response

POST /api/upload_async

This endpoint will return the response as a webhook to your specified callback URL.

Headers

Name
Type
Description

Authorization*

string

Your provided bearer token API Key

Request Body

Name
Type
Description

files*

binary

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 )

tsSchema*

object

The JSON response schema expected for data extraction

callbackUrl*

string

The callback URL that Cohesive will send the response webhook to

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.

Note that the extraction response will not be part of this response. Rather, it will be sent via webhook to the provided callback URL.

here