Endpoints

POST /v1/execute

Let ToolPlexer pick a provider for a capability. Billed.

Pass a task. ToolPlexer routes across the catalog (quality, price, availability) and runs the chosen endpoint. Same billing as run.

The response is 200 when the selected tool completes inline, or 202 with a runId when the selected tool is asynchronous. Poll GET /v1/runs/get until a terminal status.

Request

POST /v1/execute

Headers

HeaderRequiredDescription
AuthorizationYesBearer <api-key>
Content-TypeYesapplication/json

Body

FieldTypeRequiredDescription
taskstringYesCapability, e.g. "web search"
inputobjectNoPassed to the chosen tool. If omitted, { query: task } is used.

Example

curl -X POST https://api.toolplexer.com/v1/execute \
  -H "Authorization: Bearer tpl_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "task": "web search",
    "input": { "query": "AI agent tooling", "maxResults": 5 }
  }'

Response

Same fields as run, plus:

{
  "selected": {
    "provider": "exa",
    "endpoint": "/search",
    "name": "Exa Search",
    "reason": "best available match for this task"
  }
}

503

No configured tool can serve the task.

On this page