> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deasylabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List

> Retrieve all data slices associated with the currently authenticated user.

### Response

Returns a JSON object containing a list of dataslices:

```json
{
  "dataslices": [
    {
      "dataslice_id": "string",
      "dataslice_name": "string",
      "description": "string",
      "status": "active",
      "data_points": 123,
      "latest_taxonomy": { /* taxonomy details */ },
      "taxonomy_id": "string",
      "data_connector_name": "string",
      "parent_dataslice_id": "string or null",
      "is_owner": true,
      "can_delete": true
    },
    ...
  ]
}
```

`is_owner` is true when the caller created the slice. `can_delete` is true when
the caller holds the Contributor role or above and is either the creator or a
tenant admin.



## OpenAPI

````yaml /deasy-openapi.yml get /dataslice/list
openapi: 3.1.0
info:
  title: Collibra Unstructured API
  description: >
    REST API for Collibra Unstructured.


    ## Authentication


    Every endpoint accepts either HTTP Basic credentials, or a bearer token sent
    together with the

    `X-User-ID` header identifying the user the call runs as.


    ## Base URL


    Your Unstructured deployment, for example
    `https://unstructured.your-company.com/rest/unstructured`.
  version: 0.1.14
servers:
  - url: /rest/unstructured
security:
  - BasicAuth: []
  - BearerAuth: []
    UserIdAuth: []
tags:
  - name: Core
    description: Endpoints for core functionality
  - name: Data
    description: Endpoints for source data
  - name: Metadata
    description: Endpoints for metadata management
  - name: Tags
    description: Endpoints for tag management
  - name: Taxonomy
    description: Endpoints for taxonomy management
  - name: Dataslice
    description: Endpoints for dataslice management
  - name: Progress Tracker
    description: Endpoints for tracking progress
  - name: Classification
    description: Endpoints for classification
  - name: Ingestion
    description: Endpoints for document ingestion
  - name: Workflows
    description: Endpoints for workflow management
  - name: Deduplication
    description: Endpoints for deduplication
paths:
  /dataslice/list:
    get:
      tags:
        - Data Slices
      summary: List
      description: >-
        Retrieve all data slices associated with the currently authenticated
        user.


        ### Response


        Returns a JSON object containing a list of dataslices:


        ```json

        {
          "dataslices": [
            {
              "dataslice_id": "string",
              "dataslice_name": "string",
              "description": "string",
              "status": "active",
              "data_points": 123,
              "latest_taxonomy": { /* taxonomy details */ },
              "taxonomy_id": "string",
              "data_connector_name": "string",
              "parent_dataslice_id": "string or null",
              "is_owner": true,
              "can_delete": true
            },
            ...
          ]
        }

        ```


        `is_owner` is true when the caller created the slice. `can_delete` is
        true when

        the caller holds the Contributor role or above and is either the creator
        or a

        tenant admin.
      operationId: list_dataslices_route_dataslice_list_get
      responses:
        '200':
          description: A list of dataslices the user can access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDataslicesResponse'
        '403':
          description: Missing token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: >-
            Internal Server Error. An unexpected error occurred while processing
            the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
      x-codeSamples:
        - lang: Python
          source: |
            # pip install deasy-sdk
            import os
            from deasy import DeasyClient

            client = DeasyClient(
                base_url=os.environ["UNSTRUCTURED_CLIENT_BASE_URL"],
                username=os.environ["UNSTRUCTURED_USERNAME"],
                password=os.environ["UNSTRUCTURED_PASSWORD"],
            )

            response = client.data_slice.list()
            print(response.dataslices)
components:
  schemas:
    ListDataslicesResponse:
      properties:
        dataslices:
          items:
            $ref: '#/components/schemas/DataSliceListItem'
          type: array
          title: Dataslices
      type: object
      required:
        - dataslices
      title: ListDataslicesResponse
    HTTPError:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: HTTPError
    DataSliceListItem:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        datasource:
          type: string
          format: uuid
          title: Datasource
        data_points:
          anyOf:
            - type: integer
            - type: 'null'
          title: Data Points
        last_updated:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Updated
        condition:
          anyOf:
            - $ref: '#/components/schemas/Condition-Output'
            - type: 'null'
        stats:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Stats
        project_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Project Id
        datasource_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Datasource Id
        dataconnector_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Dataconnector Name
        is_owner:
          type: boolean
          title: Is Owner
        can_delete:
          type: boolean
          title: Can Delete
      type: object
      required:
        - id
        - datasource
        - is_owner
        - can_delete
      title: DataSliceListItem
      description: 'A slice as listed to the caller: who may do what, not who created it.'
    Condition-Output:
      properties:
        condition:
          anyOf:
            - $ref: '#/components/schemas/LogicCondition'
            - type: 'null'
        children:
          anyOf:
            - items:
                $ref: '#/components/schemas/Condition-Output'
              type: array
            - type: 'null'
          title: Children
        tag:
          anyOf:
            - $ref: '#/components/schemas/BaseTag'
            - type: 'null'
      type: object
      title: Condition
    LogicCondition:
      type: string
      enum:
        - AND
        - OR
      title: LogicCondition
    BaseTag:
      properties:
        tag_id:
          type: string
          title: Tag Id
        values:
          items:
            anyOf:
              - type: string
              - type: number
              - type: integer
          type: array
          title: Values
          default: []
        operator:
          anyOf:
            - type: string
            - type: 'null'
          title: Operator
          default: any
      type: object
      required:
        - tag_id
      title: BaseTag
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    BearerAuth:
      type: http
      scheme: bearer
    UserIdAuth:
      type: apiKey
      in: header
      name: X-User-ID

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.