The Rod-Lift Engineering API
Versioned REST endpoints your scripts and services call directly. Same Bearer token and scopes as MCP and Vector.
{
"data": [
{ "id": "well_demo_a", "name": "Demo Well A", "status": "active" },
{ "id": "well_demo_b", "name": "Demo Well B", "status": "active" }
],
"cursor": "eyJwYWdlIjoyfQ=="
}
{
"id": "sim_8f2a",
"well_id": "well_demo_a",
"status": "completed",
"peak_polished_rod_load_lb": 29228
}
{
"id": "sim_9c11",
"status": "queued",
"poll": "/api/v1/simulations/sim_9c11"
}
Scenario UI, illustrative request and response shapes.
Rod-Lift Wells, Sims, and Equipment Over HTTP
The callable REST surface for wells, simulations, and equipment. Mint a scoped token once - use it here or on MCP.
https://app.petrobench.com/api/v1 One Versioned Surface
Wells, simulations, equipment, and organization data behind a single stable base URL. No scraping the app, no brittle exports.
The Same Answer, Everywhere
REST reads the same records that power the platform UI and MCP tools. What your engineers see is what the API returns.
OpenAPI 3.1 and Scoped Tokens
OpenAPI 3.1, scoped Bearer tokens, cursor pagination, and a structured error envelope. Predictable shapes for generated clients.
One Token. Only the Abilities You Mint
Every route checks a scoped ability before it answers. Mint in Settings or with the pb CLI. REST and MCP enforce the same strings
Bearer pb_pat_8f2a9c… -
wells:read -
wells:write -
simulations:read -
simulations:run -
equipment:read -
organization:read
Personal tokens follow the user. Service tokens use the pb_svc_ prefix for machine-to-machine
callers
The Domain, Mapped to Routes
Wells, sims, equipment, and org context on one versioned surface, the same records the platform and MCP already use
- Wells Full wellbore record
Surveys, perfs, casing, rods, units, performance, field data
- Simulations Runs, versions, results
Versions, results, IPR, comparisons
- Equipment Catalog and installed hardware
Shared catalog and what is installed downhole
- Organization Structure and context
Regions, tags, account
- Operations Jobs and reporting
Async jobs and simulation results
- Governance Tokens and audit
Mint in Settings or pb CLI, audit logs
Read Your Wells in Three Lines
Scoped Bearer token, one resource, structured JSON, curl, Python, or TypeScript
curl https://app.petrobench.com/api/v1/wells \
-H "Authorization: Bearer pb_svc_..." Responses are cursor-paginated JSON. Follow the returned cursor to walk the full set
Keep Going on MCP or Vector
One credential. Pick the surface that matches how your team works
Mint a Token. Hit Your First Well.
Open the docs, mint a scoped Bearer token in Settings, and list your wells. Same credential MCP and Vector already use.
Sistemul nostru de programare este temporar indisponibil. Dă clic mai jos pentru a programa direct sau contactează-ne.
Ai întrebări sau ai nevoie de ajutor cu altceva? Contactează-ne