Your suggested change has been received. Thank you.
Download OpenAPI specification:Download
API to access events generated by iWelcome. About the structure of the events The events are designed to allow for easy querying to do data analysis and reporting. event types and event categories
Several event types have been defined and each event_type is assigned to an event category. Both event types are listed below as 'schemas' having a 3-digit number, e.g. 507 OTP SMS sent. The event categories are listed as well, e.g. 5XX for Communication events. Note that a 'fake' event type 000 is defined in this specification that includes any data that may appear as event-data in any of the supported events. event data The design of the schemas for the events have as much 'common' event-attributes as possible. The schema for each event_type is a sub-set ('sub-schema' ) of the fake 000 event. The 000-event can be considered as the meta-schema for all events. The design of the event meta-schema aims at finding the right balance between the following (somewhat conflicting) principles:
Each added event is validated against the json-schema and MUST have the event_type-id no events can be posted that have: * event_type_id < 10000 (so an external application cannot post our native events) * event-category equal to one of our categories. * if a posted event has attributes that matches the default event metadata schema, they are validated against our validation-rules for such fields, see yAML. * Any event-attribute that is not in the json-schema is ignored; the event does not get rejected.
Authorization required | string Bearer |
property name* additional property | object |
{- "property1": { },
- "property2": { }
}
{- "property1": { },
- "property2": { }
}
API to query events, typically to display on a timeline in either a self-service application or user management application. The endpoint is protected * event:event:consumer
; when this scope is used any user's events can be returned (dependent on filtering)
user_id | string The user id for which to query the events. When an authenticated user asks for his own events he needs to specify his own |
filter | string Filtering query that allows to filter on which events are returned. The following filter criteria are supported:
Multiple filter criteria can be used, using the AND / OR operators. |
page | integer >= 1 Default: 1 Pagination parameter indicating which page must be returned, |
size | integer [ 1 .. 100 ] Default: 20 Pagination parameter indicating the number of results per page that is returned. |
Authorization required | string Bearer |
{- "event_type_id": "000",
- "event_type_details": {
- "category": "fake events",
- "name": "fake event"
}, - "timestamp": "2018-11-14T14:55:22Z",
- "device": {
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",
- "os": "Mac OS X 10_14_2",
- "browser": "Chrome",
- "browser_version": "71.0.3578.98"
}, - "end_user": {
- "id": "98127d312d484a86a18e37b0ca404bb4",
- "external_id": "ongo-customer-id-0123456789",
- "segment": "ongo-bikes"
}, - "authenticated_user": {
- "id": "5a377494075648679e37a02a86992e84",
- "segment": "employees"
}, - "location": {
- "ip": "172.18.0.1"
}, - "client_application": {
- "client_id": "s6BhdRkqt3",
- "client_name": "DUMS"
}, - "iwelcome_as_a_client_application": {
- "client_id": "sfjsdfsfj",
- "client_name": "Ongo IDaaS"
}, - "authentication": {
- "requested_acr": "2FAPasswordProtectedTransportAndOtpPerSMS",
- "acr": "2FAPreviousSessionAndOtpPerSMS",
- "amr_list": [
- "Facebook",
- "delegated",
- "sms"
]
}, - "identifier_value": "somebody@somewhere.com",
- "application_session": {
- "scopes": [
- "x",
- "y"
], - "session_expiry": "2018-11-11T15:03:00Z"
}, - "block": {
- "reason": "System generated reason",
- "date_added": "2018-10-01T09:10:14Z",
- "date_removed": "2018-10-21T17:58:53Z"
}, - "message_details": {
- "date_sent": "2017-06-01Z",
- "sent_to": "somebody@somewhere.com",
- "sent_from": "Ongo-bikes<noreply@ong-bikes.com>",
- "subject": "Reset the password for your account at ongo-bikes"
}, - "email_template": {
- "template_name": "passwordResetEmail",
- "description": "Email template to send an email containing a password reset link",
- "subject": "Reset the password for your account at ${segment}",
- "locale": "en_GB",
- "segment": "ongo-bikes",
- "brand": "ongo-bikes-2015-style"
}, - "sms_template": {
- "body": "Your login-code is ${OTP}",
- "locale": "en_GB",
- "segment": "ongo-bikes",
- "brand": "ongo-bikes-2015-style"
}, - "phone_number": "+31612345678",
- "profile_attribute": {
- "label": "phoneNumbers",
- "external_label": "phone_number",
- "value": "+31612345678",
- "previous_value": "+31687654321"
}, - "processing_purpose": {
- "id": "12345",
- "description": {
- "locale": "en_GB",
- "description": "to manage your account"
}, - "attribute_name": "emails",
- "data_controller": "Ongo Bikes Ltd."
}, - "protocol": "OAuth",
- "amr": "pwd",
- "username": "Johnny1995",
- "previous_state": "INACTIVE",
- "new_state": "ACTIVE",
- "count": 1,
- "group": {
- "id": "f480b020-61f5-478b-aa75-ec0c8b0dbba3",
- "display_name": "Office365 users"
}, - "sub_group": {
- "id": "c68b2d3f-ffc4-4751-874c-cc1ab224a87f",
- "display_name": "Office365 administrators"
}
}