---
updatedAt: 2026-07-29T03:03:48.000Z
agentTools:
  siteIndex: https://developers.liveramp.com/llms.txt
  projectIndex: https://developers.liveramp.com/clean-room-api/llms.txt
---

# Fetch a Data Connection View by ID

This operation fetches a data connection view by ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v1.0.0",
    "title": "External APIs for Customer Integration",
    "description": "APIs to create and fetch Clean Room and related details from LiveRamp (previously Habu) for Customer Integration.",
    "contact": {
      "name": "LiveRamp (previously Habu)",
      "url": "https://liveramp.com/",
      "email": "platform_admin@habu.com"
    }
  },
  "security": [
    {
      "application": []
    }
  ],
  "paths": {
    "/data-connection-views/{viewId}": {
      "get": {
        "summary": "Fetch a Data Connection View by ID",
        "operationId": "getDataConnectionViewById",
        "description": "This operation fetches a data connection view by ID.",
        "parameters": [
          {
            "name": "viewId",
            "in": "path",
            "description": "Data Connection View ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully fetched the data connection view.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataConnectionViewResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        },
        "tags": [
          "DataConnectionViews"
        ]
      }
    }
  },
  "components": {
    "responses": {
      "BadRequest": {
        "description": "Bad Request - Incorrect syntax or request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          },
          "application/xml": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          }
        }
      },
      "NotFound": {
        "description": "The specified resource was not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          },
          "application/xml": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Authorization information was missing or invalid",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          },
          "application/xml": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          }
        }
      },
      "Forbidden": {
        "description": "This action is not allowed",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          },
          "application/xml": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          },
          "application/xml": {
            "schema": {
              "$ref": "#/components/schemas/ReturnObject"
            }
          }
        }
      }
    },
    "schemas": {
      "FieldConfiguration": {
        "type": "object",
        "properties": {
          "dataConnectionId": {
            "type": "string",
            "description": "The Data Connection ID associated with this Field Configuration"
          },
          "id": {
            "type": "string",
            "description": "Unique ID for the Field"
          },
          "fieldIndex": {
            "type": "integer"
          },
          "fieldName": {
            "type": "string",
            "description": "Name of the Field"
          },
          "fieldLabel": {
            "type": "string",
            "description": "Display Name of the Field"
          },
          "dataType": {
            "type": "string",
            "enum": [
              "BOOLEAN",
              "DATE",
              "DECIMAL",
              "DOUBLE",
              "INTEGER",
              "LONG",
              "STRING",
              "TEXT",
              "TIMESTAMP",
              "UNKNOWN"
            ],
            "description": "Data type of the field"
          },
          "identifierType": {
            "type": "string",
            "enum": [
              "",
              "1P or 3P Cookie",
              "Customer First Party Identifier",
              "Hashed Emails",
              "HouseHold ID",
              "Email MD5 Hashed",
              "Mobile Device Identifier",
              "Person (or People) Identifier",
              "RampID",
              "Raw Email",
              "Email SHA1 Hashed",
              "Email SHA256 Hashed",
              "Unique Identifier",
              "City",
              "State",
              "Country",
              "Postal Code",
              "Street Address",
              "Address Line 1",
              "Address Line 2",
              "Name",
              "First Name",
              "Middle Name",
              "Last Name",
              "TV Device ID",
              "IP Address",
              "phone",
              "Hashed Customer ID"
            ],
            "description": "unique user identifier type"
          },
          "delimiter": {
            "type": "string",
            "enum": [
              "",
              "Semicolon",
              "Tab",
              "Comma",
              "Pipe"
            ],
            "description": "character or sequence of characters that separates data into separate fields"
          },
          "isPii": {
            "type": "boolean",
            "default": false
          },
          "isUserIdField": {
            "type": "boolean",
            "default": false
          },
          "isExcluded": {
            "type": "boolean",
            "default": false
          },
          "isPartitionColumn": {
            "type": "boolean",
            "default": false,
            "description": "Indicates whether this field is a partition column"
          },
          "partitionFieldConfig": {
            "$ref": "#/components/schemas/PartitionFieldConfig"
          }
        }
      },
      "PartitionFieldConfig": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Fixed",
              "Range",
              "Rolling"
            ],
            "description": "Fixed is used for String and Integer type fields, Range and Rolling is for Date and Timestamp"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rollingUnit": {
            "type": "string",
            "enum": [
              "Days",
              "Months"
            ],
            "description": "Applicable only in case of Rolling Date and Timestamp fields"
          },
          "isEnforced": {
            "type": "boolean",
            "default": false,
            "description": "Indicates whether the partition field values are enforced for the CRQ run"
          }
        }
      },
      "DataConnectionViewResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the data connection view"
          },
          "name": {
            "type": "string",
            "description": "Name of the data connection view"
          },
          "query": {
            "type": "string",
            "description": "SQL query for the data connection view"
          },
          "version": {
            "type": "string",
            "description": "Version of the data connection view"
          },
          "stage": {
            "type": "string",
            "description": "Stage of the data connection view"
          },
          "sourceId": {
            "type": "string",
            "description": "ID of the data source associated with the view"
          },
          "status": {
            "type": "string",
            "description": "Status of the data connection view"
          },
          "importDataTypeId": {
            "type": "string",
            "description": "ID of the import data type associated with the view"
          },
          "dataConnections": {
            "type": "array",
            "description": "Source data connections referenced by the view",
            "items": {
              "$ref": "#/components/schemas/DataConnectionViewSource"
            }
          },
          "fields": {
            "type": "array",
            "description": "Output fields defined for the view",
            "items": {
              "$ref": "#/components/schemas/DataConnectionViewField"
            }
          },
          "timeAudit": {
            "$ref": "#/components/schemas/TimeAudit"
          },
          "userAudit": {
            "$ref": "#/components/schemas/UserAudit"
          }
        }
      },
      "DataConnectionViewSource": {
        "type": "object",
        "properties": {
          "dataConnectionId": {
            "type": "string",
            "description": "ID of the source data connection"
          },
          "dataConnectionName": {
            "type": "string",
            "description": "Name of the source data connection"
          },
          "macro": {
            "type": "string",
            "description": "Macro alias for the source data connection in the view query"
          },
          "dataSourceId": {
            "type": "string",
            "description": "ID of the data source for the source data connection"
          },
          "fieldConfigurations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldConfiguration"
            }
          }
        }
      },
      "DataConnectionViewField": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the output field"
          },
          "type": {
            "type": "string",
            "description": "Data type of the output field"
          }
        }
      },
      "TimeAudit": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp for when the object was created"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp for when the object was last updated"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp for when the object was deleted (if applicable)"
          }
        }
      },
      "UserAudit": {
        "type": "object",
        "properties": {
          "createdBy": {
            "type": "string",
            "description": "Identifier of the user who created the object"
          },
          "updatedBy": {
            "type": "string",
            "description": "Identifier of the user who last updated the object"
          }
        }
      },
      "ReturnObject": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ]
      }
    },
    "securitySchemes": {
      "application": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://api.habu.com/v1/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "servers": [
    {
      "description": "External APIs for Customer Integration",
      "url": "https://api.habu.com/v1/"
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false
  }
}
```