Ampersand · Capability

Ampersand public API — Notification

Ampersand public API — Notification. 3 operations. Lead operation: Ampersand Create a Notification Event-topic Route. Self-contained Naftiko capability covering one Ampersand business surface.

Run with Naftiko AmpersandNotification

What You Can Do

POST
Createeventtopicroute — Ampersand Create a Notification Event-topic Route
/v1/projects/{projectidorname}/notification-event-topic-routes
GET
Listeventtopicroutes — Ampersand List Notification Event-topic Routes
/v1/projects/{projectidorname}/notification-event-topic-routes
DELETE
Deleteeventtopicroute — Ampersand Delete a Notification Event-topic Route
/v1/projects/{projectidorname}/notification-event-topic-routes/{routeid}

MCP Tools

ampersand-create-notification-event-topic

Ampersand Create a Notification Event-topic Route

ampersand-list-notification-event-topic

Ampersand List Notification Event-topic Routes

read-only idempotent
ampersand-delete-notification-event-topic

Ampersand Delete a Notification Event-topic Route

idempotent

Capability Spec

ampersand-notification.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Ampersand public API — Notification
  description: 'Ampersand public API — Notification. 3 operations. Lead operation: Ampersand Create a Notification Event-topic
    Route. Self-contained Naftiko capability covering one Ampersand business surface.'
  tags:
  - Ampersand
  - Notification
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMPERSAND_API_KEY: AMPERSAND_API_KEY
capability:
  consumes:
  - type: http
    namespace: ampersand-notification
    baseUri: https://api.withampersand.com/v1
    description: Ampersand public API — Notification business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectIdOrName-notification-event-topic-routes
      path: /projects/{projectIdOrName}/notification-event-topic-routes
      operations:
      - name: createeventtopicroute
        method: POST
        description: Ampersand Create a Notification Event-topic Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectIdOrName
          in: path
          type: string
          description: The Ampersand project ID or project name.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listeventtopicroutes
        method: GET
        description: Ampersand List Notification Event-topic Routes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectIdOrName
          in: path
          type: string
          description: The Ampersand project ID or project name.
          required: true
        - name: topicId
          in: query
          type: string
          description: Filter by topic ID.
        - name: eventType
          in: query
          type: string
          description: Filter by notification event type.
    - name: projects-projectIdOrName-notification-event-topic-routes-routeId
      path: /projects/{projectIdOrName}/notification-event-topic-routes/{routeId}
      operations:
      - name: deleteeventtopicroute
        method: DELETE
        description: Ampersand Delete a Notification Event-topic Route
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectIdOrName
          in: path
          type: string
          description: The Ampersand project ID or project name.
          required: true
        - name: routeId
          in: path
          type: string
          description: The event-topic route ID.
          required: true
    authentication:
      type: bearer
      token: '{{env.AMPERSAND_API_KEY}}'
  exposes:
  - type: rest
    namespace: ampersand-notification-rest
    port: 8080
    description: REST adapter for Ampersand public API — Notification. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{projectidorname}/notification-event-topic-routes
      name: projects-projectidorname-notification-event-topic-routes
      description: REST surface for projects-projectIdOrName-notification-event-topic-routes.
      operations:
      - method: POST
        name: createeventtopicroute
        description: Ampersand Create a Notification Event-topic Route
        call: ampersand-notification.createeventtopicroute
        with:
          projectIdOrName: rest.projectIdOrName
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listeventtopicroutes
        description: Ampersand List Notification Event-topic Routes
        call: ampersand-notification.listeventtopicroutes
        with:
          projectIdOrName: rest.projectIdOrName
          topicId: rest.topicId
          eventType: rest.eventType
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectidorname}/notification-event-topic-routes/{routeid}
      name: projects-projectidorname-notification-event-topic-routes-routeid
      description: REST surface for projects-projectIdOrName-notification-event-topic-routes-routeId.
      operations:
      - method: DELETE
        name: deleteeventtopicroute
        description: Ampersand Delete a Notification Event-topic Route
        call: ampersand-notification.deleteeventtopicroute
        with:
          projectIdOrName: rest.projectIdOrName
          routeId: rest.routeId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ampersand-notification-mcp
    port: 9090
    transport: http
    description: MCP adapter for Ampersand public API — Notification. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: ampersand-create-notification-event-topic
      description: Ampersand Create a Notification Event-topic Route
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ampersand-notification.createeventtopicroute
      with:
        projectIdOrName: tools.projectIdOrName
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: ampersand-list-notification-event-topic
      description: Ampersand List Notification Event-topic Routes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ampersand-notification.listeventtopicroutes
      with:
        projectIdOrName: tools.projectIdOrName
        topicId: tools.topicId
        eventType: tools.eventType
      outputParameters:
      - type: object
        mapping: $.
    - name: ampersand-delete-notification-event-topic
      description: Ampersand Delete a Notification Event-topic Route
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: ampersand-notification.deleteeventtopicroute
      with:
        projectIdOrName: tools.projectIdOrName
        routeId: tools.routeId
      outputParameters:
      - type: object
        mapping: $.