Manage Webhooks
Required Immuta permission: GOVERNANCE
Webhook configuration
With the UI
Navigate to the Webhooks page.
Click New webhook.
Enter the Webhook URL to send the webhook to.
Opt to enter a Secret.
If necessary, disable TLS verification with the toggle. Disabling is not recommended.
Click Save.
With the API
Ensure you set the correct global segment and use a Marketplace-specific personal access token (PAT) when using the Marketplace API. See the Marketplace API docs for additional guidance or to download the OpenAPI YAML for your own client generation.
POST /marketplace/api/notification/webhook HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"recipient": {
"url": "https://example.com",
"verifyTls": true,
"signingKey": "text"
}
}
{
"recipient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://example.com",
"verifyTls": true,
"suppressed": false,
"signingKeySet": false
}
}
Test the webhook
With the UI
To send a test webhook to all your configured webhooks,
Navigate to the Webhooks page.
Click Test webhook in the actions column of any webhook. It will send out a test payload to all the configured webhooks.
With the API
Ensure you set the correct global segment and use a Marketplace-specific personal access token (PAT) when using the Marketplace API. See the Marketplace API docs for additional guidance or to download the OpenAPI YAML for your own client generation.
true
POST /marketplace/api/notification/webhook/test HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"url": "https://example.com",
"verifyTls": true,
"signingKey": "text"
}
{
"status": "UNSPECIFIED",
"httpStatusCode": 1,
"errorMessage": "text"
}
Reset a webhook secret
If you lose or forget the secret you set in a webhook, you can reset it.
Update integrations
Any integrations using the old secret must be updated once you reset it.
With the UI
Navigate to the Webhooks page.
Click the webhook you want to edit, which will open the side-sheet.
Click Reset secret.
With the API
Ensure you set the correct global segment and use a Marketplace-specific personal access token (PAT) when using the Marketplace API. See the Marketplace API docs for additional guidance or to download the OpenAPI YAML for your own client generation.
true
false
PUT /marketplace/api/notification/webhook/{id} HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"url": "https://example.com",
"verifyTls": true,
"signingKey": "text",
"suppressed": false
}
{
"recipient": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://example.com",
"verifyTls": true,
"suppressed": false,
"signingKeySet": false
}
}
Delete webhook
With the UI
Navigate to the Webhooks page.
Click the webhook you want to delete, which will open the side-sheet.
Click Delete, and then Delete again.
With the API
Ensure you set the correct global segment and use a Marketplace-specific personal access token (PAT) when using the Marketplace API. See the Marketplace API docs for additional guidance or to download the OpenAPI YAML for your own client generation.
No content
DELETE /marketplace/api/notification/webhook/{id} HTTP/1.1
Host: na.api.immutacloud.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?