cURL
curl --request POST \ --url https://api.promptguard.dev/api/v1/messages \ --header 'Authorization: Bearer <token>'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Proxy Anthropic-style messages endpoint through policy engine.
This endpoint accepts requests from native Anthropic SDK (messages.create()). It routes through the same handler as /chat/completions, and providers handle endpoint mapping internally.
API Key authentication for developer endpoints (/api/v1/*). Use format: 'Bearer pg_api_your_key_here'
Successful Response