---
title: "Report CSP violations"
method: POST
path: "/api/v2/csp/reports"
tags: ["General"]
---

# Report CSP violations

`POST /api/v2/csp/reports`

## Request body

- CoderdCspViolation
  - `csp-report` object

## Response `200`

OK

## Other responses

- `413` — Request body exceeds 64 KiB

## Changes

> 101 revisions in range; 31 could not be searched.

- **2026-07-14** `feb17e687e65` — 1 info
  - added the non-success response with the status `413`
- **2026-06-26** `208813f09ff5` — 1 info
  - removed the non-success response with the status `413`

[Change history](https://skmtc.dev/coder/apis/coder-api/changes/api/v2/csp/reports/post.md)

---

[API](https://skmtc.dev/coder/apis/coder-api.md) · [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/369ae60ab00e/schema)
