Cumulocity · Capability

Cumulocity Notification 2.0 — Tokens

Exchange a Notification 2.0 subscription for a short-lived JWT token usable against the WebSocket consumer endpoint.

Cumulocity Notification 2.0 — Tokens is a Naftiko capability published by Cumulocity, one of 31 capabilities the APIs.io network indexes for this provider. It bundles 2 operations.

The capability includes 2 state-changing operations. Lead operation: Create a short-lived JWT token for a Cumulocity Notification 2.0 subscription. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Cumulocity, Notification 2.0, Tokens, and JWT.

Run with Naftiko CumulocityNotification 2.0TokensJWT

MCP Tools

cumulocity-create-notification2-token

Create a short-lived JWT token for a Cumulocity Notification 2.0 subscription.

cumulocity-unsubscribe-notification2-token

Unsubscribe (invalidate) a Notification 2.0 token.

idempotent

Capability Spec

notification2-tokens.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Cumulocity Notification 2.0 — Tokens
  description: Exchange a Notification 2.0 subscription for a short-lived JWT token usable against the WebSocket consumer endpoint.
  tags: [Cumulocity, Notification 2.0, Tokens, JWT]
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    C8Y_BASE_URL: C8Y_BASE_URL
    C8Y_USER: C8Y_USER
    C8Y_PASSWORD: C8Y_PASSWORD
capability:
  consumes:
  - type: http
    namespace: notification2-tokens
    baseUri: '{{env.C8Y_BASE_URL}}'
    resources:
    - name: token
      path: /notification2/token
      operations:
      - name: createtoken
        method: POST
        description: Create A Subscription Token
        inputParameters:
        - {name: body, in: body, type: object, required: true}
    - name: unsubscribe
      path: /notification2/unsubscribe
      operations:
      - name: unsubscribetoken
        method: POST
        description: Unsubscribe / Invalidate A Token
        inputParameters:
        - {name: body, in: body, type: object, required: true}
    authentication:
      type: basic
      username: '{{env.C8Y_USER}}'
      password: '{{env.C8Y_PASSWORD}}'
  exposes:
  - type: mcp
    namespace: notification2-tokens-mcp
    port: 9090
    transport: http
    tools:
    - name: cumulocity-create-notification2-token
      description: Create a short-lived JWT token for a Cumulocity Notification 2.0 subscription.
      hints: {readOnly: false, destructive: false, idempotent: false}
      call: notification2-tokens.createtoken
      with: {body: tools.body}
    - name: cumulocity-unsubscribe-notification2-token
      description: Unsubscribe (invalidate) a Notification 2.0 token.
      hints: {readOnly: false, destructive: true, idempotent: true}
      call: notification2-tokens.unsubscribetoken
      with: {body: tools.body}