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

# Execute a canonical Memex action

> The uniform action endpoint. Pass a stable actionId from the action catalogue and its action-specific input object. Legacy endpoints remain compatibility routes.



## OpenAPI

````yaml /api-reference/openapi.json post /execute-action
openapi: 3.1.0
info:
  title: Memex REST API
  description: Memex REST API endpoints.
  version: '2026-03-10'
servers:
  - url: https://memex.garden/api
    description: Public edge router
  - url: https://rubctkzqxcdgkbbcprnu.supabase.co/functions/v1
    description: Direct Supabase Edge Functions
security:
  - bearerAuth: []
paths:
  /execute-action:
    post:
      summary: Execute a canonical Memex action
      description: >-
        The uniform action endpoint. Pass a stable actionId from the action
        catalogue and its action-specific input object. Legacy endpoints remain
        compatibility routes.
      operationId: executeAction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - actionId
                - input
              properties:
                actionId:
                  type: string
                input:
                  type: object
                  additionalProperties: true
      responses:
        '200':
          description: Completed action, required user input, or approval request
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - actionId
                properties:
                  status:
                    type: string
                    enum:
                      - completed
                      - input_required
                      - approval_required
                  actionId:
                    type: string
                  output: {}
                  question:
                    type: string
                  reason:
                    type: string
                  approval: {}
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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