Telenor Sverige Event Subscriber API

Manages subscriptions and notifications of events using Server-Sent events (eventsource).

Operations 1

GET /event/subscribe/sse Starts a Server-Sent Event subscription #

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-wi-fi-quote-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-lan-quote-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-site-migration-quote-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-site-quote-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-quote-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-quote-group-dto-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-service-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-access-type-with-access-speed-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-access-type-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-product-type-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-fixed-network-offer-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-service-parameter-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-service-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-vpn-ncmc-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-dhcp-relay-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-static-route-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-add-vpn-ncmc-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-termination-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-sid-with-provider-connection-dto-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-account-dto-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-sid-with-attribute-dto-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-case-dto-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-close-case-dto-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-case-log-dto-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-add-contact-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-create-site-request-v2-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-safe-contact-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-update-contact-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-add-contact-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-site-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-cancellation-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-order-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-case-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-order-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-cancellation-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-list-cancellations-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-charge-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-refund-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-refund-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-charge-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-media-type-schema.json

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/telenor-sverige:telenor-sverige-event-subscriber-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

telenor-sverige-event-subscriber-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Event Notification Event Subscriber API
  description: 'API managing registration and notifications of events to subscribers and producers.

    >

    The Event Notification API purpose is to provide real time updates for asynchronous processes at Telenor such as different states for an order or enabling a service in the network. A producer can choose to create an event of a specific category and consumers can choose to subscribe to one, or several, categories. It is also possible to subscribe to all categories if one chooses to. This API is intended for software developers and system integrators implementing client applications for handling events. It is assumed that the reader is familiar with software API concepts such as REST, JSON and the OpenAPI interface specification. For more information about OpenAPI see OpenAPI Specification.

    ### Response Codes

    This API follows standard response codes for REST APIs defined in W3C response codes Note that not all 4xx HTTP Status Codes are explicit documented in each API-operation such as **401 (UNAUTHORIZED)** and **403 (FORBIDDEN)**. These are considered generic ones and clients should be aware their presence at all operations.'
  termsOfService: https://www.telenor.se/globalassets/mediabibliotek/telenor-foretag/pdfer/priser-och-villkor/general-terms-and-conditions-october-2012.pdf
  contact:
    name: Telenor Support
    url: https://www.telenor.se/foretag/kundservice/
  version: 2.1.1
servers:
- url: https://b2bapis-test.telenor.se/
  description: Test environment
- url: https://b2bapis.telenor.se/
  description: Prod environment
tags:
- name: Event Subscriber API
  description: Manages subscriptions and notifications of events using Server-Sent events (eventsource).
  externalDocs:
    description: W3C external documentation of Server-Sent events (eventsource).
    url: https://www.w3.org/TR/eventsource/
paths:
  /event/subscribe/sse:
    get:
      tags:
      - Event Subscriber API
      summary: Starts a Server-Sent Event subscription
      description: 'Starts a subscription between client and server using Server-Sent Events to enable push notifications from Telenor B2B APIs. The state of each event is either

        - IN_PROGRESS

        - PENDING

        - COMPLETED

        - FAILED

        - UNKNOWN


        Below is an example of an event:


        : 0d24ba5b-98ef-4f13-8d58-789c24a58f0a:8

        event: FIXED_NETWORK_PRODUCT_INVENTORY

        id: 79ea335d-6b38-4700-8dc7-1af442f9fb83

        retry: 5000

        data: {"createDateTime":"2021-06-18T15:28:20.4721532+02:00","detailedMessage":"The request is now in progress.","operation":"Provisioning subscription","principal":"902da9e6-4d7c-4bee-ad55-a60ff6b7d994","state":"IN_PROGRESS"}'
      operationId: EventNotificationFacade_startSubscription
      parameters:
      - name: eventCategory
        in: query
        description: The event categories to subscribe to. If parameter is left out in request all event categories will subscribed to. If included, one or several event categories can be specified.
        schema:
          type: array
          items:
            $ref: '#/components/schemas/EventCategory'
      responses:
        x-codeSamples:
        - lang: Java
          source: "//Using JAX-RS Client API\nvar client = ClientBuilder.newClient();\nvar target = client.target(url);\ntry (SseEventSource source = SseEventSource.target(target).build()) {\n  source.register((inboundSseEvent) -> System.out.println(inboundSseEvent));\n  source.open();\n};"
        - lang: JavaScript
          source: "var source = new EventSource('https://<base-url>/event/subscribe/sse');\nsource.onmessage = function (event) {\n   alert(event.data);\n};"
        '200':
          description: Subscription started successfully
          content:
            text/event-stream:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  comment:
                    type: string
                  reconnectDelay:
                    format: int64
                    type: integer
                  reconnectDelaySet:
                    type: boolean
                  type:
                    type: object
                  genericType:
                    type: object
                  mediaType:
                    $ref: '#/components/schemas/MediaType'
                  data: {}
                example: ': 0d24ba5b-98ef-4f13-8d58-789c24a58f0a:8

                  id: 123

                  event: FIXED_NETWORK_ORDER

                  data: {"customerId": QUARKUS, "state": "COMPLETED", "operation": "Provisioning","detailedMessage": "The product has now been delivered and ready to use."}'
          x-codeSamples:
          - lang: Java
            source: "//Using JAX-RS Client API\nvar client = ClientBuilder.newClient();\nvar target = client.target(url);\ntry (SseEventSource source = SseEventSource.target(target).build()) {\n  source.register((inboundSseEvent) -> System.out.println(inboundSseEvent));\n  source.open();\n};"
          - lang: JavaScript
            source: "var source = new EventSource('https://<base-url>/event/subscribe/sse');\nsource.onmessage = function (event) {\n   alert(event.data);\n};"
        '401':
          description: Invalid or missing ID Token (JWT)
          x-codeSamples:
          - lang: Java
            source: "//Using JAX-RS Client API\nvar client = ClientBuilder.newClient();\nvar target = client.target(url);\ntry (SseEventSource source = SseEventSource.target(target).build()) {\n  source.register((inboundSseEvent) -> System.out.println(inboundSseEvent));\n  source.open();\n};"
          - lang: JavaScript
            source: "var source = new EventSource('https://<base-url>/event/subscribe/sse');\nsource.onmessage = function (event) {\n   alert(event.data);\n};"
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          x-codeSamples:
          - lang: Java
            source: "//Using JAX-RS Client API\nvar client = ClientBuilder.newClient();\nvar target = client.target(url);\ntry (SseEventSource source = SseEventSource.target(target).build()) {\n  source.register((inboundSseEvent) -> System.out.println(inboundSseEvent));\n  source.open();\n};"
          - lang: JavaScript
            source: "var source = new EventSource('https://<base-url>/event/subscribe/sse');\nsource.onmessage = function (event) {\n   alert(event.data);\n};"
      security:
      - bearer-jwt: []
      x-codeSamples:
      - lang: Java
        source: "//Using JAX-RS Client API\nvar client = ClientBuilder.newClient();\nvar target = client.target(url);\ntry (SseEventSource source = SseEventSource.target(target).build()) {\n  source.register((inboundSseEvent) -> System.out.println(inboundSseEvent));\n  source.open();\n};"
      - lang: JavaScript
        source: "var source = new EventSource('https://<base-url>/event/subscribe/sse');\nsource.onmessage = function (event) {\n   alert(event.data);\n};"
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          description: '## Errors

            ### INVALID_PARAMETERS

            Invalid input parameter(s).

            ### INVALID_JWT

            Invalid ID-token (JWT).

            ### INTERNAL_ERROR

            Internal error.

            ### TIMEOUT

            Timeout occurred when communicating with underlying systems

            '
          type: string
          example: INVALID_PARAMETERS
        message:
          description: Human readable message of the error
          type: string
        timestamp:
          format: int64
          description: timestamp (Epoch) when error occurred
          type: integer
    MediaType:
      type: object
      properties:
        type:
          type: string
        subtype:
          type: string
        parameters:
          type: object
          additionalProperties:
            type: string
        hash:
          format: int32
          type: integer
        wildcardType:
          type: boolean
        wildcardSubtype:
          type: boolean
    EventCategory:
      enum:
      - EVENT_SUBSCRIPTION_STARTED
      - FIXED_NETWORK_ORDER
      - FIXED_NETWORK_PRODUCT_INVENTORY
      - FIXED_NETWORK_QUOTATION
      - FIXED_NETWORK_INTERNAL_CRM
      - HEARTBEAT
      type: string
  securitySchemes:
    bearer-jwt:
      type: http
      description: Telenor Sweden bearer token (JWT)
      scheme: bearer
      bearerFormat: JWT
x-tagGroups:
- name: API Operations
  tags:
  - Event Subscriber API
x-servers:
- url: https://b2bapis-test.telenor.se/
  description: Test environment
- url: https://b2bapis.telenor.se/
  description: Prod environment
x-provenance:
  method: harvested
  publisher: Telenor Sverige
  source: https://developer.telenor.se/event-notification/openapi
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)