Get unlocked leads export history for the given customerId
GET/customers/ {customerId}/ unlocked-leads-exports/
v2
GET
leadfyndr-get-leads-export-history
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/unlocked-leads-exports?limit=50&page=1&sort=exportedAt&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.getLeadsExportHistory({
"customerId": "string",
"queryParameters": {
"limit": 50,
"page": 1,
"sort": "exportedAt",
"order": "asc"
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\LeadFyndr\GetLeadsExportHistory\GetLeadsExportHistoryRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new GetLeadsExportHistoryRequest(
customerId: "string"
))
->withLimit(50)
->withPage(1)
->withSort("exportedAt")
->withOrder("asc");
$response = $client->leadFyndr()->getLeadsExportHistory($request);
var_dump($response->getBody();