Skip to main content
POST
/
{api_slug}
/
execute
curl --request POST \
  --url https://gateway.apiosk.com/{api_slug}/execute \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "What does Apiosk do?",
  "context": "Apiosk is a pay-per-call API marketplace for agents."
}
'
{
  "result": "<unknown>",
  "cost": 123,
  "latency": 123,
  "operation": "<string>",
  "api": "<string>",
  "upstream_status": 123,
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

Path Parameters

api_slug
string
required

Gateway API slug.

Body

application/json

Either raw JSON for the default operation or an explicit envelope with operation, input, query, and path_params.

operation
string

Optional operation selector. Accepts an operation id, path, or METHOD /path key.

input
any

JSON payload forwarded to the selected operation.

query
object

Optional query override for GET/HEAD or explicit query forwarding.

path_params
object

Optional path parameter replacements for routes containing placeholders.

Response

Wrapped execute response.

status
enum<string>
Available options:
success,
error
result
any
cost
number
latency
integer
operation
string
api
string
upstream_status
integer
error
object