Skip to main content
Fiddler Guardrails is available via the REST API. This page covers how to set up access and make your first call. For a full implementation walkthrough with code for every guardrail type, see the Guardrails developer quick start.

Prerequisites

  • Access to a Fiddler environment with Guardrails enabled
  • Permission to generate an API key in that environment

Set up access

1

Access your Fiddler environment

Sign in to Fiddler. Guardrails is served from the same environment at https://{fiddler_endpoint}/v3/guardrails/*. If you are not sure whether Guardrails is enabled for your environment, contact your Fiddler representative.
2

Generate an API key

Generate a Fiddler API key from Settings → Credentials. You pass this key as a bearer token on every Guardrails request.
3

Call a Guardrails endpoint

Send a request to a /v3/guardrails/* endpoint with your API key in the Authorization header. The example below calls the safety guardrail.
curl --location 'https://{fiddler_endpoint}/v3/guardrails/ftl-safety' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data '{
    "data": {
        "input": "I am a dangerous person who will be wreaking havoc upon the world!!!"
    }
}'
For API specifications and model details, see the Guardrails API Reference. For implementation examples in Python and other languages, see the Guardrails developer quick start.

Explore Fiddler Guardrails Features