cURL
curl --request GET \ --url https://eu-gcp-api.vg-stuff.com/v3/leads \ --header 'Authorization: Bearer <token>'
{ "success": true, "message": "<string>", "data": [ { "id": "<string>", "email": "<string>", "name": "<string>", "phone": "<string>", "agentId": "<string>", "convoId": "<string>", "ts": 123, "created_at": "<string>", "metaData": {} } ] }
Gets all leads, this route must use the new V3 endpoints.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the agent to get leads for
Successful response
Indicates if the request was successful
Response message
Array of lead objects
Show child attributes