Skip to main content

Fetch Lithology

Retrieve the lithology (ordered list of formations) for a design. The response describes each formation's type, name, and TVD depth interval.

Depth values are stored internally relative to RKB (Rotary Kelly Bushing). By default the API returns depths in RKB; pass ?depthReference=MSL to receive depths relative to Mean Sea Level — the server converts on the fly using the design's drill-floor height, ground elevation, and well configuration.

GET/api/v1/designs/{designid}/lithology

Get the lithology and ordered formations for a design

Path Parameters

NameTypeRequiredDescription
designidstring (UUID)The UUID of the design

Parameters

NameTypeRequiredDescription
depthReferencestring-Depth reference for returned TVD values. One of "RKB" or "MSL". Defaults to "RKB".

Headers

NameValueDescription
apikeyYOUR_API_KEYYour API authentication key

Query parameters

ParameterTypeRequiredDescription
depthReferencestringNoRKB (default) or MSL. Controls the datum used for the returned topDepthTVD / bottomDepthTVD values.

Response fields

FieldTypeDescription
depthReference"RKB" | "MSL"Depth reference applied to the returned values. Echoes the depthReference query parameter, defaulting to RKB.
formationsarrayOrdered list of formations, top to bottom. See below.
svstringServer version that produced the response.
rcstringResult code. "ok" on success.

Formation fields

FieldTypeDescription
indexintegerZero-based position of the formation in the lithology, from top down.
formationTypestringRock type. Matches a name in the company's Formations library (e.g., Topsoil, Shale, Sandstone).
namestringHuman-readable formation name (may be empty).
topDepthTVDstring (unit-encoded)Top TVD of the formation, e.g. "100|m". Returned in the requested depthReference.
bottomDepthTVDstring (unit-encoded)Bottom TVD of the formation, e.g. "1500|m". Returned in the requested depthReference.

Notes

  • Depth values are unit-encoded strings of the form "<value>|<unit>", e.g. "1500|m". Parse with the @oliasoft-open-source/units helpers; do not split the pipe by hand.
  • The formations array is always returned in top-down order. The first formation's top is anchored to the seabed depth (water depth + drill-floor height); the last formation's bottom is clamped to the deepest trajectory point if a trajectory exists.
  • For an unmodified design with no user edits, formations contains a single default Rock formation (see Reset Lithology).
  • When depthReference=MSL is requested, RKB values are converted using the design's drill-floor height, ground elevation, and well configuration. The unit (m, ft) is preserved.