List leads
Return the leads of the workspace, newest first.
/v1/ext/leadsRequires the leads:read scope
Returns every lead of the workspace — whatever its type or status, and however it was created — ordered by creation date, newest first.
Pagination
count is the number of leads in this page, not the total. Keep requesting pages while count equals limit. See Pagination.
The endpoint has no filters. To pick up new leads periodically, page from offset=0 and stop when you reach a created_at (or an id) you have already processed.
Example request
curl "https://api.vestta.app/v1/ext/leads?limit=20" \
-H "X-Api-Key: $VESTTA_API_KEY"Authorization
X-Api-KeystringheaderrequiredYour API key,
AC_LIVE_<key_id>.<secret>.Authorization: ApiKey <key>is also accepted.
Query parameters
limitinteger≥ 1≤ 1000 default:100Maximum number of leads to return.
offsetinteger≥ 0 default:0Number of leads to skip, newest first.
Response
200 Successful response.
Response fields
statusstringrequired alwaysokdataarray of objectsrequiredcountintegerrequiredNumber of leads in this page (not the total across pages).
limitintegerrequiredThe
limitthat was applied.offsetintegerrequiredThe
offsetthat was applied.authenticated_asstringName of the business that owns the API key.
Errors
Error bodies and how to handle each case: Errors.