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

# Invoke a member action

> Invoke one declared member action by its opaque key (admin only).

The key decodes to ``(provider, action_id)`` and the optional handle to the
``(provider, target)`` the action acts on; a malformed token or a key/handle naming
different providers is a loud :class:`BadRequestError`. The per-action ``input`` is
validated by ``input_model.model_validate`` (ordinary pydantic — a declared-field type
error is a 422, an unknown key is ignored). The provider's typed failure propagates and
the platform reads no field of the opaque result.



## OpenAPI

````yaml /openapi.json post /api/auth/member-actions/invoke
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 22.0.4
servers: []
security: []
paths:
  /api/auth/member-actions/invoke:
    post:
      tags:
        - access-control
      summary: Invoke a member action
      description: >-
        Invoke one declared member action by its opaque key (admin only).


        The key decodes to ``(provider, action_id)`` and the optional handle to
        the

        ``(provider, target)`` the action acts on; a malformed token or a
        key/handle naming

        different providers is a loud :class:`BadRequestError`. The per-action
        ``input`` is

        validated by ``input_model.model_validate`` (ordinary pydantic — a
        declared-field type

        error is a 422, an unknown key is ignored). The provider's typed failure
        propagates and

        the platform reads no field of the opaque result.
      operationId: post_api_auth_member_actions_invoke
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvokeMemberActionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/InvokeMemberActionResult'
                required:
                  - data
                type: object
          description: Success.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict with the current resource state.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Request failed validation.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    InvokeMemberActionRequest:
      description: >-
        The invoke-door envelope: which action, which row, and the per-action
        input.


        ``action_key`` is the opaque catalog key; ``target_handle`` is the row
        handle an

        action acts on (``None`` for a page-scoped action); ``input`` is an open
        mapping the

        operation hands to the declared ``input_model`` for ordinary validation,
        so the

        platform's static envelope never needs to know the per-action fields.
        Unknown

        top-level keys are ignored (pydantic's default extra behaviour).
      properties:
        action_key:
          minLength: 1
          title: Action Key
          type: string
        input:
          additionalProperties: true
          title: Input
          type: object
        target_handle:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Target Handle
      required:
        - action_key
      title: InvokeMemberActionRequest
      type: object
    InvokeMemberActionResult:
      additionalProperties: false
      description: >-
        The invoke-door result: the provider's result-model dump, carried
        opaquely.


        ``result`` is the ``model_dump(mode="json")`` of the action's declared

        ``result_model`` instance; the platform reads no field of it.
      properties:
        result:
          additionalProperties: true
          title: Result
          type: object
      required:
        - result
      title: InvokeMemberActionResult
      type: object
    Error:
      properties:
        code:
          description: >-
            Stable machine-readable reason a client keys a dedicated error state
            on, present on refusals that opt in (e.g. a 501 not-configured
            refusal). Optional: absent when the error carries only a
            human-readable message.
          type: string
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.