guardrails

Register Guardrail

Register a guardrail for onboarding (team submission).

Accepts a guardrail config in the Generic Guardrail API format. The submission is stored with status pending_review until an admin approves it.

post/guardrails/register

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/guardrails/register
  • Auth: API key in header x-litellm-api-key

Request body

guardrail_infoobject nullable
guardrail_namestring required
litellm_paramsobject required
team_idstring nullable

Response

Successful Response

guardrail_idstring required
guardrail_namestring required
statusstring required
submitted_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.