List Guardrail Configurations
Use the /v1/rails/configs endpoint to retrieve the list of available guardrails configurations from the server.
Request
Response
The endpoint returns an array of configuration objects, each with an id field:
Using Python
Example output:
Use a Configuration
After retrieving the available configurations, use a configuration ID in your chat requests:
How Configurations Are Discovered
The server discovers configurations based on how it was started:
Multi-config mode (default): The server scans the configuration directory for sub-folders containing a config.yml or config.yaml file.
Each sub-folder becomes an available configuration with its folder name as the ID.
Single-config mode: If the server is pointed to a folder containing a config.yml file directly (not in sub-folders), only that configuration is available.
The folder name becomes the configuration ID.
The endpoint returns: