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

# Read data by hub, data type name and Title

> Returns one record found by its hub, its data type name and its Title (`dataId`), with relations expanded as in **Read data by ID**. Encode a space in the Title as `%20`.

Requires permission `view/data`.



## OpenAPI

````yaml /openapi/public/openapi-data.json get /data/hub/{hubId}/type/{dataTypeName}/{data_id}
openapi: 3.0.0
info:
  title: API - Data
  version: 3.0.0
  description: API Documentation - RESTful API for field operations management.
servers:
  - url: https://apiweb.mile.app/api/v3
security:
  - bearerAuth: []
tags:
  - name: Data Source
    description: >-
      The Data source could help you simplify the process of filling in task
      information based on existing data in the app. This data could consist of
      information such as name, number, date, coordinate, and multiple options.
      The Data typically represents entities such as customers, products,
      employees, suppliers, or any other critical data elements that are used
      across the application.


      **To see the details of data source object, please follow [this
      link](#tag/data_source_model)**
  - name: Data Type
    description: >-
      The Data type is the structure of data fields that is customizable to suit
      your business needs. Data type attributes consist of IDs, name, field
      details, type, and primary key. This data type structure will be used at
      Data Source and Flow.


      **To see the details of data type object, please follow [this
      link](#tag/data_type_model)**
paths:
  /data/hub/{hubId}/type/{dataTypeName}/{data_id}:
    get:
      tags:
        - Data Source
      summary: Read data by hub, data type name and Title
      description: >-
        Returns one record found by its hub, its data type name and its Title
        (`dataId`), with relations expanded as in **Read data by ID**. Encode a
        space in the Title as `%20`.


        Requires permission `view/data`.
      operationId: getDataByDataId
      parameters:
        - name: hubId
          in: path
          required: true
          description: |-
            The record's hub `_id`.
            **Example:** `65c1f68ea735b522d370ea25`
          schema:
            type: string
        - name: dataTypeName
          in: path
          required: true
          description: |-
            The data type name.
            **Example:** `Outlet`
          schema:
            type: string
        - name: data_id
          in: path
          required: true
          description: |-
            The record Title.
            **Example:** `OUT-0012`
          schema:
            type: string
        - name: expand
          in: query
          required: false
          description: Expand relations two levels deep instead of one.
          schema:
            type: boolean
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                example:
                  status: true
                  message: Success
                  data:
                    _id: 6aec2e6974e959b1f2094655
                    dataTypeId: 6abcadb6a138a6318d023ec5
                    hubId: 65c1f68ea735b522d370ea25
                    dataId: OUT-0012
                    outletName: Toko Sumber Rejeki
                    channel: retail
                    region:
                      _id: 6abcadb6a138a6318d02a001
                      dataId: JBR
                      regionName: West Java
                    limitUser:
                      - all
                    organizationId: 65c1f4eeca7c4816d94587b2
                    createdBy: admin@example.com
                    createdTime: '2026-11-05 07:21:13'
                    updatedTime: '2026-11-05 07:21:13'
                    data_type:
                      _id: 6abcadb6a138a6318d023ec5
                      name: Outlet
                additionalProperties: true
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: Shows if the request was successful.
                  message:
                    type: string
                    description: A short message explaining what went wrong.
                example:
                  status: false
                  message: Data not found
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: Shows if the request was successful.
                  message:
                    type: string
                    description: A short message explaining what went wrong.
                example:
                  status: false
                  message: Internal server error, please contact support@mile.app.
      deprecated: false
      security:
        - bearerAuth: []
      servers:
        - url: https://apiweb.mile.app/api/v4
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use a valid Bearer token to authenticate.

````

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