> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cardclan.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Email Accounts

> Retrieves all email accounts configured for the user's workspaces

Retrieves all email accounts configured for the user's workspaces. Email accounts determine which "From" address will be used when sending cards via email.

## Response Details

Returns an array containing email account choices formatted for integration platforms:

* **key**: Always "email-account" to identify the data type
* **choices**: Array of configured email accounts

Each email account includes:

* **id**: Unique email account identifier
* **name**: Email address (e.g., "[hello@company.com](mailto:hello@company.com)")
* **value**: Same as name/email address
* **key**: Same as ID
* **label**: Description of the field type

## Default Email Option

If you don't want to use a specific email account, you can use `"CardClan"` as the emailAccount value in the [Send Card](/api-reference/integration/actions/send-card) endpoint to use CardClan's default sending email.

## Use Cases

* **Professional Sending**: Send cards from your company's email addresses
* **Brand Consistency**: Maintain consistent sender identity across communications
* **Email Authentication**: Improve deliverability with properly configured domains
* **User Choice**: Let integration users select their preferred sending email

## Example Response

```json theme={null}
[
  {
    "key": "email-account",
    "choices": [
      {
        "key": "60f7b2b5b8f4a20015a4f5a6",
        "value": "hello@company.com",
        "label": "Email account",
        "id": "60f7b2b5b8f4a20015a4f5a6",
        "name": "hello@company.com"
      },
      {
        "key": "60f7b2b5b8f4a20015a4f5a7",
        "value": "support@company.com",
        "label": "Email account",
        "id": "60f7b2b5b8f4a20015a4f5a7",
        "name": "support@company.com"
      }
    ]
  }
]
```

## Configuration Requirements

Email accounts must be configured in your CardClan dashboard before they appear in this endpoint. The accounts need:

* **Verified Domain**: Email domain must be verified
* **SMTP Configuration**: Proper sending credentials configured
* **Workspace Access**: Account must be associated with accessible workspaces


## OpenAPI

````yaml GET /integration/email-accounts
openapi: 3.1.0
info:
  title: CardClan Integration API
  description: >-
    The CardClan Integration API enables third-party applications and automation
    platforms to send personalized digital cards, manage workflows, and
    integrate CardClan's functionality into existing systems.
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://app.cardclan.io/api
security:
  - bearerAuth: []
paths:
  /integration/email-accounts:
    get:
      tags:
        - Data Retrieval
      summary: Get Email Accounts
      description: Retrieves all email accounts configured for the user's workspaces
      responses:
        '200':
          description: Email accounts retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailAccountsResponse'
        '400':
          description: Error fetching email accounts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    EmailAccountsResponse:
      type: array
      items:
        type: object
        properties:
          key:
            type: string
            example: email-account
          choices:
            type: array
            items:
              $ref: '#/components/schemas/EmailAccount'
    Error:
      type: object
      properties:
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: Card ID is required
        statusCode:
          type: number
          example: 400
        timestamp:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00.000Z'
    EmailAccount:
      type: object
      properties:
        key:
          type: string
          example: 60f7b2b5b8f4a20015a4f5a6
        value:
          type: string
          example: hello@company.com
        label:
          type: string
          example: Email account
        id:
          type: string
          example: 60f7b2b5b8f4a20015a4f5a6
        name:
          type: string
          example: hello@company.com
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Enter your CardClan integration key

````