GET
/api/public/v1/leads/{leadId}Get a lead
One lead. Its location is what scopes it — a lead carries no company of its own.
Required scope
The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.
leads:read
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
leadId | string | Required | Lead ID. |
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/leads/{leadId}" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Lead retrieved successfully!",
"content": {
"lead": {
"id": "led_5c21",
"locationId": "loc_abc123",
"fullname": "Rae Nakamura",
"email": "rae@northwind.example",
"phoneNumber": "+15125550142",
"companyName": "Northwind Traders",
"title": "Operations lead",
"website": "https://northwind.example",
"city": "Austin",
"state": "TX",
"source": "Trade show",
"notes": null,
"status": "NEW",
"lastContactedAt": null,
"accountId": null,
"createdAt": "2026-08-11T16:20:00.000Z",
"updatedAt": "2026-08-11T16:20:00.000Z"
}
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.
xRM → Leads
/xrm/leads