# get emails from a thread

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/onebox/thread-emails:
    get:
      summary: get emails from a thread
      deprecated: false
      description: |+
        Get all emails in a specific conversation thread

      tags:
        - zapbox
      parameters:
        - name: threadId
          in: query
          description: ''
          required: true
          example: abc123
          schema:
            type: string
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: YOUR_API_KEY
          schema:
            type: string
        - name: x-workspace-id
          in: header
          description: ''
          required: false
          example: workspace_123
          schema:
            type: string
        - name: x-service-provider
          in: header
          description: ''
          required: false
          example: GOOGLE
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        provider:
                          type: string
                        threadId:
                          type: string
                        messageId:
                          type: string
                        subject:
                          type: string
                        date:
                          type: string
                        from:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              address:
                                type: string
                            required:
                              - name
                              - address
                            x-apidog-orders:
                              - name
                              - address
                        to:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              address:
                                type: string
                            required:
                              - name
                              - address
                            x-apidog-orders:
                              - name
                              - address
                        cc:
                          type: array
                          items:
                            type: string
                        body:
                          type: object
                          properties:
                            plain:
                              type: string
                            html:
                              type: string
                          required:
                            - plain
                            - html
                          x-apidog-orders:
                            - plain
                            - html
                        labels:
                          type: array
                          items:
                            type: string
                        folderPath:
                          type: string
                        isRead:
                          type: boolean
                        isStarred:
                          type: boolean
                        hasAttachments:
                          type: boolean
                        attachments:
                          type: array
                          items:
                            type: string
                      required:
                        - provider
                        - threadId
                        - messageId
                        - subject
                        - date
                        - from
                        - to
                        - cc
                        - body
                        - labels
                        - folderPath
                        - isRead
                        - isStarred
                        - hasAttachments
                        - attachments
                      x-apidog-orders:
                        - provider
                        - threadId
                        - messageId
                        - subject
                        - date
                        - from
                        - to
                        - cc
                        - body
                        - labels
                        - folderPath
                        - isRead
                        - isStarred
                        - hasAttachments
                        - attachments
                required:
                  - success
                  - data
                x-apidog-orders:
                  - success
                  - data
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: zapbox
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-26786134-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
