Hub APIhub-api reference
Create a guardrail rule (admin only)
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v1/orgs/{orgId}/guardrails" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "type": "semantic_consistency", "config": { "property1": null, "property2": null }, "actions": { "onTrigger": "retry" } }'Empty
Empty
Empty