Skip to main content

Guardrails API

As part of the WhyLabs Secure solution, the Guardrails API is a RESTful API that allows you to interact with the WhyLabs Guardrails service. You can interact with the WhyLabs Guardrails API through HTTP requests to the available endpoints in any language.

The API is deployed inside customer's VPC and connects with the WhyLabs API for pulling the policy and pushing metrics and traces.

Available endpoints

Working with the WhyLabs GuardRails API is as simple as making an HTTP request to any of the endpoints below:

  • /log/llm: Evaluate and log a single prompt/response pair using langkit asynchronously.
  • /evaluate: Evaluate and log a single prompt/response pair using langkit.
  • /list_metrics: Get a list of available metrics that can be referenced in policies.
  • /debug/evaluate: Evaluate and log a single prompt/response pair against a policy file.

More details about each endpoint and any additional request or response parameters are available in the documentation for each endpoint.

Prefooter Illustration Mobile
Run AI With Certainty
Get started for free
Prefooter Illustration