Action precheck
Evaluate whether a supported external action is allowed and whether it would charge credits, without executing it. Use this endpoint when you need truth data such asallowed, should_charge, credits, reason_code, and action-specific detail before running an action.
Endpoint
POST /external/actions/precheck
Authentication
See AuthenticationSuccess status code
200 OK
Request body
| Name | Required | Type | Notes |
|---|---|---|---|
action_type | Yes | string | Action code to evaluate. |
params | Yes | object | Action-specific input payload. |
locale | No | string | Optional locale hint. |
Response example
Error responses
400 Bad Request401 Unauthorized
Notes
- Use this endpoint to check whether an action is allowed and whether it would consume credits.
detailreturns context for the requested action, such as preview-access guidance or unlock-related information.