FusionAuth · Capability

FusionAuth API — User Action Reason

FusionAuth API — User Action Reason. 7 operations. Lead operation: Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.. Self-contained Naftiko capability covering one business surface.

FusionAuth API — User Action Reason is a Naftiko capability published by FusionAuth, one of 33 capabilities the APIs.io network indexes for this provider. It bundles 7 operations across the POST, GET, DELETE, PATCH, and PUT methods rooted at /v1/api/user-action-reason.

The capability includes 2 read-only operations and 5 state-changing operations. Lead operation: Creates a user reason. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include FusionAuth and User Action Reason.

Run with Naftiko FusionAuthUser Action Reason

What You Can Do

POST
Createuseractionreason — Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th
/v1/api/user-action-reason
GET
Retrieveuseractionreason — Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.
/v1/api/user-action-reason
POST
Createuseractionreasonwithid — Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th
/v1/api/user-action-reason/{userActionReasonId}
DELETE
Deleteuseractionreasonwithid — Deletes the user action reason for the given Id.
/v1/api/user-action-reason/{userActionReasonId}
PATCH
Patchuseractionreasonwithid — Updates, via PATCH, the user action reason with the given Id.
/v1/api/user-action-reason/{userActionReasonId}
GET
Retrieveuseractionreasonwithid — Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.
/v1/api/user-action-reason/{userActionReasonId}
PUT
Updateuseractionreasonwithid — Updates the user action reason with the given Id.
/v1/api/user-action-reason/{userActionReasonId}

MCP Tools

fusionauth-createuseractionreason

Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th

fusionauth-retrieveuseractionreason

Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.

read-only idempotent
fusionauth-createuseractionreasonwithid

Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th

fusionauth-deleteuseractionreasonwithid

Deletes the user action reason for the given Id.

idempotent
fusionauth-patchuseractionreasonwithid

Updates, via PATCH, the user action reason with the given Id.

fusionauth-retrieveuseractionreasonwithid

Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.

read-only idempotent
fusionauth-updateuseractionreasonwithid

Updates the user action reason with the given Id.

idempotent

Capability Spec

fusionauth-user-action-reason.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FusionAuth API — User Action Reason
  description: 'FusionAuth API — User Action Reason. 7 operations. Lead operation: Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.. Self-contained Naftiko capability covering one business surface.'
  tags:
  - FusionAuth
  - User Action Reason
  created: '2026-05-20'
  modified: '2026-05-20'
binds:
- namespace: env
  keys:
    FUSIONAUTH_API_KEY: FUSIONAUTH_API_KEY
capability:
  consumes:
  - type: http
    namespace: fusionauth-user-action-reason
    baseUri: http://localhost:9011
    description: FusionAuth API — User Action Reason business capability. Self-contained, no shared references.
    resources:
    - name: api-user-action-reason
      path: /api/user-action-reason
      operations:
      - name: createuseractionreason
        method: POST
        description: Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: retrieveuseractionreason
        method: GET
        description: Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters: []
    - name: api-user-action-reason-useractionreasonid
      path: /api/user-action-reason/{userActionReasonId}
      operations:
      - name: createuseractionreasonwithid
        method: POST
        description: Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userActionReasonId
          in: path
          type: string
          description: The Id for the user action reason. If not provided a secure random UUID will be generated.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteuseractionreasonwithid
        method: DELETE
        description: Deletes the user action reason for the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userActionReasonId
          in: path
          type: string
          description: The Id of the user action reason to delete.
          required: true
      - name: patchuseractionreasonwithid
        method: PATCH
        description: Updates, via PATCH, the user action reason with the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userActionReasonId
          in: path
          type: string
          description: The Id of the user action reason to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: retrieveuseractionreasonwithid
        method: GET
        description: Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userActionReasonId
          in: path
          type: string
          description: The Id of the user action reason.
          required: true
      - name: updateuseractionreasonwithid
        method: PUT
        description: Updates the user action reason with the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userActionReasonId
          in: path
          type: string
          description: The Id of the user action reason to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: fusionauth-user-action-reason-rest
    port: 8080
    description: REST adapter for FusionAuth API — User Action Reason. One resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/user-action-reason
      name: api-user-action-reason
      description: REST surface for api-user-action-reason.
      operations:
      - method: POST
        name: createuseractionreason
        description: Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th
        call: fusionauth-user-action-reason.createuseractionreason
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: retrieveuseractionreason
        description: Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.
        call: fusionauth-user-action-reason.retrieveuseractionreason
        with: {}
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/user-action-reason/{userActionReasonId}
      name: api-user-action-reason-useractionreasonid
      description: REST surface for api-user-action-reason-useractionreasonid.
      operations:
      - method: POST
        name: createuseractionreasonwithid
        description: Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th
        call: fusionauth-user-action-reason.createuseractionreasonwithid
        with:
          userActionReasonId: rest.userActionReasonId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteuseractionreasonwithid
        description: Deletes the user action reason for the given Id.
        call: fusionauth-user-action-reason.deleteuseractionreasonwithid
        with:
          userActionReasonId: rest.userActionReasonId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchuseractionreasonwithid
        description: Updates, via PATCH, the user action reason with the given Id.
        call: fusionauth-user-action-reason.patchuseractionreasonwithid
        with:
          userActionReasonId: rest.userActionReasonId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: retrieveuseractionreasonwithid
        description: Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.
        call: fusionauth-user-action-reason.retrieveuseractionreasonwithid
        with:
          userActionReasonId: rest.userActionReasonId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateuseractionreasonwithid
        description: Updates the user action reason with the given Id.
        call: fusionauth-user-action-reason.updateuseractionreasonwithid
        with:
          userActionReasonId: rest.userActionReasonId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fusionauth-user-action-reason-mcp
    port: 9090
    transport: http
    description: MCP adapter for FusionAuth API — User Action Reason. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: fusionauth-createuseractionreason
      description: Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-user-action-reason.createuseractionreason
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-retrieveuseractionreason
      description: Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fusionauth-user-action-reason.retrieveuseractionreason
      with: {}
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-createuseractionreasonwithid
      description: Creates a user reason. This user action reason cannot be used when actioning a user until this call completes successfully. Anytime after th
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-user-action-reason.createuseractionreasonwithid
      with:
        userActionReasonId: tools.userActionReasonId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-deleteuseractionreasonwithid
      description: Deletes the user action reason for the given Id.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: fusionauth-user-action-reason.deleteuseractionreasonwithid
      with:
        userActionReasonId: tools.userActionReasonId
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-patchuseractionreasonwithid
      description: Updates, via PATCH, the user action reason with the given Id.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-user-action-reason.patchuseractionreasonwithid
      with:
        userActionReasonId: tools.userActionReasonId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-retrieveuseractionreasonwithid
      description: Retrieves the user action reason for the given Id. If you pass in null for the Id, this will return all the user action reasons.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fusionauth-user-action-reason.retrieveuseractionreasonwithid
      with:
        userActionReasonId: tools.userActionReasonId
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-updateuseractionreasonwithid
      description: Updates the user action reason with the given Id.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: fusionauth-user-action-reason.updateuseractionreasonwithid
      with:
        userActionReasonId: tools.userActionReasonId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.