List Guardrail Providers
GET /guardrails/providers
GET /guardrails/providersInteractive request editor loads with JavaScript.
Authorization
BearerAdminToken AuthorizationBearer <token>
Organization-scoped admin token. Read operations require a valid token, and write operations require a token with write permission.
In: header
Response Body
application/json
application/json
curl -X GET "$AISIX_CP/guardrails/providers" \ -H "Authorization: Bearer $AISIX_TOKEN"OK
{
"data": [
{
"kind": "azure_content_safety",
"family": "api",
"provider": "azure",
"check_type": "content_moderation",
"label": "Azure AI Content Safety",
"description": "Moderate prompts and model responses with Azure AI Content Safety.",
"hook_points": [
"input",
"output"
],
"has_schema": true,
"supports_test_connection": true
}
]
}Missing or invalid bearer.
{
"error": {
"code": "UNAUTHENTICATED",
"message": "no org context"
}
}Complete operation details and schema variants
GET /guardrails/providers
List Guardrail Providers
Catalog of guardrail providers and their kinds. Read-only metadata used by the dashboard's guardrail form; the response shape is catalog-driven.
Parameters
Responses
-
200: OK -
401: Missing or invalid bearer. -
error(object, required): Error details. -
error.code(string, required): Machine-readable identifier. Examples:UNAUTHENTICATED,INVALID_REQUEST,MASTER_KEY_UNSET,INTERNAL. -
error.message(string, required): Human-readable explanation; safe to surface to operators.
cURL
curl -X GET '$AISIX_CP/guardrails/providers' -H 'Authorization: Bearer $AISIX_TOKEN'