Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Event configuration API

Download OpenAPI (YAML)Version v1

Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/event-configurations/v1

The WSO2 Identity Platform - Event Configuration Management API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

clientCredentials flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token

2 scopes
ScopeDescription
internal_event_config_viewGrant permissions to view event configurations.
internal_event_config_updateGrant permissions to update event configurations.

Events Configurations​

Retrieve all events.​

GET /events

This API provides capability to retrieve all events of the WSO2 Identity Platform event publisher.

Permissions required:

  • /permission/admin/manage/identity/eventconfig/view

Scopes required:

  • internal_event_config_view

Responses

CodeDescriptionSchema
200

OK

EventsList
400

Invalid input request.

Error
401

Unauthorized.

Error
403

Resource forbidden.

Error
404

Resource not found.

Error
500

Internal server error.

Error

Update multiple events.​

PUT /events

This API provides the capability to enable/ disable multiple events for the WSO2 Identity Platform event publisher.
You need to send the complete list of events in order for it to be accepted as a valid request.

Permissions required:

  • /permission/admin/manage/identity/eventconfig/update

Scopes required:

  • internal_event_config_update

Request body (required): application/json

Represents the request to configure event publishing for multiple events. You can pass an array of Event objects.

Schema: EventsList

Responses

CodeDescriptionSchema
200

OK

EventsList
400

Invalid input request.

Error
401

Unauthorized.

Error
403

Resource forbidden.

Error
404

Resource not found.

Error
500

Internal server error.

Error

Event Configurations​

Retrieve event publishing configuration by event name.​

GET /events/{eventName}

This API provides the capability to retrieve WSO2 Identity Platform event publisher configuration by event name.

Permissions required:

  • /permission/admin/manage/identity/eventconfig/view

Scopes required:

  • internal_event_config_view

Parameters

NameInTypeRequiredDescription
eventNamepathstringYes

Name of the event

Responses

CodeDescriptionSchema
200

OK

EventConfigurationResponse
400

Invalid input request.

Error
401

Unauthorized.

Error
403

Resource forbidden.

Error
404

Resource not found.

Error
500

Internal server error.

Error

Configure event publishing configuration by event name.​

PUT /events/{eventName}

This API provides the capability to configure WSO2 Identity Platform event publisher configuration by event name.

Permissions required:

  • /permission/admin/manage/identity/eventconfig/update

Scopes required:

  • internal_event_config_update

Parameters

NameInTypeRequiredDescription
eventNamepathstringYes

Name of the event

Request body (required): application/json

Represents the request to configure event publishing of the event. You can configure event properties by passing an array of key/ value pair objects.

Schema: EventConfigurationObject

2 properties
NameTypeRequiredDescription
publishbooleanYes
propertiesarray of EventPropertyYes

Responses

CodeDescriptionSchema
200

OK

EventConfigurationResponse
400

Invalid input request.

Error
401

Unauthorized.

Error
403

Resource forbidden.

Error
404

Resource not found.

Error
500

Internal server error.

Error

Schemas​

Event​

Type: object

5 properties
NameTypeRequiredDescription
eventNamestringYes
eventSchemastringYes
displayNamestring
categorystring
publishbooleanYes

EventsList​

Type: array of Event

EventProperty​

Type: object

2 properties
NameTypeRequiredDescription
keystringYes
valueobjectYes

EventConfigurationObject​

Type: object

2 properties
NameTypeRequiredDescription
publishbooleanYes
propertiesarray of EventPropertyYes

EventConfigurationResponse​

Type: object

5 properties
NameTypeRequiredDescription
eventSchemastringYes
categorystringYes
displayNamestringYes
publishbooleanYes
propertiesarray of EventPropertyYes

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring
traceIdstring

Was this page helpful?