Skip to content

Production Data API

Query and ingest time-series production data for wells.

Endpoints

MethodPathDescription
GET/projects/{projectId}/wells/{wellId}/productionGet production data for a well
POST/projects/{projectId}/wells/{wellId}/productionIngest production records
DELETE/projects/{projectId}/wells/{wellId}/productionDelete production records by date range

GET Production Data

http
GET /projects/{projectId}/wells/{wellId}/production

Query Parameters

ParameterTypeRequiredDescription
fromISO 8601 dateYesStart date (inclusive)
toISO 8601 dateYesEnd date (inclusive)
fieldsstring[]NoComma-separated list of fields to return
aggregationstringNodaily (default), monthly

Example Request

bash
curl "https://your-org.tachyus.com/api/v1/projects/proj-001/wells/well-001/production\
?from=2025-01-01&to=2025-03-31&fields=oil_rate,water_rate,gas_rate" \
  -H "Authorization: Bearer $TACHAPPS_API_TOKEN"

Response

json
{
  "wellId": "well-001",
  "from": "2025-01-01",
  "to": "2025-03-31",
  "aggregation": "daily",
  "fields": ["date", "oil_rate", "water_rate", "gas_rate"],
  "data": [
    { "date": "2025-01-01", "oil_rate": 450.2, "water_rate": 1200.8, "gas_rate": 325.0 },
    { "date": "2025-01-02", "oil_rate": 448.7, "water_rate": 1215.3, "gas_rate": 318.5 }
  ]
}

POST — Ingest Production Records

http
POST /projects/{projectId}/wells/{wellId}/production

Accepts an array of daily production records. Existing records for the same date are upserted (replaced).

Request Body

json
{
  "records": [
    { "date": "2026-01-01", "oil_rate": 512.3, "water_rate": 890.1, "gas_rate": 410.0 },
    { "date": "2026-01-02", "oil_rate": 508.7, "water_rate": 895.6, "gas_rate": 405.3 }
  ]
}

Response200 OK

json
{
  "inserted": 1,
  "updated": 1,
  "total": 2
}

TIP

For bulk historical imports (thousands of records), use the CSV import endpoint or contact your Tachyus engineer for a bulk data migration.


DELETE — Remove Production Records

http
DELETE /projects/{projectId}/wells/{wellId}/production?from=2026-01-01&to=2026-01-31

Query Parameters

ParameterTypeRequiredDescription
fromISO 8601 dateYesStart of range to delete (inclusive)
toISO 8601 dateYesEnd of range to delete (inclusive)

Response200 OK

json
{ "deleted": 31 }

Available Fields

FieldDescriptionUnit (Imperial)
oil_rateDaily oil production ratebbl/d
water_rateDaily water production ratebbl/d
gas_rateDaily gas production rateMscf/d
bhpBottom-hole pressurepsi
thpTubing head pressurepsi
choke_sizeChoke size64ths inch
runtimeDaily pump runtimehrs
gorGas-oil ratioscf/bbl
watercutWater fraction%

Next Steps

Built with VitePress · Powered by Tachyus