Sales Engine
API documentation
UploadsOperation uploads.stage

Upload a CSV or XLSX

Upload a CSV or XLSX of leads or companies (multipart: file, kind). Returns the staged rows and an auto-mapping.

POST/api/v1/uploads
Scope write: Create and edit lists, research, sequences, campaigns, memory, signals and learning; queue jobs.

Parameters

Body

A multipart/form-data body with two fields: file, the CSV or XLSX, and kind, either leads or companies.

Example

curl
curl -X POST "https://crm.ashwanth.dev/api/v1/uploads" \
  -H "Authorization: Bearer $SALES_ENGINE_API_KEY" \
  -F "file=@leads.csv" -F "kind=leads"
CLI
sales-engine uploads stage

Response

A 200 with the result under data, on creation too. Errors come back as an error object with a stable code; see Errors.

Shape
{
  "data": { ... }
}

Run it below to see the live shape for your workspace.

Try it

Runs against this server, as the workspace behind the key.
Kept in this page while you browse the docs, gone on reload, never stored. Signed in to the app? Leave it blank and the call runs as you.
File
filerequiredkind
Request
POST /api/v1/uploads

Also in Uploads