# List Connected Accounts

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/onebox/connected-accounts:
    get:
      summary: List Connected Accounts
      deprecated: false
      description: Retrieve list of email accounts connected to the user/workspace
      tags:
        - zapbox
      parameters:
        - 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:
                        id:
                          type: integer
                        first_name:
                          type: string
                        last_name:
                          type: string
                        email_account:
                          type: string
                        provider:
                          type: string
                        status:
                          type: string
                        profile_picture:
                          type: 'null'
                      required:
                        - id
                        - first_name
                        - last_name
                        - email_account
                        - provider
                        - status
                        - profile_picture
                      x-apidog-orders:
                        - id
                        - first_name
                        - last_name
                        - email_account
                        - provider
                        - status
                        - profile_picture
                  pagination:
                    type: object
                    properties:
                      currentPage:
                        type: integer
                      totalPages:
                        type: integer
                      totalCount:
                        type: integer
                      limit:
                        type: integer
                      hasNextPage:
                        type: boolean
                      hasPrevPage:
                        type: boolean
                    required:
                      - currentPage
                      - totalPages
                      - totalCount
                      - limit
                      - hasNextPage
                      - hasPrevPage
                    x-apidog-orders:
                      - currentPage
                      - totalPages
                      - totalCount
                      - limit
                      - hasNextPage
                      - hasPrevPage
                  userId:
                    type: string
                required:
                  - success
                  - data
                  - pagination
                  - userId
                x-apidog-orders:
                  - success
                  - data
                  - pagination
                  - userId
          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-26767206-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
