Leads dossier
Download everything on one lead as a document: every section of the record, the company behind it and its org map. Markdown by default, JSON with format=json.
GET/api/v1/leads/{id}/export
Parameters
Path
| Name | In | Description |
|---|---|---|
idrequired | path | The record's id. |
Query
| Name | In | Description |
|---|---|---|
format | query | md (default) or json. |
Example
curl
curl -X GET "https://crm.ashwanth.dev/api/v1/leads/{id}/export" \
-H "Authorization: Bearer $SALES_ENGINE_API_KEY"CLI
sales-engine leads dossier <id>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.
Path
requiredThe record's id.
Query
md (default) or json.
Request
GET /api/v1/leads/%7Bid%7D/export
Fill the path first.