Models

Get dbt exposures

Returns the dbt exposures for a model, computed on-demand by analyzing which dbt models are referenced by the published dashboards and apps that use this model. Returns one record per dashboard (type "dashboard") or app (type "application") that references at least one dbt model; documents with no dbt references are excluded, so a page may hold fewer records than pageSize. Exposure names (exposure.name) may contain duplicates when multiple documents produce the same name; use deduplication_name for a guaranteed-unique value, or use it as a fallback when names collide.

get/api/v1/models/{modelId}/dbt-exposures

Request

  • Base URL
    https://omniapp.co (the document declares no server; this is the origin it was published from)
  • URL
    https://omniapp.co/api/v1/models/{modelId}/dbt-exposures
  • Auth
    HTTP bearer

Path parameters

modelIdstring uuid required

Model UUID

Example:123e4567-e89b-12d3-a456-426614174000

Query parameters

cursorstring

Cursor for pagination (from previous response nextCursor)

Example:eyJpZCI6IjEyMzQ1In0
pageSizeinteger

Number of results per page (1-100, integer)

Example:20
sortDirection'asc' | 'desc'

Sort direction for results

Example:desc
sortFieldstring

Field to sort results by

branch_idstring uuid

Branch ID to use for branch-aware operations

Example:123e4567-e89b-12d3-a456-426614174001

Response

List of dbt exposures for the model

Example response

{
  "records": [
    {
      "exposure": {
        "depends_on": [
          "ref('orders')",
          "ref('customers')"
        ],
        "name": "my_dashboard",
        "type": "dashboard"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 97 revisions of this API.