Skip to main content

Get a sales-agent lead (with decrypted PII)

GET 

/api/v1/chatbots/:chatbotId/sales-agent/leads/:leadId

Reads a single captured sales-agent lead WITH decrypted PII (the audit-logged per-lead detail path). Returns the metadata the list returns PLUS the decrypted contact pii (name/email/phone/company/custom), the coarse geo detail (countryCode + region/city/timezone), and a decryptError string when server-side decrypt failed (the raw envelope, HMAC hashes, and IP hash are NEVER emitted). 404 for a missing, soft-deleted, or unauthorized lead (IDOR-safe). Owner/admin gated (PII reveal). Required scope: security:read.

Request

Responses

The lead detail with decrypted PII.