Skip to main content
POST
Upload competitive intelligence documents, assets, and battlecards to your library.

Document Types

Source Options

The source field determines the icon displayed in the Hindsight UI:

Authorizations

Authorization
string
header
required

API key from Hindsight dashboard

Body

multipart/form-data
file_name
string
required

Name of the file

Example:

"Competitor X Pricing Guide.pdf"

content_type
enum<string>
required

MIME type of the file

Available options:
application/pdf,
text/markdown,
text/plain,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Example:

"application/pdf"

type
enum<string>
required

Document type

Available options:
asset,
intel
file_url
string<uri>

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

Example:

"https://example.com/document.pdf"

file
file

Binary file content (provide either file or file_url)

competitor_id
string

Hindsight competitor ID (provide either competitor_id or competitor_name)

Example:

"comp_123"

competitor_name
string

Competitor name - will be resolved to competitor_id automatically

Example:

"Competitor X"

source
enum<string>

Source application where the document originated

Available options:
drive,
notion,
confluence,
onedrive,
sharepoint,
vanta,
url,
zapier,
api
Example:

"drive"

Response

Document upload initiated

document
object
run_id
string

ID to track the document processing run

Example:

"run_xyz789"