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
- 200
- 400
- 401
- 403
- 404
- 429
The lead detail with decrypted PII.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Too Many Requests — rate limit exceeded