Get Lead
GET
/public/v1/leads/{lead_id}
const url = 'https://api.aymaragents.com/public/v1/leads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.aymaragents.com/public/v1/leads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'X-API-Key: <X-API-Key>'Return a single lead owned by the tenant.
A foreign-tenant/unknown id is an indistinguishable 404 (aislamiento multi-tenant,
CLAUDE.md raiz).
Permiso necesario: tenant:leads.read
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»lead_id
required
Lead Id
string format: uuid
Responses
Sección titulada «Responses»Successful Response
Media typeapplication/json
PublicLeadOut
Lead shape returned by the public list/get/create/update endpoints.
Curated subset of the internal LeadOut (schemas/leads.py): drops
originChannelId/originChannelName (MCH-7 internal attribution, meaningless to a third-
party integration) and the legacy stage string mirror (stageId is the single canonical
field on this NEW contract – no legacy bridge to preserve here, unlike the internal shape
which still serves pre-KAN consumers).
object
id
required
Id
string
customerName
required
Customername
string
intent
required
Intent
string
quality
required
Quality
string
stageId
required
Stageid
string
budget
zones
required
Zones
Array<string>
source
required
Source
string
createdAt
required
Createdat
string
updatedAt
required
Updatedat
string
Examplegenerated
{ "id": "example", "customerId": "example", "conversationId": "example", "customerName": "example", "customerEmail": "example", "customerPhone": "example", "intent": "example", "quality": "example", "stageId": "example", "budget": { "min": 1, "max": 1 }, "zones": [ "example" ], "rooms": 1, "assignedOperatorId": "example", "source": "example", "notes": "example", "createdAt": "example", "updatedAt": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}