> This page is for Unified.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

The `Mailbox` object is used to represent an email mailbox.

### The Mailbox Object

```json
{
  "id": "string",
  "remote_id": "string",
  "created_at": "2023-01-01T00:00:00Z",
  "modified_at": "2023-01-01T00:00:00Z",
  "name": "string",
  "type": "USER",
  "folders": [
    "string"
  ],
  "groups": [
    "string"
  ],
  "users": [
    "string"
  ],
  "primary_email_address": "string",
  "alias_email_addresses": [
    "string"
  ],
  "permissions": [
    {
      "id": "string",
      "remote_id": "string",
      "created_at": "2023-01-01T00:00:00Z",
      "modified_at": "2023-01-01T00:00:00Z",
      "effect": "ALLOWED",
      "actions": [
        "READ"
      ],
      "applied_to_users": [
        "string"
      ],
      "applied_to_groups": [
        "string"
      ],
      "applied_to_folders": [
        "string"
      ],
      "applied_to_mailboxes": [
        "string"
      ],
      "remote_was_deleted": true,
      "field_mappings": {
        "organization_defined_targets": {
          "string": {}
        },
        "linked_account_defined_targets": {
          "string": {}
        }
      }
    }
  ],
  "remote_created_at": "2023-01-01T00:00:00Z",
  "remote_updated_at": "2023-01-01T00:00:00Z",
  "remote_was_deleted": true,
  "field_mappings": {
    "organization_defined_targets": {
      "string": {}
    },
    "linked_account_defined_targets": {
      "string": {}
    }
  },
  "remote_data": [
    {
      "path": "string",
      "data": {}
    }
  ],
  "type_native": "string"
}
```

### Schema (`Mailbox`)

```yaml
components:
  schemas:
    MailboxTypeEnum:
      type: string
      enum:
        - USER
        - SHARED
      title: MailboxTypeEnum
    EffectEnum:
      type: string
      enum:
        - ALLOWED
        - DENIED
        - INHERITED
      title: EffectEnum
    ActionsEnum:
      type: string
      enum:
        - READ
      title: ActionsEnum
    PermissionFieldMappings:
      type: object
      properties:
        organization_defined_targets:
          type: object
          additionalProperties:
            description: Any type
        linked_account_defined_targets:
          type: object
          additionalProperties:
            description: Any type
      title: PermissionFieldMappings
    Permission:
      type: object
      properties:
        id:
          type: string
          format: uuid
        remote_id:
          type:
            - string
            - 'null'
          description: The third-party API ID of the matching object.
        created_at:
          type: string
          format: date-time
          description: The datetime that this object was created by Merge.
        modified_at:
          type: string
          format: date-time
          description: The datetime that this object was modified by Merge.
        effect:
          oneOf:
            - $ref: '#/components/schemas/EffectEnum'
            - type: 'null'
          description: The permission's effect.
        actions:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/ActionsEnum'
          description: The actions that this permission applies to.
        applied_to_users:
          type: array
          items:
            type: string
            format: uuid
        applied_to_groups:
          type: array
          items:
            type: string
            format: uuid
        applied_to_folders:
          type: array
          items:
            type: string
            format: uuid
        applied_to_mailboxes:
          type: array
          items:
            type: string
            format: uuid
        remote_was_deleted:
          type: boolean
          description: >-
            Indicates whether or not this object has been deleted in the third
            party platform. Full coverage deletion detection is a premium
            add-on. Native deletion detection is offered for free with limited
            coverage. [Learn
            more](https://docs.merge.dev/integrations/hris/supported-features/).
        field_mappings:
          oneOf:
            - $ref: '#/components/schemas/PermissionFieldMappings'
            - type: 'null'
      description: >-
        # The EmailPermission Object

        ### Description

        The `EmailPermission` object is used to represent a permission on an
        email resource.

        ### Usage Example

        Fetch from the `GET /api/email/v1/email-permissions` endpoint and view
        their email permissions.
      title: Permission
    MailboxFieldMappings:
      type: object
      properties:
        organization_defined_targets:
          type: object
          additionalProperties:
            description: Any type
        linked_account_defined_targets:
          type: object
          additionalProperties:
            description: Any type
      title: MailboxFieldMappings
    RemoteData:
      type: object
      properties:
        path:
          type: string
          description: The third-party API path that is being called.
        data:
          description: >-
            The data returned from the third-party for this object in its
            original, unnormalized format.
      required:
        - path
      description: >-
        # The RemoteData Object

        ### Description

        The `RemoteData` object is used to represent the full data pulled from
        the third-party API for an object.


        ### Usage Example

        TODO
      title: RemoteData
    Mailbox:
      type: object
      properties:
        id:
          type: string
          format: uuid
        remote_id:
          type:
            - string
            - 'null'
          description: The third-party API ID of the matching object.
        created_at:
          type: string
          format: date-time
          description: The datetime that this object was created by Merge.
        modified_at:
          type: string
          format: date-time
          description: The datetime that this object was modified by Merge.
        name:
          type:
            - string
            - 'null'
          description: The name of the mailbox.
        type:
          oneOf:
            - $ref: '#/components/schemas/MailboxTypeEnum'
            - type: 'null'
          description: >-
            The mailbox's type. This field is an open enum: Merge can return a
            value outside this list when an integration provides one it does not
            map. Pass `show_enum_origins=type` to receive the integration's own
            value instead.
        folders:
          type: array
          items:
            type: string
            format: uuid
        groups:
          type: array
          items:
            type: string
            format: uuid
        users:
          type: array
          items:
            type: string
            format: uuid
        primary_email_address:
          type:
            - string
            - 'null'
          format: uuid
          description: The primary email address associated with the mailbox.
        alias_email_addresses:
          type: array
          items:
            type: string
            format: uuid
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/Permission'
        remote_created_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the third party's mailbox was created.
        remote_updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the third party's mailbox was updated.
        remote_was_deleted:
          type: boolean
          description: >-
            Indicates whether or not this object has been deleted in the third
            party platform. Full coverage deletion detection is a premium
            add-on. Native deletion detection is offered for free with limited
            coverage. [Learn
            more](https://docs.merge.dev/integrations/hris/supported-features/).
        field_mappings:
          oneOf:
            - $ref: '#/components/schemas/MailboxFieldMappings'
            - type: 'null'
        remote_data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/RemoteData'
        type_native:
          type:
            - string
            - 'null'
          description: >-
            The third-party value for `type` before Merge normalized it.
            Returned only when `show_native_enum_values=true`.
      title: Mailbox
```