Call Prometheux
from Any System
HTTP for every system: a pipeline, a service in any language, an interface you already ship. Run a concept, read the result, stream the agent. The app uses the same endpoints.
Key. Request.
Response.
A key for that system
Issue a named API key, with the expiry you want. Revoke that key later without touching the others.
POST to the rule
Authorization: Bearer to /api/v1 on Prometheux cloud, or to /api/v1 on a host you run yourself.
Read the envelope
JSON responses use status, message and data. The agent streams NDJSON instead: one event per line, as the work happens.
Leave it on a schedule
Or skip the caller. A policy runs the concept on a cron, or when the data changes, and can POST an alert to your webhook.
Any Language
That Speaks HTTP
No client library to wait for. The call is a bearer token, a path and a JSON body.
- Run a concept:
POST /concepts/{id}/run/{name}. Setpersist_outputswhen the next step needs the output stored. - A key per caller: name it after the pipeline or the service. List the live keys and revoke one by itself.
- Python or TypeScript: use the SDK. It makes these same calls and handles streams and errors.
BASE=https://api.prometheux.ai/jarvispy/{organization}/{username}/api/v1
curl -X POST "$BASE/concepts/$ONTOLOGY_ID/run/at_risk" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "persist_outputs": true }'
{
"status": "success",
"message": "Success",
"data": { "total_records": 3 }
}
curl -X POST "$BASE/auth/issue-token" \
-H "Authorization: Bearer $BOOTSTRAP_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "nightly-pipeline", "expires_in_minutes": 43200 }'
curl -N -X POST "$BASE/agent/$ONTOLOGY_ID/chat" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "message": "Which plants are at risk?", "session_id": "job-1" }'
{"type": "tool_start", "data": {"tool": "run_concept"}}
{"type": "content", "data": {"chunk": "Lyon"}}
{"type": "done"}
The Same Operations
as the App
The Prometheux app calls these endpoints. A pipeline, a service or your own interface can call them too.
Run a rule
Execute a concept, page and sort its output, and choose Databricks or Snowflake compute when the workspace has more than one.
Connect data
Register a source, upload a file and read its schema. The data stays where it is stored.
Stream the agent
Multi-turn chat as NDJSON: tool calls, proposals and content, in order, while the turn is still running.
Schedule it
Cron, or a run when data changes. Alerts go to a webhook you own.
One key per system
Name, expiry and revoke are endpoints. A leaked pipeline key does not take the others with it.
Writing the product in Python or TypeScript? The SDK wraps this API.
Who Calls
the API
A step in a job you already run
Airflow, Dagster, a shell script or a notebook in another tool posts to run the concept and reads total_records before the next task.
A service in Java, Go or C#
No library to adopt. HTTP, a bearer token and the response envelope are the whole client.
API reference →An interface you already have
Keep the token on your server. The browser calls you, and you call Prometheux. The frontend guide shows a proxy that streams the agent through.
Frontend guide →A credential per system
Issue nightly-pipeline and payments-service separately. Revoke one when that system is retired.
Questions,
Answered
API, SDK, CLI or MCP?
Use the API when the caller is a system: a pipeline, a service in a language we have no library for, or an interface that must keep the token on a server. Use the SDK for a product written in Python or TypeScript. Use the CLI to move an ontology as files through CI. Use MCP when a model or agent does the asking.
What is the base URL?
https://api.prometheux.ai/jarvispy/{organization}/{username}/api/v1 on Prometheux cloud, or https://<your-host>/api/v1 when you run it yourself.
Can the browser call it?
Cross-origin requests are allowed, but the token must not reach the browser on a public app. Put a proxy on your server that adds the header. The frontend guide is one example.
How long do keys last?
You set it when you issue the key: up to a year, or no expiry. Each key can be listed and revoked on its own.
How do I read a stream?
Agent chat returns NDJSON. Read the body line by line and parse each line. Do not wait for the response to finish. curl -N shows the same frames.
Is this a different platform from the app?
No. The app uses these endpoints. A call you make runs the same concept, on the same data, and returns the same rows.
More Ways to Build
Run a Rule
from a Job You Have
Issue a key named after the caller, and POST to the concept.