Skip to main content
Precheck an external API action before executing a workflow that may depend on event access, contact availability, credits, or action-specific policy. Use this endpoint when your integration needs a credit-safe confirmation step before calling an unlock or charged execution endpoint.

Endpoint

POST /external/actions/precheck

Authentication

See Authentication

Success status code

200 OK

Request body

NameRequiredTypeNotes
action_typeYesstringSupported values include query_event_personnel, unlock_event_contacts, unlock_contact_emails, search_exhibitor_events, and others.
paramsYesobjectAction-specific inputs, such as { "event_id": "26855" }.
call_sourceNostringSource label such as api or agent.
localeNostringOptional locale, such as en-US.
trace_idNostringCaller-provided trace id for support/debug correlation.
conversation_idNostringOptional conversation id for agent workflows.
channel_message_idNostringOptional message id for agent workflows.

Request example

curl -X POST "https://platform.lensmor.com/external/actions/precheck" \
  -H "Authorization: Bearer $LENSMOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_type": "query_event_personnel",
    "call_source": "api",
    "params": {
      "event_id": "26855"
    }
  }'

Response example

{
  "ok": true,
  "action_type": "query_event_personnel",
  "allowed": true,
  "should_charge": false,
  "credits": 0,
  "reason_code": "ok",
  "biz_code": "",
  "detail": {
    "event_id": "26855",
    "access_mode": "preview",
    "preview_limit": 50,
    "unlock_action_type": "unlock_event_contacts",
    "unlock_credits": 2000
  }
}

Response fields

FieldDescription
okAlways true for a handled precheck envelope.
action_typeNormalized action type that was evaluated.
allowedWhether the action can proceed under current account, access, and balance state.
should_chargeWhether executing the related action is expected to consume credits.
creditsExpected credit amount for the action.
reason_codeMachine-readable decision reason. Examples include ok, already_unlocked, insufficient_balance, not_found, and unsupported_action.
biz_codeBilling/business code used by the execution path when applicable.
detailAction-specific metadata. Shape varies by action_type.

Notes

  • Precheck is read-only. It does not unlock records, create tasks, or consume credits.
  • query_event_personnel is useful before calling Personnel list.
  • Once a list endpoint returns semantics, treat that response as the authoritative explanation for the actual list result.
  • Precheck decisions can change as credits, event access, or underlying data changes. Recheck before executing a paid action.