Skip to main content
POST
Precheck an external action

Authorizations

Authorization
string
header
required

Send the full Business API key from Settings -> API Keys, for example Authorization: Bearer sk_your_api_key.

Body

application/json

Read-only action eligibility and expected-credit evaluation request.

action_type
string
required

Action to evaluate. The listed examples are handled explicitly. Other 1–100 character strings are accepted and return allowed: false with reason_code: unsupported_action.

Required string length: 1 - 100
Examples:

"query_event_personnel"

"unlock_event_contacts"

"unlock_event_visitors"

"unlock_event_full_access"

"unlock_contact_emails"

"unlock_contact_phones"

"search_exhibitor_events"

"search_personnel_events_by_name"

"integration_status"

"integration_export_contacts"

"integration_export_exhibitors"

"others"

params
object
required

Action-specific identifiers and inputs, such as an event_id.

Example:
call_source
string

Caller source label, typically api or agent.

Required string length: 1 - 100
Example:

"api"

locale
string

Optional locale used for localized guidance or messages.

Required string length: 1 - 20
Example:

"en-US"

trace_id
string

Optional caller-provided trace identifier for support correlation.

Required string length: 1 - 200
Example:

"trace_123"

conversation_id
string

Optional conversation identifier for agent workflows.

Required string length: 1 - 200
Example:

"conversation_123"

channel_message_id
string

Optional channel message identifier for agent workflows.

Required string length: 1 - 200
Example:

"message_123"

Response

Precheck decision envelope

Action eligibility, expected charging, reason, and action-specific detail.

ok
boolean
required

Whether the precheck itself completed successfully.

action_type
string
required

Action evaluated by the precheck.

allowed
boolean
required

Whether the action is currently allowed to proceed.

should_charge
boolean
required

Whether executing the action is expected to consume credits.

credits
integer
required

Credits expected for the action under the current state.

reason_code
enum<string>
required

Stable reason explaining the eligibility and charging decision.

Available options:
ok,
already_unlocked,
unlock_in_progress,
state_conflict,
insufficient_balance,
no_contacts_available,
exceed_max_unlock_limit,
invalid_subject,
unsupported_action,
not_found,
forbidden,
system_error
biz_code
string
required

Business code associated with the precheck decision.

detail
object
required

Action-specific eligibility, cost, or state detail.