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/register \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "agent_name": "<string>", "allowed_tools": [ "<string>" ] } '
{ "agent_id": "<string>", "agent_name": "<string>", "agent_secret": "<string>", "credential_prefix": "<string>" }
Register a new agent and return a one-time-visible credential.
PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.
Request to register a new agent identity.
Successful Response
Response from agent registration — secret is shown only once.