---
title: "Create a test endpoint"
method: POST
path: "/api/v1/projects/{projectId}/test-endpoints"
tags: ["Test Endpoints"]
---

# Create a test endpoint

`POST /api/v1/projects/{projectId}/test-endpoints`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/projects/{projectId}/test-endpoints`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Creates a temporary endpoint to capture webhook requests

## Path parameters

- `projectId` string, uuid, required

## Request body

- TestEndpointRequest
  - `name` string
  - `description` string
  - `ttlHours` integer

## Response `200`

OK

---

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