Overview
This guide explains how to set up incoming webhooks for your integration. The process involves the following steps:
1234.https://api.platform.openintegrationhub.com/webhooks/{flowId}To retrieve the active flows for your users, perform a GET request to the endpoint:
<aside>
GET https://api.platform.openintegrationhub.com/flows
</aside>
Query Params
| Parameter | Type | Description |
|---|---|---|
page[size] |
integer | Amount of flows per page returned. Default is 10. |
page[number] |
integer | Number of the page to be returned. Default is 1. |
filter[status] |
string | Filter results by flow status. Accepts either string ('active' and 'inactive') or integer (1 or 0) |
The response will include a list of flows, each associated with a flow id and a user id. For example:
{
"data": [
.....
{
"id": "6762e154616e91cb8d8b1aaf",
"owners": [
{
"id": "636d0762bd257a7eb2373d6c",
"type": "user"
},
{
"id": "636d0762bd257a7eb2373d6a",
"type": "tenant"
}
]
}
]
}
id field (e.g., 6762e154616e91cb8d8b1aaf) at the top level of each flow object.id field in the owners array where type is user (e.g., 636d0762bd257a7eb2373d6c).Use these values to identify the flow and its associated user.
The user ID from the previous response is the internal ID used by FlowMate and may differ from the user ID your system recognizes. To retrieve the username (which corresponds to the user ID in your system), perform a GET request to the endpoint:
<aside>
GET https://api.platform.openintegrationhub.com/users/
</aside>
The response will include the user's details, such as:
Response:
{
"_id": "636d0762bd257a7eb2373d6c",
"username": "your-userId",
"status": "ACTIVE",
"confirmed": true,
"canLogin": false,
"tenant": "61233456678764",
"roles": [],
"permissions": [
"flows.read",
"tenant.flows.update",
"flows.update",
"flows.delete",
"flows.control",
"icenter.read",
"icenter.write",
"secrets.create",
"secrets.read",
"secrets.delete",
"templates.read",
"components.read",
"components.write"
],
"createdAt": "2023-11-09T20:46:58.652Z",
"updatedAt": "2023-11-09T20:46:58.652Z",
"__v": 0,
"safeguard": {
"failedLoginAttempts": 0,
"lastLogin": "2024-12-30T13:30:27.529Z"
}
}
Within your system’s webhook functionality, create and configure a webhook to send relevant data as a POST request to the webhook url using the user’s flow ID:
<aside>
POST https://api.platform.openintegrationhub.com/webhooks/{flowId}
</aside>
You can send payload data via POST request using JSON in the request body, which will then be processed in the flow.