Skip to main content
POST
/
api
/
v1
/
proxy
/
chat
/
completions
Proxy Chat Completions
curl --request POST \
  --url https://api.promptguard.dev/api/v1/proxy/chat/completions \
  --header 'X-API-Key: <api-key>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

X-API-Key
string
header
required

PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.

Headers

x-api-key
string | null

Response

Successful Response