Webhooks configuration

Client Webhook Endpoints

Post a new webhook

Important: You can have all the webhooks that you need, even if it is the same action.

POST https://app.insurehero.io/api/shield/v1/webhooks

Headers

Request Body

ActionType

Types of responses

{
    "data": {
        "id": "87ff8ad7-ccd8-4634-b4cc-e20ae1492e8e",
        "created_at": "2024-08-12T15:00:09.332662+00:00",
        "channel_id": "fc94d4a1-f834-481d-a6b2-138b823389c8",
        "url": "https://eolt6awifrdystu.m.pipedream.net",
        "table": "risk_items",
        "action": "POST"
    }
}

Delete a webhook

DELETE https://app.insurehero.io/api/shield/v1/webhooks/:webhookId

Headers

Path Parameters

Types of responses

{
    "data": "Webhook deleted sucesfully"
}

Get the data of all the webhooks

GET https://app.insurehero.io/api/shield/v1/webhooks

Headers

Query Params

Types of responses

{
    "data": [
        {
            "id": "eb460600-9162-414e-b657-bd2e48e200d5",
            "created_at": "2024-08-08T21:02:24.588648+00:00",
            "channel_id": "fc94d4a1-f834-481d-a6b2-138b823389c8",
            "url": "wwww.example.com",
            "table": "claims",
            "action": "POST"
        },
        {
            "id": "95a106bd-2aaf-4c30-add4-90b16cf8a8ad",
            "created_at": "2024-08-12T14:32:50.880461+00:00",
            "channel_id": "fc94d4a1-f834-481d-a6b2-138b823389c8",
            "url": "wwww.example.com",
            "table": "risk_items",
            "action": "POST"
        }
    ]
}

Get the data of a webhooks

GET https://app.insurehero.io/api/shield/v1/webhooks/:webhookId

Headers

Path Parameters

Types of responses

{
    "data": {
        "id": "eb460600-9162-414e-b657-bd2e48e200d5",
        "created_at": "2024-08-08T21:02:24.588648+00:00",
        "channel_id": "fc94d4a1-f834-481d-a6b2-138b823389c8",
        "url": "wwww.example.com",
        "table": "claims",
        "action": "POST"
    }
}

Last updated