New: Webhook guardrails, proxy retry/fallback config, and savings calculator are live. See what's new →
cURL
curl --request POST \ --url https://api.promptguard.dev/api/v1/agent/{agent_id}/rotate-credential \ --header 'X-API-Key: <api-key>'
{ "agent_id": "<string>", "new_secret": "<string>", "credential_prefix": "<string>", "old_credential_revoked": true }
Revoke the current credential and issue a new one.
PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.
Successful Response
Response from credential rotation.