---
updatedAt: 2026-09-08T20:26:09.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# Get a dataset

Returns a single dataset by ID. The response body is the same
`Dataset-Resource` shape returned by the list endpoint.

Set `expand=true` to inline reference fields (`createdBy`,
`updatedBy`, `managedBy`, `defaultDashboard`,
`defaultInstanceDashboard`, `storageIntegration.record`). Without
`expand`, references contain only `id`.

To look up a dataset by label or other attribute, use
`GET /v1/datasets` with a CEL `filter`.


# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Observe by Snowflake API",
    "description": "# Overview\nWelcome to the Observe API Docs!\n\nThe Observe API is a RESTful API. POST bodies and responses are typically JSON-encoded.\n\n## Authentication\nRequests to the Observe API are authenticated with an API token. The token can be supplied using HTTP Bearer authentication:\n```\n// passing token as bearer token\ncurl -H \"Authorization: Bearer <customerid> <token>\" https://<customerid>.<observe-domain>.com/v1/...\n```\n",
    "version": "1.0.230307"
  },
  "servers": [
    {
      "url": "https://{customerid}.observeinc.com",
      "description": "US west server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        }
      }
    },
    {
      "url": "https://{customerid}.{cluster}.observeinc.com",
      "description": "Specific regional cluster (prod)",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "cluster": {
          "enum": [
            "eu-1",
            "ap-1"
          ],
          "default": "eu-1",
          "description": "For regional clusters, choose one."
        }
      }
    },
    {
      "url": "https://{customerid}.{domain}.com",
      "description": "Specific Observe server",
      "variables": {
        "customerid": {
          "default": "OBSERVE_CUSTOMERID",
          "description": "The customer ID for your instance."
        },
        "domain": {
          "default": "OBSERVE_DOMAIN",
          "description": "The Observe domain for your instance."
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Dataset",
      "description": "Manage datasets. Learn more about [datasets](https://docs.observeinc.com/en/latest/content/reference/ObserveKeyConcepts.html#datasets)..\n"
    }
  ],
  "paths": {
    "/v1/datasets/{id}": {
      "get": {
        "summary": "Get a dataset",
        "description": "Returns a single dataset by ID. The response body is the same\n`Dataset-Resource` shape returned by the list endpoint.\n\nSet `expand=true` to inline reference fields (`createdBy`,\n`updatedBy`, `managedBy`, `defaultDashboard`,\n`defaultInstanceDashboard`, `storageIntegration.record`). Without\n`expand`, references contain only `id`.\n\nTo look up a dataset by label or other attribute, use\n`GET /v1/datasets` with a CEL `filter`.\n",
        "operationId": "GetDataset",
        "tags": [
          "Dataset"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "int64"
            },
            "required": true,
            "description": "The id of the dataset to query",
            "example": 1
          },
          {
            "$ref": "#/components/parameters/ExpandParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Dataset queried successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dataset-Resource"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ErrorResponse-400"
          },
          "401": {
            "$ref": "#/components/responses/ErrorResponse-401"
          },
          "403": {
            "$ref": "#/components/responses/ErrorResponse-403"
          },
          "404": {
            "$ref": "#/components/responses/ErrorResponse-404"
          },
          "429": {
            "$ref": "#/components/responses/ErrorResponse-429"
          },
          "5XX": {
            "$ref": "#/components/responses/ErrorResponse-5XX"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Authorization: Bearer <customerid> <apitoken>\n"
      }
    },
    "schemas": {
      "ObjectId": {
        "type": "string",
        "format": "ObjectId"
      },
      "User": {
        "title": "User",
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "title": "User Identifier",
            "$ref": "#/components/schemas/ObjectId"
          },
          "label": {
            "title": "User Label",
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          }
        }
      },
      "ErrorMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A stable, machine-readable identifier for the kind of error."
          },
          "message": {
            "type": "string",
            "description": "Error message"
          }
        },
        "required": [
          "type",
          "message"
        ]
      },
      "Time": {
        "type": "string",
        "format": "RFC3339"
      },
      "NullableTime": {
        "type": [
          "string",
          "null"
        ],
        "format": "RFC3339"
      },
      "ObjectRef": {
        "title": "ObjectRef",
        "type": "object",
        "description": "A reference to another resource. Always carries the id; the optional `record` field carries the brief metadata, populated when expand=true. Brief expansion applies to one layer only — fields inside `record` that are themselves ObjectRefs (e.g. `record.managedBy`) are returned id-only, never with their own `record` populated. CEL filter expressions can deeper-resolve via lazy wrapper resolution if needed.\n",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId"
          },
          "record": {
            "$ref": "#/components/schemas/ObjectBrief"
          }
        }
      },
      "ObjectBrief": {
        "title": "ObjectBrief",
        "type": "object",
        "description": "Brief record fields for an ObjectRef. This type is polymorphic: additional fields pointing to specific object types (e.g. dataset, dashboard, monitor) may be added in the future as needed.\n",
        "required": [
          "label",
          "description",
          "iconUrl",
          "managedBy"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "iconUrl": {
            "type": "string"
          },
          "managedBy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObjectRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "Owner/manager of this object. Always returned as an id-only ObjectRef even when the parent was requested with expand=true: `expand` populates a single layer of brief data, so `record.managedBy` on a brief is itself never expanded. Pass the inner id back through a separate request (or filter via CEL, which lazily resolves) to access the manager's brief."
          }
        }
      },
      "ObjectTags": {
        "title": "ObjectTags",
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "description": "User-applied tags for organization and discovery, as a map of tag key\nto a list of values. For example: {\"env\": [\"prod\", \"staging\"], \"team\": [\"platform\"]}.\n"
      },
      "DatasetContentType": {
        "title": "DatasetContentType",
        "type": "string",
        "description": "The type of data a dataset contains. For Resource datasets, this is\ndetermined by the dataset kind. For other kinds, it is derived from the\ndataset's interface bindings. Returns Unknown if no recognized interface\nis found.\n",
        "enum": [
          "Unknown",
          "Resource",
          "Log",
          "Metric",
          "OTelSpan",
          "OTelTrace"
        ]
      },
      "DatasetBrief": {
        "title": "DatasetBrief",
        "type": "object",
        "description": "Brief record fields for a DatasetRef (label, description, iconUrl, contentType). Field naming mirrors ObjectBrief in this same file (iconUrl, not icon) for consistency across reference-brief pairs.\n",
        "required": [
          "label",
          "description",
          "iconUrl",
          "contentType"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "iconUrl": {
            "type": "string"
          },
          "contentType": {
            "$ref": "#/components/schemas/DatasetContentType",
            "description": "The type of data the referenced dataset contains — Resource, Log,\nMetric, OTelSpan, OTelTrace, or Unknown. Derived from the dataset's\nkind and interface bindings.\n"
          }
        }
      },
      "DatasetRef": {
        "title": "DatasetRef",
        "type": "object",
        "description": "A reference to a dataset. Always carries the id; the optional `record` field carries the brief metadata, populated when expand=true. Mirrors ObjectRef (see ObjectRef / ObjectBrief in this file).\n",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId"
          },
          "record": {
            "$ref": "#/components/schemas/DatasetBrief"
          }
        }
      },
      "Dataset-FieldPath": {
        "title": "FieldPath",
        "type": "object",
        "required": [
          "field",
          "path"
        ],
        "properties": {
          "field": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        }
      },
      "Dataset-CorrelationTag": {
        "title": "CorrelationTag",
        "type": "object",
        "required": [
          "tag",
          "path"
        ],
        "properties": {
          "tag": {
            "type": "string"
          },
          "path": {
            "$ref": "#/components/schemas/Dataset-FieldPath"
          }
        }
      },
      "DurationNanoseconds": {
        "type": "string",
        "format": "int64 nanoseconds"
      },
      "Dataset-DatasetKind": {
        "title": "DatasetKind",
        "type": "string",
        "enum": [
          "Table",
          "Resource",
          "Event",
          "Interval"
        ]
      },
      "Dataset-DataType": {
        "title": "DataType",
        "type": "string",
        "enum": [
          "None",
          "Bool",
          "Float64",
          "Int64",
          "String",
          "Timestamp",
          "Duration",
          "IPv4",
          "TDigest",
          "Array",
          "Object",
          "Variant",
          "Link",
          "DatasetRef"
        ]
      },
      "Dataset-FieldType": {
        "title": "FieldType",
        "type": "object",
        "required": [
          "tag"
        ],
        "properties": {
          "tag": {
            "$ref": "#/components/schemas/Dataset-DataType"
          }
        }
      },
      "Dataset-IndexType": {
        "title": "IndexType",
        "type": "string",
        "enum": [
          "TokenIndex",
          "SubstringIndex",
          "EqualityIndex",
          "AutoClusteringIndex"
        ]
      },
      "Dataset-IndexDefinition": {
        "title": "IndexDefinition",
        "type": "object",
        "required": [
          "field",
          "type"
        ],
        "properties": {
          "field": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/Dataset-IndexType"
          }
        }
      },
      "Dataset-ForeignKey": {
        "title": "ForeignKey",
        "type": "object",
        "required": [
          "label",
          "targetDataset",
          "targetStageLabel",
          "targetLabelField",
          "srcPaths",
          "dstFields"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "targetDataset": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DatasetRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "targetStageLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "targetLabelField": {
            "type": [
              "string",
              "null"
            ]
          },
          "srcPaths": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-FieldPath"
            }
          },
          "dstFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Dataset-FieldDesc": {
        "title": "FieldDesc",
        "type": "object",
        "required": [
          "name",
          "type",
          "indexDefs",
          "linkDesc",
          "isEnum",
          "isSearchable",
          "isHidden",
          "isConst",
          "isMetric"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/Dataset-FieldType"
          },
          "indexDefs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-IndexDefinition"
            }
          },
          "linkDesc": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Dataset-ForeignKey"
              },
              {
                "type": "null"
              }
            ]
          },
          "isEnum": {
            "type": "boolean"
          },
          "isSearchable": {
            "type": "boolean"
          },
          "isHidden": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "isConst": {
            "type": "boolean"
          },
          "isMetric": {
            "type": "boolean"
          }
        }
      },
      "Dataset-RelatedKey": {
        "title": "RelatedKey",
        "type": "object",
        "required": [
          "label",
          "targetDataset",
          "srcFields",
          "dstFields"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "targetDataset": {
            "$ref": "#/components/schemas/DatasetRef"
          },
          "srcFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dstFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Dataset-GroupingElementType": {
        "title": "GroupingElementType",
        "type": "string",
        "enum": [
          "Field",
          "Link"
        ]
      },
      "Dataset-GroupingElement": {
        "title": "GroupingElement",
        "type": "object",
        "required": [
          "type",
          "value"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/Dataset-GroupingElementType"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "Dataset-GroupingKey": {
        "title": "GroupingKey",
        "type": "object",
        "required": [
          "elements"
        ],
        "properties": {
          "elements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-GroupingElement"
            }
          }
        }
      },
      "Dataset-InterfaceFieldMapping": {
        "title": "InterfaceFieldMapping",
        "type": "object",
        "required": [
          "interfaceField",
          "field"
        ],
        "properties": {
          "interfaceField": {
            "type": "string"
          },
          "field": {
            "type": "string"
          }
        }
      },
      "Dataset-ImplementedInterface": {
        "title": "ImplementedInterface",
        "type": "object",
        "required": [
          "path",
          "mapping"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "mapping": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-InterfaceFieldMapping"
            }
          }
        }
      },
      "Dataset-TimeAlignment": {
        "title": "TimeAlignment",
        "type": "object",
        "required": [
          "stepSizeNanoseconds",
          "offsetNanoseconds"
        ],
        "properties": {
          "stepSizeNanoseconds": {
            "$ref": "#/components/schemas/DurationNanoseconds"
          },
          "offsetNanoseconds": {
            "$ref": "#/components/schemas/DurationNanoseconds"
          }
        }
      },
      "Dataset-CompilationError": {
        "title": "CompilationError",
        "type": "object",
        "required": [
          "error",
          "errorInDataset"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "errorInDataset": {
            "description": "Reference to the upstream dataset that produced the compilation\nerror. Weak ref: in many cases the upstream dataset cannot be\nresolved (cross-workspace deletion, RBAC visibility, race with\nsoft-delete). When unresolvable, the field is null and the caller\nstill has the `error` string. The field is always present; only\nits value is nullable.\n",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DatasetRef"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Dataset-AccelerationType": {
        "title": "AccelerationType",
        "type": "string",
        "enum": [
          "InsertOnly",
          "Aggregation",
          "Other",
          "NotSupported"
        ]
      },
      "Dataset-AccelerationState": {
        "title": "AccelerationState",
        "type": "string",
        "description": "The state of the dataset's acceleration.\nInitializing: The dataset is newly created/updated and acceleration has just started.\nAccelerated: The dataset is accelerated and available for querying.\nAcceleratedImmediately: The dataset is accelerated and available for querying. The dataset is also in \"live mode\", meaning it is being updated as fast as possible.\nUnavailable: The dataset is not accelerated and is not available for querying due to a compilation error in the dataset or upstream.\nDisabled: The dataset is not accelerated and is available for querying due to user disablement. (e.g. dataset is a view)\nError: The dataset is not accelerated and may return outdated results due to a critical error.\n",
        "enum": [
          "Initializing",
          "Accelerated",
          "AcceleratedImmediately",
          "Unavailable",
          "Disabled",
          "Error"
        ]
      },
      "Dataset-StalenessReason": {
        "title": "StalenessReason",
        "type": "string",
        "description": "A reason explaining why a dataset's freshness is what it is.\nConfiguredFreshnessGoal: The data meets the freshness goal set for this dataset, but that goal is loose enough to allow this staleness; set a tighter goal for fresher data.\nCreditManagerOverride: The acceleration credit manager raised the freshness goal to keep acceleration cost down.\nSlowAcceleration: Acceleration can't keep up with the freshness goal; optimizing the dataset's query or reducing its data volume can help.\nActiveBackfill: A backfill is accelerating historical data, which can reduce freshness until it finishes.\nDatasetHibernated: Ongoing acceleration is suspended because the dataset is hibernated; querying it resumes acceleration.\nUnusedDatasetHibernating: The freshness goal was relaxed because the dataset hasn't been queried recently; querying it restores the configured goal.\n",
        "enum": [
          "ConfiguredFreshnessGoal",
          "CreditManagerOverride",
          "SlowAcceleration",
          "ActiveBackfill",
          "DatasetHibernated",
          "UnusedDatasetHibernating"
        ]
      },
      "OpenTimeRange": {
        "title": "Open Time Range",
        "description": "A time range with a start and/or end time.",
        "type": "object",
        "required": [
          "startTime",
          "endTime"
        ],
        "properties": {
          "startTime": {
            "$ref": "#/components/schemas/NullableTime"
          },
          "endTime": {
            "$ref": "#/components/schemas/NullableTime"
          }
        }
      },
      "Dataset-AccelerationError": {
        "title": "AccelerationError",
        "type": "object",
        "required": [
          "time",
          "errorText"
        ],
        "properties": {
          "time": {
            "$ref": "#/components/schemas/Time"
          },
          "errorText": {
            "type": "string"
          }
        }
      },
      "Dataset-AccelerationInfo": {
        "title": "AccelerationInfo",
        "type": "object",
        "required": [
          "state",
          "stalenessSeconds",
          "recentStalenessSeconds",
          "stalenessReasons",
          "userConfiguredTargetStalenessSeconds",
          "targetExcludingDownstreamStalenessSeconds",
          "effectiveTargetStalenessSeconds",
          "rateLimitOverrideTargetStalenessSeconds",
          "alwaysAccelerated",
          "acceleratedRanges",
          "targetAcceleratedRanges",
          "freshnessTime",
          "effectiveOnDemandMaterializationLengthDays",
          "dataRetentionEnabled",
          "effectiveDataRetentionPeriodDays",
          "effectiveDataRetentionTimestamp",
          "minimumDataTimestamp",
          "hibernatedAt",
          "errors"
        ],
        "properties": {
          "state": {
            "$ref": "#/components/schemas/Dataset-AccelerationState"
          },
          "stalenessSeconds": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Live staleness of the dataset. Null if alwaysAccelerated is true."
          },
          "recentStalenessSeconds": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "A stable, conservative measurement of what staleness the dataset is achieving\nover the past few hours. Null if alwaysAccelerated is true.\n"
          },
          "stalenessReasons": {
            "type": "array",
            "description": "Reasons explaining why this dataset's freshness is what it is.\nEmpty array indicates the dataset is meeting its freshness goal.\nToday the server returns at most one dominant reason; the list\nshape is reserved so we can return multiple stacked reasons\n(e.g. cost-throttle + decay together) in the future without an\nAPI contract change.\n",
            "items": {
              "$ref": "#/components/schemas/Dataset-StalenessReason"
            }
          },
          "userConfiguredTargetStalenessSeconds": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "User-configured staleness target of the dataset. Set to default value if not set by user.\nActual target may be higher due to decaying or credit manager overrides.\n"
          },
          "targetExcludingDownstreamStalenessSeconds": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Target staleness of the dataset, ignoring downstream freshness goals.\nThis can be higher than the configured staleness target due to decaying or credit manager overrides.\n"
          },
          "effectiveTargetStalenessSeconds": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Effective target staleness of the dataset. This is the value that the dataset is being kept up to date to.\nThis can be higher or lower than the user-configured target staleness if the credit manager is active or downstream datasets staleness targets demand it.\n\nIf `effectiveTargetStalenessSeconds > userConfiguredTargetStalenessSeconds`, then the credit manager is active on this dataset, and\n`effectiveTargetStalenessSeconds == rateLimitOverrideTargetStalenessSeconds`.\nIf `effectiveTargetStalenessSeconds < userConfiguredTargetStalenessSeconds`, then a downstream dataset/monitor has a lower configured freshness goal.\nIf `effectiveTargetStalenessSeconds == userConfiguredTargetStalenessSeconds`, then the configured freshness goal is in effect.\n"
          },
          "rateLimitOverrideTargetStalenessSeconds": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The target staleness override for this dataset from the credit manager, if\na transform credit rate limit is configured and is causing this dataset's\nconfigured freshness goal to be overridden.\n"
          },
          "alwaysAccelerated": {
            "type": "boolean"
          },
          "acceleratedRanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenTimeRange"
            }
          },
          "targetAcceleratedRanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenTimeRange"
            }
          },
          "freshnessTime": {
            "$ref": "#/components/schemas/NullableTime"
          },
          "effectiveOnDemandMaterializationLengthDays": {
            "type": "integer",
            "format": "int64"
          },
          "dataRetentionEnabled": {
            "type": "boolean"
          },
          "effectiveDataRetentionPeriodDays": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64"
          },
          "effectiveDataRetentionTimestamp": {
            "$ref": "#/components/schemas/NullableTime"
          },
          "minimumDataTimestamp": {
            "$ref": "#/components/schemas/NullableTime"
          },
          "hibernatedAt": {
            "$ref": "#/components/schemas/NullableTime"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-AccelerationError"
            }
          }
        }
      },
      "StorageIntegration-Type": {
        "title": "StorageIntegrationType",
        "type": "string",
        "enum": [
          "Iceberg"
        ]
      },
      "StorageIntegration-StorageProvider": {
        "title": "StorageProvider",
        "type": "string",
        "enum": [
          "S3"
        ]
      },
      "StorageIntegration-Brief": {
        "title": "StorageIntegrationBrief",
        "type": "object",
        "required": [
          "name",
          "type",
          "storageProvider"
        ],
        "description": "Expanded fields for a storage integration reference.\nPresent only when the parent resource is fetched with ?expand=true.\n",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the storage integration, unique within the customer."
          },
          "type": {
            "$ref": "#/components/schemas/StorageIntegration-Type"
          },
          "storageProvider": {
            "$ref": "#/components/schemas/StorageIntegration-StorageProvider"
          }
        }
      },
      "StorageIntegration-Ref": {
        "title": "StorageIntegrationRef",
        "type": "object",
        "description": "A reference to a storage integration, used when embedded in other resources.\nAlways includes id. When the parent resource is fetched with ?expand=true,\nthe record object is present with name, type, and storageProvider.\n",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId",
            "readOnly": true
          },
          "record": {
            "$ref": "#/components/schemas/StorageIntegration-Brief"
          }
        }
      },
      "Dataset-DefinitionType": {
        "title": "DefinitionType",
        "type": "string",
        "description": "The kind of dataset definition. Values match `metatypes.TransformKind`'s\nstring constants verbatim where the backend has one (`OPAL`, `Builtin`,\n`LogDerived`, `OnlineEval`); `Source` and `Invalid` are REST-side additions for\ndataset shapes the backend does not surface as a TransformKind.\n- OPAL: dataset is produced by an OPAL transform pipeline.\n- Builtin: dataset is produced by a built-in transform (e.g. canonical-trace).\n- LogDerived: dataset is a log-derived metric.\n- OnlineEval: dataset holds an online evaluation's scores; manage it through `/v1/online-evaluations`.\n- Source: dataset receives data directly (datastream or external table); it has no transform.\n- Invalid: the stored transform kind is empty or unrecognised. Indicates corrupt or partially-migrated data, or a legacy SQL-kind transform (no production datasets carry one as of 2026-05-14).\n",
        "enum": [
          "OPAL",
          "Builtin",
          "LogDerived",
          "OnlineEval",
          "Source",
          "Invalid"
        ]
      },
      "Dataset-Resource": {
        "title": "DatasetResource",
        "type": "object",
        "description": "Observe Dataset with properties.",
        "required": [
          "id",
          "label",
          "description",
          "icon",
          "kind",
          "source",
          "lastUpdateSource",
          "fieldList",
          "validFromField",
          "validToField",
          "labelField",
          "primaryKey",
          "candidateKeys",
          "foreignKeys",
          "relatedKeys",
          "groupingKey",
          "correlationTags",
          "isSource",
          "interfaces",
          "contentType",
          "customFieldMappings",
          "objectTags",
          "alignment",
          "compilationError",
          "managedBy",
          "dataTableViewState",
          "defaultDashboard",
          "defaultInstanceDashboard",
          "isView",
          "isMonitor",
          "isMetricSMA",
          "accelerationType",
          "accelerationInfo",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt",
          "storageIntegration",
          "storage",
          "iceberg",
          "definitionType",
          "defaultQueryWindowSeconds"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ObjectId",
            "readOnly": true
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/Dataset-DatasetKind"
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastUpdateSource": {
            "type": [
              "string",
              "null"
            ]
          },
          "fieldList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-FieldDesc"
            }
          },
          "validFromField": {
            "type": [
              "string",
              "null"
            ]
          },
          "validToField": {
            "type": [
              "string",
              "null"
            ]
          },
          "labelField": {
            "type": [
              "string",
              "null"
            ]
          },
          "primaryKey": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "candidateKeys": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "foreignKeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-ForeignKey"
            }
          },
          "relatedKeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-RelatedKey"
            }
          },
          "groupingKey": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Dataset-GroupingKey"
              },
              {
                "type": "null"
              }
            ]
          },
          "correlationTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-CorrelationTag"
            }
          },
          "isSource": {
            "type": "boolean"
          },
          "interfaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset-ImplementedInterface"
            }
          },
          "contentType": {
            "$ref": "#/components/schemas/DatasetContentType",
            "description": "The type of data this dataset contains. For Resource datasets, determined by\nthe dataset kind. For other kinds, derived from the dataset's interface bindings.\nReturns Unknown if no recognized interface is found.\n"
          },
          "customFieldMappings": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Custom field mappings associated with the dataset's content type. Maps canonical\nfield names to column name(s). Most fields map to a single column, but some\n(e.g. metric \"tag\") allow multiple columns. The exact set of keys depends on\nthe contentType. For example, a Log dataset might have {\"log\": [\"message\"]}, while\na Metric dataset might have {\"metric\": [\"metric_name\"], \"value\": [\"metric_value\"]}.\nEmpty if the dataset has no recognized content type.\n"
          },
          "objectTags": {
            "$ref": "#/components/schemas/ObjectTags"
          },
          "alignment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Dataset-TimeAlignment"
              },
              {
                "type": "null"
              }
            ]
          },
          "compilationError": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Dataset-CompilationError"
              },
              {
                "type": "null"
              }
            ]
          },
          "managedBy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObjectRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "dataTableViewState": {
            "type": [
              "string",
              "null"
            ]
          },
          "defaultDashboard": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObjectRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultInstanceDashboard": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObjectRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "isView": {
            "type": "boolean"
          },
          "isMonitor": {
            "type": "boolean"
          },
          "isMetricSMA": {
            "type": "boolean"
          },
          "accelerationType": {
            "$ref": "#/components/schemas/Dataset-AccelerationType"
          },
          "accelerationInfo": {
            "$ref": "#/components/schemas/Dataset-AccelerationInfo"
          },
          "createdBy": {
            "$ref": "#/components/schemas/User"
          },
          "updatedBy": {
            "$ref": "#/components/schemas/User"
          },
          "createdAt": {
            "$ref": "#/components/schemas/Time"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/Time"
          },
          "storageIntegration": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/StorageIntegration-Ref"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true,
            "description": "The storage integration associated with this dataset, if any.\nReturns null for datasets without a storage integration.\nWhen expand=true, includes a record object with name, type, and storageProvider.\n"
          },
          "definitionType": {
            "$ref": "#/components/schemas/Dataset-DefinitionType",
            "description": "The kind of definition that produces this dataset. Always populated;\nclassifies every dataset, including source datasets (datastreams /\nexternal tables) and rows whose stored kind is empty or corrupt.\n"
          },
          "score": {
            "type": "number",
            "format": "double",
            "readOnly": true,
            "description": "Cosine similarity score (0–1). Only present when the `query` search\nparameter is used (semantic search). Omitted for non-semantic list\nrequests.\n"
          }
        }
      }
    },
    "parameters": {
      "ExpandParam": {
        "name": "expand",
        "in": "query",
        "description": "Whether to expand resources referenced in the response to include additional fields",
        "schema": {
          "type": "boolean"
        }
      }
    },
    "responses": {
      "ErrorResponse-400": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-401": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-404": {
        "description": "Resource not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-429": {
        "description": "Rate limit reached",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      },
      "ErrorResponse-5XX": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        }
      }
    }
  }
}
````