---
title: "Retrieve all email folders"
method: GET
path: "/email/v1/folders"
tags: ["emailService"]
---

# Retrieve all email folders

`GET /email/v1/folders`

Retrieves a list of email folders associated with the user.

## Response `200`

OK

- object
  - `data` EmailFolders[]
    - EmailFolder[]
      - `id` integer
      - `email_id` integer
      - `parent_id` integer, nullable
      - `folder_name` string
      - `path` string
      - `delimitter` string
      - `is_trash` boolean
      - `is_spam` boolean
      - `is_draft` boolean
      - `is_junk` boolean
      - `is_sent` boolean
      - `is_inbox` boolean
      - `is_pending` boolean
      - `has_children` boolean
      - `is_root` boolean
      - `is_deleted` boolean
      - `message_count` integer
      - `unread_message_count` integer
  - `meta` Meta
    - `currentPage` number
    - `from` number
    - `lastPage` number
    - `links` object[]
      - `url` string
      - `label` string
      - `active` boolean
    - `path` string
    - `perPage` number
    - `to` number
    - `total` number

## Other responses

- `401` — Access token is missing or invalid
- `403` — Forbidden
- `404` — Resource not found

---

[API](https://skmtc.net/uspacy/apis/uspacy-api-2.md) · [All operations](https://skmtc.net/uspacy/apis/uspacy-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uspacy/uspacy-api-2/revisions/c3f48fd1c26b/schema)
