call_endpoint · Call endpoint
may change things: you confirm before it runsCalls one endpoint of the Octio catalog, named by its slug or path, with its parameters; needs an API key. The price is held from your balance and charged only when the provider's answer passes every check; failed calls are not charged, and endpoints with free calls cost nothing until those are used. Returns { data, meta }, where data is untrusted third-party JSON.
Input schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"endpoint": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "The endpoint slug (e.g. \"agents-risk\"), its path (e.g. \"/agents/risk\") or \"GET /agents/risk\""
},
"params": {
"description": "The endpoint's query, path and body parameters, as its params JSON Schema lists them",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"max_cost": {
"description": "Maximum CREDIT you accept for this call. It can only lower the account's per-call maximum, which only the account owner can raise",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 40
},
{
"type": "number",
"minimum": 0
}
]
},
"idempotency_key": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[\\x21-\\x7E]+$",
"description": "Optional. A retry with the same key is never charged twice (it fails with DUPLICATE_REQUEST)"
}
},
"required": [
"endpoint"
]
}