---
title: "Create sensitive trace endpoint"
method: POST
path: "/sensitive-trace-endpoints"
tags: ["Sensitive Trace Endpoints"]
---

# Create sensitive trace endpoint

`POST /sensitive-trace-endpoints`

Add a new sensitive trace endpoint.

## Request body

- CreateSensitiveTraceEndpointRequest
  - `sensitive_trace_endpoint` SensitiveTraceEndpointOptions, required
    - `name` string, required — The name of the sensitive trace endpoint.
    - `description` string — Optional description of the sensitive trace endpoint.
    - `url` string, required — The URL to send the sensitive trace to.
    - `header_template` string — Optional template for the headers to send with the sensitive trace. If left empty default headers will be sent.
    - `secret` string — Optional secret to authenticate the sensitive trace endpoint.
    - `body_template` string — Optional template for the body to send with the sensitive trace. If left empty default body will be sent.

## Response `200`

OK

- object
  - `status` 'success', required
  - `data` CreateSensitiveTraceEndpointResponse, required
    - `sensitive_trace_endpoint` SensitiveTraceEndpointResource, required
      - `id` string, required
      - `name` string, required
      - `description` string
      - `url` string, required
      - `header_template` string
      - `body_template` string
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
  - `message` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/prequel/apis/prequel-data-export.md) · [All operations](https://skmtc.dev/prequel/apis/prequel-data-export/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prequel/prequel-data-export/revisions/09c662a871f8/schema)
