API Documentation
- Introduction
- Knowledge Base
- Connectors
- Generative
- Assets
- LLMs
- User
- Agents
- Guardrails
- Execution layers
Guardrails
Post Create Guard Rail
Create GuardRail.
POST
/
guard-rails
Copy
curl --request POST \
--url https://app.docs.bynesoft.com/api/users/guard-rails \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"sourceFabric": {
"name": "promptInjectionValidator",
"config": {
"kb": "<string>",
"cosineSimilarityScoreThreshold": 0
}
},
"responseBlocking": true
}'
Copy
{
"id": "<string>",
"name": "<string>",
"dateCreated": "<string>"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Copy
curl --request POST \
--url https://app.docs.bynesoft.com/api/users/guard-rails \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"sourceFabric": {
"name": "promptInjectionValidator",
"config": {
"kb": "<string>",
"cosineSimilarityScoreThreshold": 0
}
},
"responseBlocking": true
}'
Copy
{
"id": "<string>",
"name": "<string>",
"dateCreated": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.