---
title: "Test Escalation Config"
method: POST
path: "/api/escalation-config/{id}/test"
tags: ["Escalation Config"]
---

# Test Escalation Config

`POST /api/escalation-config/{id}/test`

## Request

- Base URL: `https://uptimeify.io`
- URL: `https://uptimeify.io/api/escalation-config/{id}/test`
- Auth: HTTP bearer

POST /api/escalation-config/:id/test

## Path parameters

- `id` string, required

## Request body

- object
  - `type` 'webhook' | 'pagerduty' | 'pushover': Default webhook.
  - `config` object: pagerduty: routingKey; pushover: userKey and apiToken.
  - `webhookUrl` string: Defaults to the saved URL; stored headers only travel to the saved URL.
  - `webhookMethod` 'POST' | 'PUT' | 'PATCH'
  - `webhookHeaders` object
  - `webhookBodyTemplate` string
  - `webhookTimeout` integer
  - `expectedStatusCodes` string

## Response `200`

Successful response

- object: A failed delivery is 400 webhookTestFailed. webhookHeaders go through the same block list as on PATCH (400 webhookHostHeaderForbidden / invalidRequestBody).
  - `success` true, required
  - `statusCode` integer: Webhook only.
  - `message` string, required

## Other responses

- `400`: Invalid or missing parameters.
- `401`: Missing, invalid or expired API token.
- `404`: No such resource, or not visible to this token.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api.md) · [All operations](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/revisions/2129a771ee7e?raw)
