Org Configurations

Create an org subscription

Changed on

Create a subscription for an org scoped event. The event ID to subscribe is placed in the URL. A destination may be used in multiple subscriptions. Only available to organization administrators.

post/v1/notifications/configurations/organization/{eventId}/subscriptions

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

eventId, string required
Example:invoice-ready

Formatted string ID of the notification event.

Request body

OrgSubscriptionCreatePayload required

Defines which destinations receive an event and the regions and entities for which notifications are sent.

destination_ids, string[] required

IDs of 1 to 50 HTTP destinations that receive this event. Each ID must be unique.

regions, NotificationRegion[] required

Regions for which notifications are sent. Use * for all regions.

entities, string[] required

Entity IDs for which notifications are sent. Use * for all entities.

enabled, boolean required

Set to false to create the subscription in a paused state.

name, string required

Name that identifies the subscription.

Response

A single org subscription.

OrgSubscription required

Subscription that sends an organization event to one or more destinations for the selected regions and entities.

id, string uuid required

UUID v7 identifier of the subscription.

name, string required

Name that identifies the subscription.

event_type, string required

Event type sent by this subscription.

destination_ids, string[] required

IDs of the HTTP destinations that receive this event. Deleting a destination removes its ID from this list. The subscription is deleted if no destinations remain.

regions, NotificationRegion[] required

Regions for which this subscription sends notifications. * represents all regions.

entities, string[] required

Entity IDs for which this subscription sends notifications. * represents all entities.

enabled, boolean required

Indicates whether this subscription sends notifications.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes