Experiments

Get exposure SQL model

Get an exposure SQL model. Returns a single model by its ID for the organization, including its subject types and properties.

get/api/v2/experiments/exposure-sql-models/{exposure_sql_model_id}

Request

Path parameters

exposure_sql_model_idstring uuid required

The UUID of the exposure SQL model.

Example:550e8400-e29b-41d4-a716-446655440000

Query parameters

includestring[]

Optional fields to include. Repeat this parameter to request several fields. counts adds experiment_count.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "created_at": "2024-01-01T12:00:00Z",
      "experiment_column": "experiment_id",
      "name": "Exposure events",
      "properties": [
        {
          "column_name": "country",
          "column_type": "STRING",
          "id": "550e8400-e29b-41d4-a716-446655440031",
          "name": "country",
          "pipeline_column_suffix": "cty001"
        }
      ],
      "sql": "SELECT user_id, experiment_id, variant, exposed_at, country FROM analytics.exposures",
      "subject_types": [
        {
          "column_name": "user_id",
          "subject_type_id": "550e8400-e29b-41d4-a716-446655440010"
        }
      ],
      "timestamp_column": "exposed_at",
      "updated_at": "2024-01-01T12:00:00Z",
      "variant_column": "variant"
    },
    "id": "550e8400-e29b-41d4-a716-446655440030",
    "type": "exposure-sql-models"
  }
}

Changes

Changes to this operation have not been checked yet.