Tools API
161 of 184 tools can be called from code, with the same engines the pages use. One request shape for all of them; long work runs as a job you can follow.
At a glance
The six calls behind every tool. Rate limits are the anonymous allowance; signing in or using a token raises it, and a tool's cost counts against the limit.
| Endpoint | Purpose | Auth | Rate limit | Example |
|---|---|---|---|---|
POST /api/v1/tools/{id}/run | Run a tool inline; long work answers with a job. A tool people made (an mtl_ id) runs here too | Anonymous; session or token for file jobs and made tools | 120/min · 5,000/day | curl -X POST https://openvibe.tools/api/v1/tools/fancy/run |
POST /api/v1/tools/{id}/triggers | Run any tool every hour, every day or from a private link (a webhook), with a fixed input | Signed in: your own triggers | 120/min | curl -X POST https://openvibe.tools/api/v1/tools/dns/triggers -d '{"kind":"schedule","every":"day","at":"09:00","input":{"target":"example.com"}}' |
GET /api/v1/me/triggers | Every schedule and private link you have, on any tool | Signed in | 120/min | curl https://openvibe.tools/api/v1/me/triggers |
GET /api/v1/tools | List every tool with its inputs, limits and access | Public | 120/min | curl https://openvibe.tools/api/v1/tools?api=true |
GET /api/v1/tools/{id}/schema | JSON Schema for a tool's input and output | Public | 120/min | curl https://openvibe.tools/api/v1/tools/fancy/schema |
POST /api/v1/jobs | Start a long job with files and follow it | Session or token for file jobs | 60/min · 1,500/day | curl -X POST https://openvibe.tools/api/v1/jobs |
GET /api/v1/jobs/{id}/events | Follow one job as server-sent events | The job's owner | 120/min | curl -N https://openvibe.tools/api/v1/jobs/{id}/events |
GET /api/v1/jobs/{id}/files/{n} | Download a finished job's result file | The job's owner | 120/min | curl -O https://openvibe.tools/api/v1/jobs/{id}/files/0 |
Over a limit is 429 with Retry-After; every answer also carries RateLimit-* headers. Errors are RFC 9457 problems with a stable code.
Discover
Every tool is described by a machine-readable descriptor (inputs as JSON Schema, file limits, how it runs, who may call it).
- /api/v1/tools: the registry (filter with
?family=,?q=,?api=true) /api/v1/tools/{id}and/api/v1/tools/{id}/schema: one tool- /api/v1/openapi.json: OpenAPI 3.1, generated from the descriptors
- /api/v1/tools/popular: the tools people use most over the last seven days, and /api/v1/tools/trending: the ones whose use is rising (
?window=hourorweek)
Run a tool
curl -X POST https://openvibe.tools/api/v1/tools/jsonminify/run \
-H 'Content-Type: application/json' \
-d '{"input":{"text":"{ \"a\": 1 }"}}'
# returns {"state":"succeeded","tool":"jsonminify","result":{"text":"{\"a\":1}"},"took_ms":3}
File tools take multipart/form-data (file parts plus an input JSON part). Work that outlasts wait_ms answers 202 with a job: follow it at /api/v1/jobs/{id}/events (server-sent events) and download results from /api/v1/jobs/{id}/files/{n}. Send an Idempotency-Key header to make retries safe.
From JavaScript
const { createClient } = require('openvibe-sdk/core');
const { createToolsClient } = require('openvibe-sdk/tools');
const tools = createToolsClient(createClient({}));
const out = await tools.run('jsonminify', { text: '{ "a": 1 }' });
const job = await tools.run('png', { format: 'png' }, { files: [fileBlob] });
const done = await job.wait(); // any tool, sync or job
The SDK is openvibe-sdk (this site pins v0.67.0). It retries on 429 after Retry-After and generates idempotency keys for you.
Where jobs run
Send X-Tools-Prefer: auto, home or host on a run request. host keeps work on the host. home is advisory and respects the owner's routing order. Worker routing is off until the owner enables it. URL-fetching jobs always stay on the host.
File jobs can use an eligible worker, ranked by the owner's order, free slots and recent latency. A disconnected job gets one retry elsewhere; without a worker, the host runs it.
Read result.data.execution on a completed job, or error.execution on failure/cancellation: worker id, location, total execution milliseconds and each attempt. Poll the same job with tools.jobs.get(id).
const run = await tools.run('png', {}, { files: [fileBlob], prefer: 'host' });
const done = await run.wait();
const job = await tools.jobs.get(done.job.id);
job.result.data.execution;
The prefer SDK option is staged for the next SDK release. Until that release, send the HTTP header directly. The OpenAPI document includes the header and receipt schema.
Access and limits
- Anonymous: most tools, on the lowest quota tier, per address. Tools that handle files people should not share anonymously (audio, PDF) need a browser session or a token.
- Apps and services: a token from OpenVibe.Network for audience
openvibe.toolswithtools.tool.run(developer sandbox apps get it by default) raises the tier. - Network probes (port checks, ping, latency) need
tools.net.probe, granted to partners only. The YouTube downloader has no API. - Every answer carries
RateLimit-*headers; over the limit is 429 withRetry-After. Errors are RFC 9457 problems with a stablecode.
One account works on every site. Open source and community-run.