---
title: "Send a test event"
method: POST
path: "/webhook/test"
tags: ["Webhooks"]
---

# Send a test event

`POST /webhook/test`

## Request

- Base URL: `https://apisign.io/api`
- URL: `https://apisign.io/api/webhook/test`
- Auth: API key in header `x-api-key`

Send a sample `contract_signed` payload (with `test: true`) to the webhook URL and return the result.

## Request body

- object
  - `id` string, required: Webhook ID

## Response `200`

Test result

- object
  - `success` boolean
  - `durationMs` integer
  - `responseCode` integer, nullable
  - `responseBody` string, nullable: First 1000 characters of the response
  - `errorMessage` string, nullable
  - `payload` object
  - `headers` object

## Other responses

- `400`: Invalid request, or the action is not allowed in the resource's current state
- `401`: Missing, invalid, expired or deleted API key. Body: `{ "error": "Unauthorized" }`
- `404`: Resource not found in this organization
- `500`: Internal server error (also returned for a request body that is not valid JSON)

---

[API](https://skmtc.dev/apisign/apis/api-sign-api.md) · [All operations](https://skmtc.dev/apisign/apis/api-sign-api/llms.txt) · [OpenAPI document](https://skmtc.dev/apisign/apis/api-sign-api/revisions/fa21d8adbc69?raw)
