Get all leads. Use the unlocked routes for more lead details
GET/customers/ {customerId}/ leads/
v2
GET
leadfyndr-list-leads
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/customers/string/leads?potentialRangeMin=123&potentialRangeMax=123&employeeCountMin=123&employeeCountMax=123&salesVolumeMin=123&salesVolumeMax=123&technologies=string&businessFields=string&locationCity=string&locationPostCode=string&locationRadiusInKm=123&basic%3AtimeToFirstByteMs%3Amin=123&basic%3AtimeToFirstByteMs%3Amax=123&basic%3Adesktop%3Aperformance%3Amin=123&basic%3Adesktop%3Aperformance%3Amax=123&basic%3Amobile%3Aperformance%3Amin=123&basic%3Amobile%3Aperformance%3Amax=123&limit=50&page=1&sort=potential&order=asc
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.leadFyndr.listLeads({
"customerId": "string",
"queryParameters": {
"potentialRangeMin": 123,
"potentialRangeMax": 123,
"employeeCountMin": 123,
"employeeCountMax": 123,
"salesVolumeMin": 123,
"salesVolumeMax": 123,
"technologies": [
"string"
],
"businessFields": [
"string"
],
"locationCity": "string",
"locationPostCode": "string",
"locationRadiusInKm": 123,
"basic:timeToFirstByteMs:min": 123,
"basic:timeToFirstByteMs:max": 123,
"basic:desktop:performance:min": 123,
"basic:desktop:performance:max": 123,
"basic:mobile:performance:min": 123,
"basic:mobile:performance:max": 123,
"limit": 50,
"page": 1,
"sort": "potential",
"order": "asc"
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\LeadFyndr\ListLeads\ListLeadsRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new ListLeadsRequest(
customerId: "string"
))
->withPotentialRangeMin(123)
->withPotentialRangeMax(123)
->withEmployeeCountMin(123)
->withEmployeeCountMax(123)
->withSalesVolumeMin(123)
->withSalesVolumeMax(123)
->withTechnologies(["string"])
->withBusinessFields(["string"])
->withLocationCity("string")
->withLocationPostCode("string")
->withLocationRadiusInKm(123)
->withBasicTimeToFirstByteMsMin(123)
->withBasicTimeToFirstByteMsMax(123)
->withBasicDesktopPerformanceMin(123)
->withBasicDesktopPerformanceMax(123)
->withBasicMobilePerformanceMin(123)
->withBasicMobilePerformanceMax(123)
->withLimit(50)
->withPage(1)
->withSort("potential")
->withOrder("asc");
$response = $client->leadFyndr()->listLeads($request);
var_dump($response->getBody();