---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Test Webhook

Test destination connectivity for Teams, Slack, Email, or generic Webhook.

For **teams**, POSTs a test JSON body to **webhook_url** (HTTP webhook / workflow).
For **slack**, sends a test message via the **Slack Web API** using the stored bot token
and **channel_id**—not an outbound POST to a caller-supplied URL. No destination row is
required for that channel; the test only needs a valid Slack integration and channel id.
For **email**, sends a short SMTP test message to the listed addresses.
For **webhook**, POSTs a sample JSON payload to the supplied **webhook_url** with optional
custom **headers**.

- **request** (DestinationTestRequest): Required. The payload that includes:
    - **integration_type** (IntegrationType): `teams`, `slack`, `email`, or `webhook`
    - **webhook_url** (HttpUrl): Required for `teams` and `webhook`. Target URL for the test POST.
    - **integration_id** (UUID): Required for `slack`. Slack integration identifier.
    - **channel_id** (str): Required for `slack`. Slack channel ID.
    - **emails** (List[str]): Required for `email`. Recipient addresses.
    - **headers** (dict[str, str]): Optional for `webhook`. Custom HTTP headers to attach.

Tests connectivity for a Microsoft Teams, Slack, email, or generic webhook destination. For Teams and webhooks it posts a test JSON body to the `webhook_url`; for Slack it sends a test message through the Slack Web API using the stored integration; for email it sends a short test message to the listed addresses.

## When to use it

Use it to confirm alerts will arrive before you create a destination or attach it to a policy.

## Required parameters

* Request body: an object with `integration_type` (`teams`, `slack`, `email`, or `webhook`) and the fields that type needs: `webhook_url` for `teams` and `webhook`, `integration_id` and `channel_id` for `slack`, or `emails` for `email`. `headers` is optional for `webhook`.

## Response

A successful call returns `204 No Content` with an empty body.

**Related:** [Create a destination](https://docs.superwise.ai/reference/create_destination), [Update a destination](https://docs.superwise.ai/reference/update_destination), [List integrations](https://docs.superwise.ai/reference/get_integrations)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/destinations/test": {
      "post": {
        "tags": [
          "Destinations"
        ],
        "summary": "Test Webhook",
        "description": "Test destination connectivity for Teams, Slack, Email, or generic Webhook.\n\nFor **teams**, POSTs a test JSON body to **webhook_url** (HTTP webhook / workflow).\nFor **slack**, sends a test message via the **Slack Web API** using the stored bot token\nand **channel_id**—not an outbound POST to a caller-supplied URL. No destination row is\nrequired for that channel; the test only needs a valid Slack integration and channel id.\nFor **email**, sends a short SMTP test message to the listed addresses.\nFor **webhook**, POSTs a sample JSON payload to the supplied **webhook_url** with optional\ncustom **headers**.\n\n- **request** (DestinationTestRequest): Required. The payload that includes:\n    - **integration_type** (IntegrationType): `teams`, `slack`, `email`, or `webhook`\n    - **webhook_url** (HttpUrl): Required for `teams` and `webhook`. Target URL for the test POST.\n    - **integration_id** (UUID): Required for `slack`. Slack integration identifier.\n    - **channel_id** (str): Required for `slack`. Slack channel ID.\n    - **emails** (List[str]): Required for `email`. Recipient addresses.\n    - **headers** (dict[str, str]): Optional for `webhook`. Custom HTTP headers to attach.",
        "operationId": "test_webhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TeamsDestinationTestRequest"
                  },
                  {
                    "$ref": "#/components/schemas/SlackDestinationTestRequest"
                  },
                  {
                    "$ref": "#/components/schemas/EmailDestinationTestRequest"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookDestinationTestRequest"
                  }
                ],
                "title": "Request",
                "discriminator": {
                  "propertyName": "integration_type",
                  "mapping": {
                    "teams": "#/components/schemas/TeamsDestinationTestRequest",
                    "slack": "#/components/schemas/SlackDestinationTestRequest",
                    "email": "#/components/schemas/EmailDestinationTestRequest",
                    "webhook": "#/components/schemas/WebhookDestinationTestRequest"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Unprocessable Entity"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "EmailDestinationTestRequest": {
        "properties": {
          "integration_type": {
            "type": "string",
            "const": "email",
            "title": "Integration Type"
          },
          "emails": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "minItems": 1,
            "title": "Emails"
          }
        },
        "type": "object",
        "required": [
          "integration_type",
          "emails"
        ],
        "title": "EmailDestinationTestRequest",
        "description": "POST /v1/destinations/test body for Email: POST JSON to emails."
      },
      "SlackDestinationTestRequest": {
        "properties": {
          "integration_type": {
            "type": "string",
            "const": "slack",
            "title": "Integration Type"
          },
          "integration_id": {
            "type": "string",
            "format": "uuid",
            "title": "Integration Id"
          },
          "channel_id": {
            "type": "string",
            "minLength": 1,
            "title": "Channel Id"
          }
        },
        "type": "object",
        "required": [
          "integration_type",
          "integration_id",
          "channel_id"
        ],
        "title": "SlackDestinationTestRequest",
        "description": "POST /v1/destinations/test body for Slack: Web API test using stored bot token\n+ channel."
      },
      "TeamsDestinationTestRequest": {
        "properties": {
          "integration_type": {
            "type": "string",
            "const": "teams",
            "title": "Integration Type"
          },
          "webhook_url": {
            "type": "string",
            "maxLength": 2083,
            "minLength": 1,
            "format": "uri",
            "title": "Webhook Url"
          }
        },
        "type": "object",
        "required": [
          "integration_type",
          "webhook_url"
        ],
        "title": "TeamsDestinationTestRequest",
        "description": "POST /v1/destinations/test body for Teams: POST JSON to a workflow or incoming\nwebhook URL."
      },
      "WebhookDestinationTestRequest": {
        "properties": {
          "integration_type": {
            "type": "string",
            "const": "webhook",
            "title": "Integration Type"
          },
          "webhook_url": {
            "type": "string",
            "maxLength": 2083,
            "minLength": 1,
            "format": "uri",
            "title": "Webhook Url"
          },
          "headers": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Headers"
          }
        },
        "type": "object",
        "required": [
          "integration_type",
          "webhook_url"
        ],
        "title": "WebhookDestinationTestRequest",
        "description": "POST /v1/destinations/test body for Webhook: POST JSON to webhook_url."
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```