Cumulocity Tokens API

The Tokens API from Cumulocity — 2 operation(s) for tokens.

Operations 2

POST /notification2/token Create a Subscription Token #
POST /notification2/unsubscribe Unsubscribe (Invalidate Token) #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cumulocity-tokens-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cumulocity-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cumulocity Notification 2.0 Tokens API
  version: 10.20.0
  description: 'High-throughput, persistent, ordered notification streaming for production microservices. Subscribers

    declare typed subscriptions (managed object, measurements, events, alarms, operations), exchange them

    for short-lived JWT tokens, and consume via WebSocket. Survives subscriber outages by buffering messages

    on the server.

    '
servers:
- url: https://{tenant}.cumulocity.com
  variables:
    tenant:
      default: example
security:
- basicAuth: []
- bearerAuth: []
tags:
- name: Tokens
paths:
  /notification2/token:
    post:
      tags:
      - Tokens
      summary: Create a Subscription Token
      operationId: createToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenRequest'
      responses:
        '200':
          description: A short-lived JWT token to use with the WebSocket consumer endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
  /notification2/unsubscribe:
    post:
      tags:
      - Tokens
      summary: Unsubscribe (Invalidate Token)
      operationId: unsubscribeToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
      responses:
        '200':
          description: Token invalidated.
components:
  schemas:
    TokenResponse:
      type: object
      properties:
        token:
          type: string
    TokenRequest:
      type: object
      required:
      - subscriber
      - subscription
      properties:
        subscriber:
          type: string
        subscription:
          type: string
        expiresInMinutes:
          type: integer
          minimum: 1
          maximum: 1440
        nonPersistent:
          type: boolean
        signed:
          type: boolean
        shared:
          type: boolean
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT