> ## Documentation Index
> Fetch the complete documentation index at: https://api.lensmor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Precheck an external action



## OpenAPI

````yaml /openapi.json post /external/actions/precheck
openapi: 3.1.0
info:
  title: Lensmor API
  version: 0.22.0
  description: >-
    Lensmor Event Intelligence API for event discovery, exhibitor research,
    personnel lookup, credits, and profile matching.
servers:
  - url: https://platform.lensmor.com
security:
  - bearerAuth: []
tags:
  - name: Credits
  - name: Actions
  - name: Events
  - name: Exhibitors
  - name: Personnel
  - name: Contacts
  - name: Profile Matching
paths:
  /external/actions/precheck:
    post:
      tags:
        - Actions
      summary: Precheck an external action
      operationId: precheckExternalAction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActionPrecheckRequest'
      responses:
        '200':
          description: Precheck decision envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionPrecheckResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    ActionPrecheckRequest:
      type: object
      required:
        - action_type
        - params
      properties:
        action_type:
          type: string
          enum:
            - query_event_personnel
            - unlock_event_contacts
            - unlock_contact_emails
            - search_exhibitor_events
            - others
        call_source:
          type: string
        params:
          type: object
          additionalProperties: true
        locale:
          type: string
        trace_id:
          type: string
        conversation_id:
          type: string
        channel_message_id:
          type: string
      additionalProperties: false
    ActionPrecheckResponse:
      type: object
      required:
        - ok
        - action_type
        - allowed
        - should_charge
        - credits
        - reason_code
        - biz_code
        - detail
      properties:
        ok:
          type: boolean
          const: true
        action_type:
          type: string
        allowed:
          type: boolean
        should_charge:
          type: boolean
        credits:
          type: integer
        reason_code:
          type: string
          enum:
            - 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:
          type: string
        detail:
          type: object
          additionalProperties: true
      additionalProperties: true
    ApiError:
      type: object
      required:
        - code
        - message
        - errorKey
        - traceId
      properties:
        code:
          type: integer
        message:
          type: string
        errorKey:
          type: string
        traceId:
          type: string
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: User API key

````