Skip to main content
POST https://api.prompt-wall.com/v1/chat/completions Drop-in replacement for OpenAI’s chat-completions endpoint. The request body and response body are byte-identical to OpenAI’s API; the only PromptWall-specific surface lives in the headers.

Request

Required headers

Optional headers (dashboard dimensions)

Body

Identical to OpenAI’s chat.completions.create. Streaming ("stream": true) is fully supported.

Response

On success

Identical to OpenAI’s response, plus two extra response headers:

On block (control modes only)

If a control mode triggers a block, the response is HTTP 200 with an OpenAI-shaped body:
The pw_block.reason field is PromptWall-specific — your app can react explicitly when present, or treat the call as an HTTP 200 content-filter trip if you don’t.

Error responses

Health probe

GET /v1/chat/completions/health (no auth) returns:
Useful for liveness checks that don’t exercise the upstream.