Analytics

Read draft approval/edit/rejection rates and auto-send gate state

How often the coach approves, edits, or rejects drafts, and where that leaves the auto-send gate. This is the number that decides whether auto-send can go on at all.

API key scopes: analytics:read.

get/api/analytics/trust-score

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/analytics/trust-score
  • Auth: one of:
    • API key in cookie luca.session_token
    • API key in header x-api-key
    • HTTP bearer

Query parameters

period'this_week' | 'this_month' | 'last_week' | 'last_month' | 'last_30_days'

Reporting window the figures cover.

channel'telegram' | 'instagram' | 'messenger' | 'whatsapp'

Return only records on this messaging channel.

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.

Response

ok

period'this_week' | 'this_month' | 'last_week' | 'last_month' | 'last_30_days' required
channelstring nullable required
approvalRatenumber nullable required
editDistanceP50number nullable required
rejectionRatenumber nullable required
autoSendEnabledboolean required
approvedCountinteger required
editedCountinteger required
rejectedCountinteger required

Changes

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