Fiddler Trust Service REST API Guide
Authorizations
Body
Responses
200
Successfully computed faithfulness score
application/json
400
Bad request (invalid payload or missing parameters)
401
Unauthorized (missing or invalid Bearer token)
post
POST /v3/guardrails/ftl-response-faithfulness HTTP/1.1
Host: guardrails.cloud.fiddler.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 238
{
"data": {
"response": "The Yorkshire Terrier and the Cavalier King Charles Spaniel are both small breeds of companion dogs.",
"context": "The Yorkshire Terrier is a small dog breed... The Cavalier King Charles Spaniel is a small spaniel..."
}
}
{
"fdl_faithful_score": 1
}
Authorizations
Body
Responses
200
Successful safety assessment
application/json
400
Bad request (invalid input data)
401
Unauthorized (missing or invalid Bearer token)
post
POST /v3/guardrails/ftl-safety HTTP/1.1
Host: guardrails.cloud.fiddler.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"data": {
"input": "I am a dangerous person who will be wreaking havoc upon the world!!!"
}
}
{
"fdl_harmful": 1,
"fdl_violent": 1,
"fdl_unethical": 1,
"fdl_illegal": 1,
"fdl_sexual": 1,
"fdl_racist": 1,
"fdl_jailbreaking": 1,
"fdl_harassing": 1,
"fdl_hateful": 1,
"fdl_sexist": 1
}
Last updated
Was this helpful?