Email a secure download link for the expenses export
Generates the expenses export in the background and emails a secure, time-limited download link to the recipient — useful when the export is large or should be delivered rather than streamed inline. Requires the expenses:export scope and the x-business-id header.
Business API key, e.g. vuz_ab12cdef... Created via Settings → Integrations → API Keys. Unlike partner keys, a public API key's STRING does not encode its environment — isolation instead comes from a completely separate sandbox database: a key minted on the Sandbox server (above) only ever reads/writes sandbox data and can never see or affect production, regardless of what the key looks like.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/expenses/export/send-email" \ -H "Content-Type: application/json" \ -d '{}'{ "success": true, "documentCount": 12, "recipientEmail": "string", "expiresAt": "2019-08-24T14:15:22Z"}
