protect
Invoke Protect
Learn how to use the ‘Invoke Protect’ API endpoint in Galileo’s Protect module to process payloads with specified rulesets effectively.
POST
/
v1
/
protect
/
invoke
curl --request POST \
--url https://api.acme.rungalileo.io/v1/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
}
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.acme.rungalileo.io/v1/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
}
}
Assistant
Responses are generated using AI and may contain mistakes.