In this section, you will learn how to configure webhooks for events that occur within the portal.
Webhooks enable asynchronous integration with the portal by notifying third-party software about an event that has occurred.
This feature facilitates the implementation of complex business logic when the portal is integrated with third-party systems such as CRMs and ITSM systems.
Typical use cases for the webhooks include:
An asynchronous approval that occurs externally (e.g., in a third-party CRM, ITSM, or another system managing approvals). In this scenario, an access request (such as an API product access request, an organization registration request, or a new developer profile in an inactive state) is created in the portal. The portal then informs the third-party system by calling a registered webhook.
A follow-up action that needs to occur after a specific event in the portal. For example, after a developer profile is created, the customer must create a billing profile in their internal billing system (or a profile in a third-party billing engine such as Moesif, Lago, or a similar service) to automatically update and add this information into custom attributes.
Configure connectivity to the target endpoint by specify the Target URL, HTTP method, timeout, and request headers.
Select types of events that should be sent to the target endpoint.
Configure the Target EndpointEach webhook delivers events to the Target URL via the specified HTTP Method. Additionally, it’s possible to configure timeout header for requests.Finally, for each webhook it’s possible to define HTTP headers that should be used for requests to the target URL via the Headers section.
To add a new header, click on the Add Headers button, specify Name and Value of the header.Note that you can test connectivity to the Target URL by clicking on the Test Connection button.
For testing connectivity, the portal sends a HEAD request to the specified target endpoint.
Please note that the connectivity is tested only with the HEAD method, and the test call does not include any headers defined in the Headers section.Once the target endpoint is configured, proceed to the next section to select the types of events that should be sent to that endpoint.
Select Event Types for the WebhookTo finish configuration, select types of events that should be sent to the Target URL and save the changes. Refer the docs below to know more about supported event types
This event is fired whenever a new user is created via APIs, the admin UI, and the live portal UI (SSO or invite though the org dashboard or self-registration or invite code).Sample payload:
This event is fired whenever a new app is created via APIs, and the live portal UI (either via the checkout or the create app button in the developer’s dashboard).Sample payload:
This event is fired whenever a new consumer organization is created via the admin APIs, the live portal (the become an organization flow) or the admin UI.Sample payload:
This event is fired whenever a new organization request is created via the live portal (the become an organization flow) or the admin UI.Sample payload:
Copy
Ask AI
{ "Event": "OrganisationRequestCreated", "Message": { "Name": "Organisation added from Live Portal (the become an org flow)", "AdminEmail": "dev@tyk.io", "AdminID": 3, "ByUser": 3, "TeamIDs": [], "Status": "pending", "CreatedAt": "2024-04-18T16:13:50.766139+02:00" }, "Timestamp": "2024-04-18T16:13:50.796234+02:00"}