Authorizations
Body
application/json
Protect request schema with custom OpenAPI title.
Response
Successful Response
Protect response schema with custom OpenAPI title.
ℹ️ These docs are for the v2.0 version of Galileo. Documentation for v1.0 version can be found here.
curl --request POST \
--url https://api.galileo.ai/v2/protect/invoke \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"prioritized_rulesets": [
{
"rules": [
{
"metric": "<string>",
"operator": "gt",
"target_value": "<string>"
}
],
"action": {
"type": "OVERRIDE",
"subscriptions": [
{
"statuses": [
"triggered"
],
"url": "<string>"
}
],
"choices": [
"<string>"
]
},
"description": "<string>"
}
],
"payload": {
"input": "<string>",
"output": "<string>"
},
"project_name": "<string>",
"project_id": "<string>",
"stage_name": "<string>",
"stage_id": "<string>",
"stage_version": 123,
"timeout": 300,
"metadata": {},
"headers": {}
}'
{
"status": "<string>",
"text": "<string>",
"trace_metadata": {
"id": "<string>",
"received_at": 123,
"response_at": 123,
"execution_time": 123
}
}
curl --request POST \
--url https://api.galileo.ai/v2/protect/invoke \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"prioritized_rulesets": [
{
"rules": [
{
"metric": "<string>",
"operator": "gt",
"target_value": "<string>"
}
],
"action": {
"type": "OVERRIDE",
"subscriptions": [
{
"statuses": [
"triggered"
],
"url": "<string>"
}
],
"choices": [
"<string>"
]
},
"description": "<string>"
}
],
"payload": {
"input": "<string>",
"output": "<string>"
},
"project_name": "<string>",
"project_id": "<string>",
"stage_name": "<string>",
"stage_id": "<string>",
"stage_version": 123,
"timeout": 300,
"metadata": {},
"headers": {}
}'
{
"status": "<string>",
"text": "<string>",
"trace_metadata": {
"id": "<string>",
"received_at": 123,
"response_at": 123,
"execution_time": 123
}
}
Protect request schema with custom OpenAPI title.
Successful Response
Protect response schema with custom OpenAPI title.
Was this page helpful?