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

# Execute a previously-committed action request

> Materializes the previewed change set. Idempotent on `idempotencyKey` — replays return the cached result.



## OpenAPI

````yaml /openapi.json post /api/actions/{id}/execute
openapi: 3.1.0
info:
  title: Equated API
  version: 1.0.0
  description: >-
    Agent-facing accounting API. Authenticate with a bearer token issued from
    Settings → API Tokens, or via the in-app session cookie when called from the
    web client.
servers:
  - url: https://app.equated.co
    description: API server
security: []
paths:
  /api/actions/{id}/execute:
    post:
      tags:
        - Actions
      summary: Execute a previously-committed action request
      description: >-
        Materializes the previewed change set. Idempotent on `idempotencyKey` —
        replays return the cached result.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                idempotencyKey:
                  type: string
                  minLength: 1
              required:
                - idempotencyKey
      responses:
        '200':
          description: Execution result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionExecuteResult'
      security:
        - bearerAuth: []
components:
  schemas:
    ActionExecuteResult:
      type: object
      properties:
        actionRequestId:
          type: string
          nullable: true
        status:
          type: string
        changed:
          type: boolean
          description: >-
            False when nothing was applied: the row was already in that state,
            or the preview was stale or expired.
        result:
          $ref: '#/components/schemas/ActionMutationResult'
        error:
          type: string
      required:
        - actionRequestId
        - status
        - changed
        - result
    ActionMutationResult:
      type: object
      nullable: true
      properties:
        journalEntryIds:
          type: array
          items:
            type: integer
            minimum: 0
            exclusiveMinimum: true
        documentRelationIds:
          type: array
          items:
            type: integer
            minimum: 0
            exclusiveMinimum: true
        deletedJournalEntryIds:
          type: array
          items:
            type: integer
            minimum: 0
            exclusiveMinimum: true
        voidedJournalEntryIds:
          type: array
          items:
            type: integer
            minimum: 0
            exclusiveMinimum: true
      required:
        - journalEntryIds
        - documentRelationIds
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token issued from the Equated app under Settings → API Tokens.

````