Konnect Notification Hub (1.0.0)

Download OpenAPI specification:Download

Notification Hub API for Konnect.

Notifications

Operations related to notifications

List available notifications.

List available notifications.

Authorizations:
personalAccessToken
query Parameters
page[before]
string
Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ

Request the next page of data, starting with the item before this parameter.

page[after]
string
Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ

Request the next page of data, starting with the item after this parameter.

object (NotificationFilterParameters)

Filters a collection of notifications.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Get notification details.

Get notification details.

Authorizations:
personalAccessToken
path Parameters
notificationId
required
string

ID of the notification.

Responses

Response samples

Content type
application/json
{
  • "id": "93f8380e-7798-4566-99e3-2edf2b57d290",
  • "title": "Unpaid invoice reminder",
  • "description": "Reminder for an unpaid invoice.",
  • "status": "UNREAD",
  • "region": "EU",
  • "namespace": "plan-and-usage",
  • "entity_id": "invoice-1",
  • "details": {
    },
  • "created_at": "2023-01-01T00:00:00.000Z",
  • "updated_at": "2023-01-01T00:00:00.000Z"
}

Update notification.

Update notification.

Authorizations:
personalAccessToken
path Parameters
notificationId
required
string

ID of the notification.

Request Body schema: application/json

Request body schema for updating notification status.

status
required
string (NotificationStatus)
Enum: "READ" "UNREAD" "ARCHIVED"

Status of the notification.

Responses

Request samples

Content type
application/json
{
  • "status": "READ"
}

Response samples

Content type
application/json
{
  • "id": "93f8380e-7798-4566-99e3-2edf2b57d290",
  • "title": "Unpaid invoice reminder",
  • "description": "Reminder for an unpaid invoice.",
  • "status": "UNREAD",
  • "region": "EU",
  • "namespace": "plan-and-usage",
  • "entity_id": "invoice-1",
  • "details": {
    },
  • "created_at": "2023-01-01T00:00:00.000Z",
  • "updated_at": "2023-01-01T00:00:00.000Z"
}

Delete notification.

Delete notification.

Authorizations:
personalAccessToken
path Parameters
notificationId
required
string

ID of the notification.

Responses

Response samples

Content type
application/problem+json
{
  • "status": 401,
  • "title": "Unauthorized",
  • "instance": "kong:trace:8347343766220159418",
  • "detail": "Unauthorized"
}

Mark a list of notifications to a status.

Mark a list of notifications to a status.

Authorizations:
personalAccessToken
Request Body schema: application/json

Request body schema for bulk status update.

ids
required
Array of strings [ 1 .. 100 ] items unique
status
required
string (NotificationStatus)
Enum: "READ" "UNREAD" "ARCHIVED"

Status of the notification.

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ],
  • "status": "READ"
}

Response samples

Content type
application/problem+json
{
  • "status": 0,
  • "title": "string",
  • "type": "string",
  • "instance": "string",
  • "detail": "string",
  • "invalid_parameters": [
    ]
}

List available user configurations.

List available user configurations.

Authorizations:
personalAccessToken
query Parameters
object (ConfigurationFilterParameters)

Filters a collection of configurations.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ]
}

List event subscriptions.

List event subscriptions.

Authorizations:
personalAccessToken
path Parameters
eventId
required
string
Example: invoice-ready

Formatted string ID of the notification event.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Create a new subscription for an event.

Create a new subscription for an event.

Authorizations:
personalAccessToken
path Parameters
eventId
required
string
Example: invoice-ready

Formatted string ID of the notification event.

Request Body schema: application/json

Request body schema for creating/updating event subscription.

regions
required
Array of strings (NotificationRegion)
Items Enum: "US" "EU" "AU" "*"
entities
required
Array of strings
required
Array of objects (NotificationChannel)
enabled
required
boolean

Enable/Disable complete subscription within an event.

Responses

Request samples

Content type
application/json
{
  • "regions": [
    ],
  • "entities": [
    ],
  • "channels": [
    ],
  • "enabled": true,
  • "created_at": "2023-01-01T00:00:00.000Z",
  • "updated_at": "2023-01-01T00:00:00.000Z"
}

Response samples

Content type
application/json
{
  • "id": "93f8380e-7798-4566-99e3-2edf2b57d292",
  • "regions": [
    ],
  • "entities": [
    ],
  • "channels": [
    ],
  • "enabled": true,
  • "created_at": "2023-01-01T00:00:00.000Z",
  • "updated_at": "2023-01-01T00:00:00.000Z"
}

Get subscription for an event.

Get subscription for an event.

Authorizations:
personalAccessToken
path Parameters
eventId
required
string
Example: invoice-ready

Formatted string ID of the notification event.

subscriptionId
required
string

Subscription ID of the user configuration.

Responses

Response samples

Content type
application/json
{
  • "id": "93f8380e-7798-4566-99e3-2edf2b57d292",
  • "regions": [
    ],
  • "entities": [
    ],
  • "channels": [
    ],
  • "enabled": true,
  • "created_at": "2023-01-01T00:00:00.000Z",
  • "updated_at": "2023-01-01T00:00:00.000Z"
}

Update subscription for an event.

Update subscription for an event.

Authorizations:
personalAccessToken
path Parameters
eventId
required
string
Example: invoice-ready

Formatted string ID of the notification event.

subscriptionId
required
string

Subscription ID of the user configuration.

Request Body schema: application/json

Request body schema for creating/updating event subscription.

regions
required
Array of strings (NotificationRegion)
Items Enum: "US" "EU" "AU" "*"
entities
required
Array of strings
required
Array of objects (NotificationChannel)
enabled
required
boolean

Enable/Disable complete subscription within an event.

Responses

Request samples

Content type
application/json
{
  • "regions": [
    ],
  • "entities": [
    ],
  • "channels": [
    ],
  • "enabled": true,
  • "created_at": "2023-01-01T00:00:00.000Z",
  • "updated_at": "2023-01-01T00:00:00.000Z"
}

Response samples

Content type
application/json
{
  • "id": "93f8380e-7798-4566-99e3-2edf2b57d292",
  • "regions": [
    ],
  • "entities": [
    ],
  • "channels": [
    ],
  • "enabled": true,
  • "created_at": "2023-01-01T00:00:00.000Z",
  • "updated_at": "2023-01-01T00:00:00.000Z"
}

Delete subscription associated with event.

Delete subscription associated with event.

Authorizations:
personalAccessToken
path Parameters
eventId
required
string
Example: invoice-ready

Formatted string ID of the notification event.

subscriptionId
required
string

Subscription ID of the user configuration.

Responses

Response samples

Content type
application/problem+json
{
  • "status": 401,
  • "title": "Unauthorized",
  • "instance": "kong:trace:8347343766220159418",
  • "detail": "Unauthorized"
}