---
title: "Test endpoint"
method: POST
path: "/api/e2/endpoints/{id}/test"
tags: ["Endpoints"]
---

# Test endpoint

`POST /api/e2/endpoints/{id}/test`

Test an endpoint by sending a test payload. For webhooks, supports inbound, discord, and slack formats. For email endpoints, simulates the forwarding process.

## Path parameters

- `id` string, required

## Request body

- object
  - `webhookFormat` 'inbound' | 'discord' | 'slack'
  - `overrideUrl` string

## Response `200`

Response for status 200

- object
  - `success` boolean, required
  - `message` string, required
  - `responseTime` number, required
  - `statusCode` number
  - `responseBody` string
  - `error` string
  - `testPayload` unknown
  - `webhookFormat` 'inbound' | 'discord' | 'slack'
  - `urlTested` string

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `404` — Response for status 404
- `500` — Response for status 500

---

[API](https://skmtc.dev/stainless-api/apis/inbound-email-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/inbound-email-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stainless-api/inbound-email-api/revisions/e279d3cb940b/schema)
