Export API
LeadPattern Export API: 8 endpoints with request parameters, response schemas, error codes and cURL, Node.js and Python examples.
POSTRequest Contacts Export
/export/contactsQueue an async export of contacts to XLSX, optionally filtered. Poll Get Export Status, then Get Export Download URL once completed.POSTRequest Chat Export/export/chatQueue an async export of a single conversation's messages to XLSX.POSTRequest Failed Messages Export/export/failed-messagesQueue an async export of failed outbound messages within a date range.GETGet Export Status/export/:id/statusPoll an export job's status (queued, processing, completed, failed).GETGet Export Download URL/export/:id/downloadGet a fresh, time-limited presigned download URL for a completed export. Call this fresh each time — never cache the URL.GETList Contacts Exports/export/contacts?page=1&limit=25Export history for contact exports, newest first. Use it to find an earlier job's id and status.GETList Chat Exports/export/chat?waId=9195XXXXXXXXExport history for conversation exports. Pass waId to narrow it to one chat.GETList Failed Message Exports/export/failed-messages?page=1Export history for failed-message exports.
