---
title: "Create debug link"
method: POST
path: "/api/v1/projects/{projectId}/events/{eventId}/debug-links"
tags: ["Debug Links"]
---

# Create debug link

`POST /api/v1/projects/{projectId}/events/{eventId}/debug-links`

## Request

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

Creates a shareable link for an event with sanitized payload

## Path parameters

- `projectId` string, uuid, required
- `eventId` string, uuid, required

## Request body

- SharedDebugLinkRequest
  - `expiryHours` integer

## Response `201`

Link created

---

[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)
