FusionAuth · Capability

FusionAuth API — Messenger

FusionAuth API — Messenger. 14 operations. Lead operation: Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.. Self-contained Naftiko capability covering one business surface.

FusionAuth API — Messenger is a Naftiko capability published by FusionAuth, one of 33 capabilities the APIs.io network indexes for this provider. It bundles 14 operations across the POST, GET, DELETE, PATCH, and PUT methods rooted at /v1/api.

The capability includes 3 read-only operations and 11 state-changing operations. Lead operation: Creates an message template. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include FusionAuth and Messenger.

Run with Naftiko FusionAuthMessenger

What You Can Do

POST
Createmessagetemplate — Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
/v1/api/message/template
GET
Retrievemessagetemplate — Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.
/v1/api/message/template
POST
Retrievemessagetemplatepreviewwithid — Creates a preview of the message template provided in the request, normalized to a given locale.
/v1/api/message/template/preview
POST
Createmessagetemplatewithid — Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
/v1/api/message/template/{messageTemplateId}
DELETE
Deletemessagetemplatewithid — Deletes the message template for the given Id.
/v1/api/message/template/{messageTemplateId}
PATCH
Patchmessagetemplatewithid — Updates, via PATCH, the message template with the given Id.
/v1/api/message/template/{messageTemplateId}
GET
Retrievemessagetemplatewithid — Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.
/v1/api/message/template/{messageTemplateId}
PUT
Updatemessagetemplatewithid — Updates the message template with the given Id.
/v1/api/message/template/{messageTemplateId}
POST
Createmessenger — Creates a messenger. You can optionally specify an Id for the messenger, if not provided one will be generated.
/v1/api/messenger
POST
Createmessengerwithid — Creates a messenger. You can optionally specify an Id for the messenger, if not provided one will be generated.
/v1/api/messenger/{messengerId}
DELETE
Deletemessengerwithid — Deletes the messenger for the given Id.
/v1/api/messenger/{messengerId}
PATCH
Patchmessengerwithid — Updates, via PATCH, the messenger with the given Id.
/v1/api/messenger/{messengerId}
GET
Retrievemessengerwithid — Retrieves the messenger with the given Id.
/v1/api/messenger/{messengerId}
PUT
Updatemessengerwithid — Updates the messenger with the given Id.
/v1/api/messenger/{messengerId}

MCP Tools

fusionauth-createmessagetemplate

Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.

fusionauth-retrievemessagetemplate

Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.

read-only idempotent
fusionauth-retrievemessagetemplatepreviewwithid

Creates a preview of the message template provided in the request, normalized to a given locale.

fusionauth-createmessagetemplatewithid

Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.

fusionauth-deletemessagetemplatewithid

Deletes the message template for the given Id.

idempotent
fusionauth-patchmessagetemplatewithid

Updates, via PATCH, the message template with the given Id.

fusionauth-retrievemessagetemplatewithid

Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.

read-only idempotent
fusionauth-updatemessagetemplatewithid

Updates the message template with the given Id.

idempotent
fusionauth-createmessenger

Creates a messenger. You can optionally specify an Id for the messenger, if not provided one will be generated.

fusionauth-createmessengerwithid

Creates a messenger. You can optionally specify an Id for the messenger, if not provided one will be generated.

fusionauth-deletemessengerwithid

Deletes the messenger for the given Id.

idempotent
fusionauth-patchmessengerwithid

Updates, via PATCH, the messenger with the given Id.

fusionauth-retrievemessengerwithid

Retrieves the messenger with the given Id.

read-only idempotent
fusionauth-updatemessengerwithid

Updates the messenger with the given Id.

idempotent

Capability Spec

fusionauth-messenger.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FusionAuth API — Messenger
  description: 'FusionAuth API — Messenger. 14 operations. Lead operation: Retrieves the message template for the given Id. If you don''t specify the Id, this will return all the message templates.. Self-contained Naftiko capability covering one business surface.'
  tags:
  - FusionAuth
  - Messenger
  created: '2026-05-20'
  modified: '2026-05-20'
binds:
- namespace: env
  keys:
    FUSIONAUTH_API_KEY: FUSIONAUTH_API_KEY
capability:
  consumes:
  - type: http
    namespace: fusionauth-messenger
    baseUri: http://localhost:9011
    description: FusionAuth API — Messenger business capability. Self-contained, no shared references.
    resources:
    - name: api-message-template
      path: /api/message/template
      operations:
      - name: createmessagetemplate
        method: POST
        description: Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: retrievemessagetemplate
        method: GET
        description: Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters: []
    - name: api-message-template-preview
      path: /api/message/template/preview
      operations:
      - name: retrievemessagetemplatepreviewwithid
        method: POST
        description: Creates a preview of the message template provided in the request, normalized to a given locale.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-message-template-messagetemplateid
      path: /api/message/template/{messageTemplateId}
      operations:
      - name: createmessagetemplatewithid
        method: POST
        description: Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messageTemplateId
          in: path
          type: string
          description: The Id for the template. 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: deletemessagetemplatewithid
        method: DELETE
        description: Deletes the message template for the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messageTemplateId
          in: path
          type: string
          description: The Id of the message template to delete.
          required: true
      - name: patchmessagetemplatewithid
        method: PATCH
        description: Updates, via PATCH, the message template with the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messageTemplateId
          in: path
          type: string
          description: The Id of the message template to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: retrievemessagetemplatewithid
        method: GET
        description: Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messageTemplateId
          in: path
          type: string
          description: The Id of the message template.
          required: true
      - name: updatemessagetemplatewithid
        method: PUT
        description: Updates the message template with the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messageTemplateId
          in: path
          type: string
          description: The Id of the message template to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-messenger
      path: /api/messenger
      operations:
      - name: createmessenger
        method: POST
        description: Creates a messenger.  You can optionally specify an Id for the messenger, if not provided one will be generated.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-messenger-messengerid
      path: /api/messenger/{messengerId}
      operations:
      - name: createmessengerwithid
        method: POST
        description: Creates a messenger.  You can optionally specify an Id for the messenger, if not provided one will be generated.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messengerId
          in: path
          type: string
          description: The Id for the messenger. 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: deletemessengerwithid
        method: DELETE
        description: Deletes the messenger for the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messengerId
          in: path
          type: string
          description: The Id of the messenger to delete.
          required: true
      - name: patchmessengerwithid
        method: PATCH
        description: Updates, via PATCH, the messenger with the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messengerId
          in: path
          type: string
          description: The Id of the messenger to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: retrievemessengerwithid
        method: GET
        description: Retrieves the messenger with the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messengerId
          in: path
          type: string
          description: The Id of the messenger.
          required: true
      - name: updatemessengerwithid
        method: PUT
        description: Updates the messenger with the given Id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: messengerId
          in: path
          type: string
          description: The Id of the messenger to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: fusionauth-messenger-rest
    port: 8080
    description: REST adapter for FusionAuth API — Messenger. One resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/message/template
      name: api-message-template
      description: REST surface for api-message-template.
      operations:
      - method: POST
        name: createmessagetemplate
        description: Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
        call: fusionauth-messenger.createmessagetemplate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: retrievemessagetemplate
        description: Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.
        call: fusionauth-messenger.retrievemessagetemplate
        with: {}
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/message/template/preview
      name: api-message-template-preview
      description: REST surface for api-message-template-preview.
      operations:
      - method: POST
        name: retrievemessagetemplatepreviewwithid
        description: Creates a preview of the message template provided in the request, normalized to a given locale.
        call: fusionauth-messenger.retrievemessagetemplatepreviewwithid
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/message/template/{messageTemplateId}
      name: api-message-template-messagetemplateid
      description: REST surface for api-message-template-messagetemplateid.
      operations:
      - method: POST
        name: createmessagetemplatewithid
        description: Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
        call: fusionauth-messenger.createmessagetemplatewithid
        with:
          messageTemplateId: rest.messageTemplateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletemessagetemplatewithid
        description: Deletes the message template for the given Id.
        call: fusionauth-messenger.deletemessagetemplatewithid
        with:
          messageTemplateId: rest.messageTemplateId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchmessagetemplatewithid
        description: Updates, via PATCH, the message template with the given Id.
        call: fusionauth-messenger.patchmessagetemplatewithid
        with:
          messageTemplateId: rest.messageTemplateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: retrievemessagetemplatewithid
        description: Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.
        call: fusionauth-messenger.retrievemessagetemplatewithid
        with:
          messageTemplateId: rest.messageTemplateId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatemessagetemplatewithid
        description: Updates the message template with the given Id.
        call: fusionauth-messenger.updatemessagetemplatewithid
        with:
          messageTemplateId: rest.messageTemplateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/messenger
      name: api-messenger
      description: REST surface for api-messenger.
      operations:
      - method: POST
        name: createmessenger
        description: Creates a messenger.  You can optionally specify an Id for the messenger, if not provided one will be generated.
        call: fusionauth-messenger.createmessenger
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/messenger/{messengerId}
      name: api-messenger-messengerid
      description: REST surface for api-messenger-messengerid.
      operations:
      - method: POST
        name: createmessengerwithid
        description: Creates a messenger.  You can optionally specify an Id for the messenger, if not provided one will be generated.
        call: fusionauth-messenger.createmessengerwithid
        with:
          messengerId: rest.messengerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletemessengerwithid
        description: Deletes the messenger for the given Id.
        call: fusionauth-messenger.deletemessengerwithid
        with:
          messengerId: rest.messengerId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchmessengerwithid
        description: Updates, via PATCH, the messenger with the given Id.
        call: fusionauth-messenger.patchmessengerwithid
        with:
          messengerId: rest.messengerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: retrievemessengerwithid
        description: Retrieves the messenger with the given Id.
        call: fusionauth-messenger.retrievemessengerwithid
        with:
          messengerId: rest.messengerId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatemessengerwithid
        description: Updates the messenger with the given Id.
        call: fusionauth-messenger.updatemessengerwithid
        with:
          messengerId: rest.messengerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fusionauth-messenger-mcp
    port: 9090
    transport: http
    description: MCP adapter for FusionAuth API — Messenger. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: fusionauth-createmessagetemplate
      description: Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-messenger.createmessagetemplate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-retrievemessagetemplate
      description: Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fusionauth-messenger.retrievemessagetemplate
      with: {}
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-retrievemessagetemplatepreviewwithid
      description: Creates a preview of the message template provided in the request, normalized to a given locale.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-messenger.retrievemessagetemplatepreviewwithid
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-createmessagetemplatewithid
      description: Creates an message template. You can optionally specify an Id for the template, if not provided one will be generated.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-messenger.createmessagetemplatewithid
      with:
        messageTemplateId: tools.messageTemplateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-deletemessagetemplatewithid
      description: Deletes the message template for the given Id.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: fusionauth-messenger.deletemessagetemplatewithid
      with:
        messageTemplateId: tools.messageTemplateId
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-patchmessagetemplatewithid
      description: Updates, via PATCH, the message template with the given Id.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-messenger.patchmessagetemplatewithid
      with:
        messageTemplateId: tools.messageTemplateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-retrievemessagetemplatewithid
      description: Retrieves the message template for the given Id. If you don't specify the Id, this will return all the message templates.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fusionauth-messenger.retrievemessagetemplatewithid
      with:
        messageTemplateId: tools.messageTemplateId
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-updatemessagetemplatewithid
      description: Updates the message template with the given Id.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: fusionauth-messenger.updatemessagetemplatewithid
      with:
        messageTemplateId: tools.messageTemplateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-createmessenger
      description: Creates a messenger.  You can optionally specify an Id for the messenger, if not provided one will be generated.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-messenger.createmessenger
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-createmessengerwithid
      description: Creates a messenger.  You can optionally specify an Id for the messenger, if not provided one will be generated.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-messenger.createmessengerwithid
      with:
        messengerId: tools.messengerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-deletemessengerwithid
      description: Deletes the messenger for the given Id.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: fusionauth-messenger.deletemessengerwithid
      with:
        messengerId: tools.messengerId
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-patchmessengerwithid
      description: Updates, via PATCH, the messenger with the given Id.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fusionauth-messenger.patchmessengerwithid
      with:
        messengerId: tools.messengerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-retrievemessengerwithid
      description: Retrieves the messenger with the given Id.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fusionauth-messenger.retrievemessengerwithid
      with:
        messengerId: tools.messengerId
      outputParameters:
      - type: object
        mapping: $.
    - name: fusionauth-updatemessengerwithid
      description: Updates the messenger with the given Id.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: fusionauth-messenger.updatemessengerwithid
      with:
        messengerId: tools.messengerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.