Case Study
How Sella Delivers Scalable Credit Risk Explanations with Prometheux
Read More
Developers / REST API

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.

How it works

Key. Request.
Response.

01

A key for that system

Issue a named API key, with the expiry you want. Revoke that key later without touching the others.

02

POST to the rule

Authorization: Bearer to /api/v1 on Prometheux cloud, or to /api/v1 on a host you run yourself.

03

Read the envelope

JSON responses use status, message and data. The agent streams NDJSON instead: one event per line, as the work happens.

04

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.

The request

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}. Set persist_outputs when 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 }'
Shapes from the API reference. Streaming responses are NDJSON, one JSON object per line. Other responses use the envelope.
What a system can do

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.

What this means for you ⟶

SDKs

Writing the product in Python or TypeScript? The SDK wraps this API.

Callers

Who Calls
the API

Pipeline

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.

Concepts →
Any language

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 →
Your UI

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 →
Keys

A credential per system

Issue nightly-pipeline and payments-service separately. Revoke one when that system is retired.

Authentication →
FAQ

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.

Run a Rule
from a Job You Have

Issue a key named after the caller, and POST to the concept.

We use some essential cookies to make this site work. By clicking "Accept All" you agree to the storing of cookies on your device to enhance site navigation, analyse site usage and assist our marketing efforts. For more detailed information see our Cookie Notice.

Accept AllDecline