API reference¶
Generated from the live OpenAPI schema. The web app, the desktop console and the AI layer are all clients of exactly these routes - if a capability is not here, none of them can reach it.
Units
Every physical value carries its unit explicitly. There is no
implicit unit system anywhere:
{"value": 3000, "unit": "psia"}
Admin¶
GET /v1/admin/audit¶
What has been done, and by whom
POST /v1/admin/invite¶
Invite someone into your organisation
GET /v1/admin/seats¶
How many seats you have, and how many are in use
What the workspace owner needs to answer "can I add someone".
It existed only on the DBReS side, so a customer could see who was in their organisation and not how many more they could add, which is exactly the question an owner asks before inviting.
GET /v1/admin/users¶
Everyone in your organisation
PATCH /v1/admin/users/{user_id}¶
Change status, role, or extend a trial
Ai¶
POST /v1/ai/chat¶
AI Octopus - assistant over the calculation engine
Analysis¶
POST /v1/calc/match/ipr¶
Tune productivity against well test points
One parameter, because with three test points and two parameters you are fitting noise. Multi-rate interpretation has dedicated fitters.
POST /v1/calc/match/vlp¶
Tune gravity and friction against gauge data
Two parameters, deliberately.
Gravity carries the holdup error, friction carries the wall-shear error, and separating them is diagnostic: a gravity multiplier far from 1.0 says the PVT or holdup correlation is wrong; a friction multiplier far from 1.0 says the roughness or geometry is wrong. More parameters would fit better and mean less.
The model being matched is the SAME model the workspace solves: the tuned fluid, the PVT lab table if one is loaded, the deviation survey and the tapered string. Matching a simplified stand-in and reporting the residuals as if they described the real well is worse than not matching at all.
POST /v1/calc/pvt/match¶
Regress the tuning multipliers onto a lab report
The multipliers, computed instead of guessed.
Returns them rather than a tuned fluid: the caller puts them into the model explicitly, the same way a VLP match is applied, so nothing is tuned without somebody choosing to tune it.
POST /v1/calc/pvt/rank¶
Score every correlation against a lab report, best first
Which correlation already fits this fluid, before anything is tuned.
This is the question that should be asked before the multipliers, and the product had no way to ask it.
POST /v1/calc/sensitivity/plan¶
Run count and estimate, without executing anything
PROSPER has separate menu items for 3 and 4 variables. This takes any arity, and tells you the cost before you commit.
POST /v1/calc/sensitivity/run¶
Execute the run matrix
A case that will not flow does NOT kill the run -- sweeping into a dead region is the sensitivity doing its job, and the other cases still matter.
Artificial Lift¶
POST /v1/calc/lift/esp/curve/scale¶
Scale a user-entered ESP curve by pump speed
POST /v1/calc/lift/esp/electrical¶
Evaluate ESP motor loading and cable losses
POST /v1/calc/lift/esp/envelope¶
Check ESP geometry and fluid operating limits
POST /v1/calc/lift/esp/gauge-analysis¶
Back-calculate ESP performance from synchronized gauges
POST /v1/calc/lift/esp/size¶
Size ESP stages and power from a user-entered curve
POST /v1/calc/lift/gas-lift/allocate¶
Allocate limited lift gas over discrete well delivery curves
Return the exact best supplied multi-well operating-point combination.
POST /v1/calc/lift/gas-lift/api11v2/flow¶
API RP 11V2 tested-Cv/Xt gas flow
POST /v1/calc/lift/gas-lift/api11v2/probe-analysis¶
API RP 11V2 probe-test data reduction
POST /v1/calc/lift/gas-lift/lookback¶
Aggregate gas-lift historical replay opportunity
POST /v1/calc/lift/gas-lift/optimise¶
Continuous gas-lift performance and economic optimum
Sweep lift gas, re-solve IPR x VLP, and return operator decisions.
POST /v1/calc/lift/gas-lift/port-size¶
Size a gas-lift valve port for compressible gas flow
Return required port geometry and critical/subcritical classification.
POST /v1/calc/lift/gas-lift/quicklook/data-quality¶
Validate gas-lift Quicklook well-test evidence
POST /v1/calc/lift/gas-lift/quicklook/diagnose¶
Combine gas-lift Quicklook evidence into auditable findings
POST /v1/calc/lift/gas-lift/quicklook/survey¶
Interpret gas-lift pressure/temperature survey evidence
POST /v1/calc/lift/gas-lift/quicklook/trends¶
Analyze synchronized gas-lift surface trends
POST /v1/calc/lift/gas-lift/unloading-readiness¶
Screen a controlled continuous-gas-lift unloading plan
POST /v1/calc/lift/gas-lift/unloading-sequence¶
Evaluate gas-lift unloading valve transitions
Evaluate stateful opening/closing transitions from pressure snapshots.
POST /v1/calc/lift/gas-lift/valve-spacing¶
Design continuous gas-lift valve and mandrel depths
Calculate ideal valve depths and optionally map existing mandrels.
Assets¶
POST /v1/orgs/{org_id}/fields¶
Create Field
GET /v1/orgs/{org_id}/fields¶
List Fields
Every field in this organisation.
Added because a well cannot be created without a field_id and there was no way to discover one: POST /fields and POST /wells both existed, and between them there was no route that could tell you what to put in the second. So Workspace Home said "No wells yet. Create one to get started" next to no control that could, and wells had to be inserted by hand into the database.
GET /v1/orgs/{org_id}/scenarios/compare¶
Compare
Diff two scenarios - what you changed, and what it did.
Two groups, never one. differences is the inputs, result_differences
is the operating point they solved to, and the second one is why anybody
opens this screen: an engineer who moves the injection depth wants to be
told the well made 340 STB/day more, not merely that the number they typed
is now a different number.
⚠️ Declared BEFORE /scenarios/{scenario_id}. FastAPI matches in declaration order, so a parameterised route above this one would swallow "compare" and try to parse it as a UUID.
GET /v1/orgs/{org_id}/scenarios/{scenario_id}¶
Get Scenario
POST /v1/orgs/{org_id}/scenarios/{scenario_id}/branch¶
Branch
⭐ Branch a scenario.
Copies the model state, records the parent, and shares the well's production data and well tests rather than duplicating them.
GET /v1/orgs/{org_id}/scenarios/{scenario_id}/history¶
History
PUT /v1/orgs/{org_id}/scenarios/{scenario_id}/state¶
Save State
Save the model, its solved operating point, and record a revision.
Git-style history. The results are dumped in JSON mode because the column
is JSON on both dialects and a datetime cannot be stored in one, and
with exclude_none because an unsent key must read back as absent rather
than as a null that looks like a solve which produced nothing.
POST /v1/orgs/{org_id}/wells¶
Create Well
Creates the well AND its default "Main" scenario.
POST /v1/orgs/{org_id}/wells/import¶
Create the wells a preview accepted
Create every well the preview accepted, and the fields they need.
Re-parsed here rather than trusting a client-supplied list: the preview is an explanation for a human, not a token, and an import that wrote whatever the browser sent back would be a way to bypass its own validation.
All or nothing. A partial import leaves an operator with no way to know which half landed, and re-running it would duplicate the half that did.
POST /v1/orgs/{org_id}/wells/import/preview¶
Read a spreadsheet of wells without saving anything
Parse, explain, and write nothing.
Every row comes back with what was understood and what was not, so the user can fix the file while they still have it open.
GET /v1/orgs/{org_id}/wells/import/template¶
The spreadsheet layout we read
Published rather than described.
"A CSV with a name and a field column" is an instruction somebody has to interpret. A file they can open and type into is not.
GET /v1/orgs/{org_id}/wells/summary¶
Well Summary
One row per well - the Workspace Home screen.
PROSPER has nothing like this: one file per well on one laptop means a manager has no view at all. This is where an engineer running 60 wells actually lives.
GET /v1/orgs/{org_id}/wells/{well_id}/scenarios¶
List Scenarios
POST /v1/orgs/{org_id}/wells/{well_id}/tests¶
Add Test
GET /v1/orgs/{org_id}/wells/{well_id}/tests¶
List Tests
A test excluded from matching is kept, not deleted - the engineer needs to see the bad test and the note saying why it was excluded.
Auth¶
POST /v1/auth/accept-invite¶
Accept an invitation and set a password
POST /v1/auth/forgot¶
Request a reset link
POST /v1/auth/login¶
Sign in
POST /v1/auth/logout¶
Sign out
GET /v1/auth/me¶
Who am I
POST /v1/auth/reset¶
Set a new password
POST /v1/auth/signup¶
Create an account and its organisation
POST /v1/auth/verify¶
Confirm an address
Calculators¶
POST /v1/calc/ipr/curve¶
Inflow performance curve
POST /v1/calc/ipr/fit¶
Fit an inflow model to multi-rate test data
The grid behind the Inflow tab's test table.
Residuals are reported per point so a bad test (a rate that never stabilised, a mis-read gauge) is visible instead of silently absorbed into the fit.
POST /v1/calc/nodal/solve¶
IPR x VLP operating point
Find where inflow and outflow balance.
Both curves are evaluated on a shared rate axis and the crossing is found by bracketed root-finding. A well that will not flow is a RESULT, not an error - flows_naturally comes back false and the caller routes to artificial lift.
POST /v1/calc/pvt/compare¶
Every correlation at once - the spread is the uncertainty
Evaluate all available correlations for one property.
Do not read this as 'pick the winner'. Correlations disagree because they were fitted to different fluids; the spread between them is a real uncertainty signal and should be shown to the user as one.
POST /v1/calc/pvt/properties¶
Fluid properties at a pressure and temperature
Everything the pressure traverse needs at one node.
This is the same call the VLP engine makes internally at every depth step.
POST /v1/calc/skin/decompose¶
Break skin down by mechanism
Skin, separated into the mechanisms that caused it.
PROSPER reports skin components too, but the value here is that each one names its own model and citation, and the response says which mechanism to attack. A lumped skin of 8 tells you the well is hurt; a decomposition tells you whether to acidise, re-perforate, or leave it alone because the deviation is already giving you 3 units back.
Choke¶
GET /v1/choke/correlations¶
The published choke correlations and their constants
Guo Table 5.3, with each set's citation.
Published openly for the same reason every other envelope in this app is: an engineer who can see that Gilbert was fitted to one Californian field in 1954 can judge for themselves how far to trust it on their well.
POST /v1/choke/performance¶
Rate against bean size at fixed pressures
The choke performance curve: what each bean size would flow.
This is the picture behind "what if I open the bean", and it is why the curve is swept over SIZE rather than over pressure: the size is the thing an operator can actually go and change.
POST /v1/choke/solve¶
Solve a choke for size, rate, or wellhead pressure
Given two of {bean size, liquid rate, wellhead pressure}, return the third.
Solving for the bean is the one an engineer actually wants and the one a calculator usually will not give them: "I need 3,000 barrels against 900 psi, what do I dress the choke with."
Contact¶
POST /v1/contact¶
Send an enquiry from the website
Take an enquiry and email it to us.
Returns the same 200 whether the message was sent or silently dropped as spam. A form that tells a bot why it failed is a form a bot learns to beat.
Correlation Library¶
GET /v1/correlations¶
Every correlation, with its published envelope
GET /v1/correlations/gaps/coverage¶
How much of the engine can flag
GET /v1/correlations/gaps/unregistered¶
Correlations that compute but cannot flag extrapolation
The honest counterpart to the library above.
A correlation with no registered envelope still returns a number, and returns it without any warning. Publishing that list is the difference between "we flag extrapolation" and "we flag extrapolation where we have got round to it". The second is true; the first is what a silent list would imply.
GET /v1/correlations/{key}¶
Get Correlation
Demo¶
POST /v1/demo/export¶
Export a result table as CSV
Turn any of the result tables into a CSV an engineer can open.
Deliberately dumb: the caller already has the numbers rendered on screen in the units it chose, so the server does not recompute anything and cannot disagree with what the user is looking at. The header carries the units, because a CSV of bare numbers is how unit mistakes travel.
GET /v1/demo/well¶
The TEN-style demo well
A representative deepwater producer on a published depletion path.
Real: the field GOR trend, 1676 -> 3296 -> 7455 scf/stb across 2018-2023, derived from published TEN monthly production.
Not real: the PVT, survey, completion and productivity index, which are representative deepwater West African values. No operator data is used and none is implied - the response says so, so a screenshot of it cannot be mistaken for one.
Events¶
POST /v1/events¶
Record an event
Always 204, whatever happens.
Including when the event is dropped. The browser has nothing useful to do with a rejection, and an endpoint that answers differently for accepted and rejected events is one a spammer can tune against.
Flow Assurance¶
POST /v1/calc/assurance/erosion¶
Screen API RP 14E erosional velocity
POST /v1/calc/assurance/liquid-loading¶
Calculate a published liquid-loading velocity and rate
POST /v1/calc/assurance/liquid-loading/profile¶
Evaluate liquid-loading margin along an ordered well profile
POST /v1/calc/assurance/regime-bands¶
Group existing VLP flow-pattern nodes into depth bands
Geometry¶
GET /v1/geometry/catalogue¶
API tubing and casing sizes
The standard API sizes, so nobody types an internal diameter by hand.
Typing 2.441 instead of 2.441 is not the risk; picking the wrong weight for a nominal OD is, and a catalogue makes that a selection rather than a recollection.
POST /v1/geometry/equipment¶
Build and validate a tapered equipment string
Validate a tubing/casing string and report the flow area at each stage.
A tapered string is the normal case, not the exception - most wells run a smaller tubing below a larger one. Modelling it as a single ID gets the friction wrong in whichever section you did not pick.
POST /v1/geometry/survey/parse¶
Parse a survey pasted from Excel
Take a pasted survey block and compute the trajectory.
Accepts tab, comma or whitespace separated MD / inclination / azimuth, with or without a header row. Azimuth is optional - a two-column survey is a normal way for an engineer to sketch a well, and TVD does not depend on azimuth.
Three input shapes, because engineers have three kinds of survey:
text the rectangle copied out of a directional report md + inclination_deg the edited grid, which is what the UI sends back md + tvd a completion report or a prognosis, where inclination is recovered from the increments
Meta¶
GET /health¶
Health
Liveness plus the facts a deploy check needs in one call.
Deliberately reports CONFIGURATION, never secrets: whether a database
is configured, whether auth is on, whether AI is on, whether the built
frontend is being served. scripts/preflight.py reads exactly this.
GET /ping¶
Ping
The cheapest possible liveness check, for an external monitor.
Render's free tier sleeps an idle service, and the first request after that pays a cold start of tens of seconds. A monitor pinging every few minutes keeps it warm, which matters most in exactly the situation where it hurts most: somebody opening the link from a demo.
Deliberately NOT /health. That one touches configuration and counts routes on every call; this returns a constant and never touches the database, so it costs nothing to be hit 20,000 times a month. Use /health when you want to know if the deployment is correct, /ping when you only want it awake.
HEAD /ping¶
Ping
The cheapest possible liveness check, for an external monitor.
Render's free tier sleeps an idle service, and the first request after that pays a cold start of tens of seconds. A monitor pinging every few minutes keeps it warm, which matters most in exactly the situation where it hurts most: somebody opening the link from a demo.
Deliberately NOT /health. That one touches configuration and counts routes on every call; this returns a constant and never touches the database, so it costs nothing to be hit 20,000 times a month. Use /health when you want to know if the deployment is correct, /ping when you only want it awake.
Outflow¶
POST /v1/calc/vlp/curve¶
VLP curves - one correlation or all of them at once
Required bottomhole pressure against rate.
Leave correlations empty and every correlation runs. Their disagreement
IS an uncertainty estimate - where they diverge, the physics is genuinely
uncertain and the engineer should know rather than be handed one number.
POST /v1/calc/vlp/traverse¶
Pressure and temperature traverse down the wellbore
Node-by-node pressure, temperature, holdup and flow regime.
The dP split by mechanism is the diagnostic an engineer actually wants: 98% gravity says the column is heavy, 60% friction says the tubing is too small.
Platform¶
GET /v1/platform/audit¶
Everything anybody has done, on any organisation
GET /v1/platform/orgs¶
Every organisation on the platform
PATCH /v1/platform/orgs/{org_id}¶
Set or clear an organisation's seat limit
GET /v1/platform/overview¶
The whole platform in one object
GET /v1/platform/traffic¶
Who is out there, and what are they doing
GET /v1/platform/users¶
Every account on the platform
PATCH /v1/platform/users/{user_id}¶
Grant, extend, lock or disable any account
Projects¶
POST /v1/orgs/{org_id}/projects¶
Create a project
GET /v1/orgs/{org_id}/projects¶
List projects, most recently touched first
POST /v1/orgs/{org_id}/projects/import¶
Import a .dbwell file
Import on any install.
A name collision does NOT overwrite: importing a file must never
silently destroy work that already carries that name. Pass rename, or
get a 409 that says exactly what to do.
GET /v1/orgs/{org_id}/projects/{project_id}¶
Open a project
PATCH /v1/orgs/{org_id}/projects/{project_id}¶
Save a project
DELETE /v1/orgs/{org_id}/projects/{project_id}¶
Delete a project
POST /v1/orgs/{org_id}/projects/{project_id}/duplicate¶
Save As - the original is untouched
GET /v1/orgs/{org_id}/projects/{project_id}/export¶
Export a .dbwell file the customer owns
Report¶
POST /v1/report/build¶
Build the well model report
Assemble a self-contained report document.
Everything the caller has on screen goes in as-rendered, in the units the user chose. The server adds provenance the user cannot fake: engine version, build date, and the limitations generated from the applicability flags that were actually raised.