Leads

Grant explicit lead consent for a channel purpose

Records explicit consent for one channel and one purpose. Outreach that needs consent stays blocked for that pair until this row exists.

API key scopes: leads:write. You also need an Idempotency-Key header.

post/api/leads/{id}/consents

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/leads/{id}/consents
  • Auth: one of:
    • API key in cookie luca.session_token
    • API key in header x-api-key
    • HTTP bearer

Path parameters

idstring uuid required

Identifier of the lead this operation targets.

Headers

Luca-API-Version'1'

The major version of the API this client was built against. Omit it and the request is served by the current major version. Any other value is refused with 400 unsupported_api_version.

Request body

channel'telegram' | 'instagram' | 'messenger' | 'whatsapp' required
purpose'booking_reminders' | 'marketing' | 'sales_follow_up' | 'support' required
sourcestring required
evidenceIdstring required
grantedAtstring date-time nullable

Response

ok

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.