Skip to main content
POST
Associate documents with specific deals for win-loss analysis. Audio and video files are automatically transcribed.

Deal Identification

You can identify the deal using one of three methods:

Source Options

The source field determines the icon displayed and helps with document organization:

Supported File Types

Authorizations

Authorization
string
header
required

API key from Hindsight dashboard

Body

multipart/form-data
file_name
string
required

Name of the file

Example:

"Discovery Call Notes.pdf"

content_type
string
required

MIME type of the file

Example:

"application/pdf"

file_url
string<uri>

URL to download the file from (provide either file_url or file)

file
file

Binary file content (provide either file or file_url)

deal_id
string

Hindsight deal ID (provide one of deal_id, salesforce_id, or hubspot_id)

Example:

"deal_123"

salesforce_id
string

Salesforce Opportunity ID

Example:

"006xxxxxxxxxxxx"

hubspot_id
string

HubSpot Deal ID

Example:

"12345678"

source
enum<string>

Source application where the document originated

Available options:
gong,
clari,
fathom,
fireflies,
avoma,
outreach,
gmail,
Salesforce,
Hubspot,
api
Example:

"gong"

Response

Document upload initiated

document
object
run_id
string

ID to track the document processing run

Example:

"run_xyz789"