# Get Document Types

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/masters/mastersetup/document-type:
    get:
      summary: Get Document Types
      deprecated: false
      description: ''
      tags:
        - empeo/Core HR/Employee
      parameters:
        - name: Content-Type
          in: header
          description: 'Accepted value: application/json'
          required: true
          example: application/json
          schema:
            type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: Api subscription key get from the OpenAPI integration setting page
          required: true
          example: WPe123a9RKbcfLQNSztr45
          schema:
            type: string
        - name: Authorization
          in: header
          description: Authorization credential utilized in API requests
          required: true
          example: bearer {your token}
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  message:
                    type: string
                  error:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        typeName:
                          type: string
                          description: Category name
                        typeNameEN:
                          type: string
                          description: Category name (in English)
                        masterTypes:
                          type: array
                          items:
                            type: object
                            properties:
                              typeId:
                                type: integer
                                description: Document type ID for adding/updating data
                              typeName:
                                type: string
                                description: Document type name
                              typeNameEN:
                                type: string
                                description: Document type name (in English)
                            x-apidog-orders:
                              - typeId
                              - typeName
                              - typeNameEN
                            x-apidog-ignore-properties: []
                          description: MasterType values
                      x-apidog-orders:
                        - typeName
                        - typeNameEN
                        - masterTypes
                      x-apidog-ignore-properties: []
                x-apidog-orders:
                  - statusCode
                  - message
                  - error
                  - data
                x-apidog-ignore-properties: []
              example:
                statusCode: 200
                message: OK
                data:
                  typeName: ประเภทเอกสาร
                  typeNameEN: Document types
                  masterTypes:
                    - typeId: 1785
                      typeName: สำเนาวุฒิการศึกษา
                      typeNameEN: สำเนาวุฒิการศึกษา
                    - typeId: 1786
                      typeName: เอกสารอบรม
                      typeNameEN: 'Training '
                    - typeId: 1804
                      typeName: สำเนาบัตรประชาชน
                      typeNameEN: อ
                    - typeId: 1805
                      typeName: สำเนาทะเบียนบ้าน
                      typeNameEN: สำเนาทะเบียนบ้าน
          headers: {}
          x-apidog-name: Success
        x-200:User authentication required V2.:
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Required%20authorization'
                  status:
                    $ref: '#/components/schemas/Response%20Error%20Msg%20'
                required:
                  - data
                  - status
                x-apidog-orders:
                  - data
                  - status
                x-apidog-ignore-properties: []
              example:
                data:
                  subCode: E9103
                  description: Authorization credentials required
                  metadata: {}
                status:
                  code: '4001'
                  description: Business error with 1 errors
          headers: {}
          x-apidog-name: User authentication required V2.
      security:
        - bearerAuth: []
          x-apidog:
            schemeGroups:
              - id: uyL_cJmK7q60QJZRTi5ot
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: uyL_cJmK7q60QJZRTi5ot
            scopes:
              uyL_cJmK7q60QJZRTi5ot:
                bearerAuth: []
      x-apidog-folder: empeo/Core HR/Employee
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-3869863-run
components:
  schemas:
    'Response Error Msg ':
      type: object
      properties:
        code:
          type: string
          x-apidog-mock: '4001'
        description:
          type: string
          x-apidog-mock: Business error with 1 errors
      required:
        - code
        - description
      x-apidog-orders:
        - code
        - description
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Required authorization:
      type: object
      properties:
        subCode:
          type: string
          x-apidog-mock: E9103
        description:
          type: string
          x-apidog-mock: Authorization credentials required
        metadata:
          type: object
          properties: {}
          x-apidog-orders: []
          x-apidog-ignore-properties: []
      required:
        - subCode
        - description
        - metadata
      x-apidog-orders:
        - subCode
        - description
        - metadata
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
