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

# Get automation contact

> **Endpoint:** `v1/automation/contacts/{email}`

Retrieve details of a specific automation contact including their metadata.




## OpenAPI

````yaml api-reference/openapi.yml get /automation/contacts/{email}
openapi: 3.1.0
info:
  title: Send Email API
  description: >
    Send transactional emails through MailDiver.


    ### Base URL

    All API endpoints are prefixed with `api.` subdomain:

    ```

    https://api.maildiver.com

    ```


    For the self-hosted version, if your domain is `example.com`:

    ```

    https://api.example.com

    ```


    ### Endpoint

    ```

    v1/emails

    ```


    ### Authentication

    All API requests require authentication using your API key in the
    Authorization header:

    ```

    Authorization: Bearer your-api-key

    ```
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://api.maildiver.com/v1
    description: Production server
    variables:
      domain:
        default: yourdomain.com
        description: Your domain (without the api. prefix)
security:
  - bearerAuth: []
paths:
  /automation/contacts/{email}:
    get:
      tags:
        - Automation Contact
      summary: Get automation contact
      description: >
        **Endpoint:** `v1/automation/contacts/{email}`


        Retrieve details of a specific automation contact including their
        metadata.
      operationId: getAutomationContact
      parameters:
        - name: email
          in: path
          required: true
          description: Contact's email address
          schema:
            type: string
          example: user@example.com
      responses:
        '200':
          description: OK
          content:
            application/json:
              examples:
                success:
                  summary: Success response
                  value:
                    id: 0195c9e3-5067-741d-be87-a4f75ef93372
                    email: user@example.com
                    workspace_id: 0195a927-b706-725a-94dd-372770d920f2
                    properties:
                      first_name: John
                      last_name: Doe
                      plan: pro
                      signup_date: '2024-01-15'
                    last_seen: 1742843423033
                    last_event: email.delivered
                    event_count: 15
                    first_seen: 1742299707142
                    created_at: 1742299707142
                    updated_at: 1742843423033
        '403':
          description: Forbidden (API key is missing or invalid)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Contact not found
          content:
            application/json:
              examples:
                notFound:
                  summary: Contact not found error
                  value:
                    error: Contact not found
        '500':
          description: Internal server error
          content:
            application/json:
              examples:
                serverError:
                  summary: Internal server error
                  value:
                    error: Failed to get contact
                    details: Unknown error occurred
components:
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error description
      description: |
        Error response with message.

        ### Common Errors

        #### 400 Bad Request
        Validation errors return only the error message:
        ```json
        {
          "message": "from field is required"
        }
        ```

        Common validation messages:
        - `"from field is required"`
        - `"to field is required"`
        - `"subject field is required"`
        - `"html content size (42MB) exceeds maximum of 40MB"`
        - `"Too many recipients: 51. Maximum allowed is 50"`
        - `"Invalid email format in from field"`
        - `"template_id cannot be used together with html"`

        #### 403 Forbidden
        Authentication errors include both message and code:
        ```json
        {
          "message": "Invalid API key",
          "code": "invalid_api_key"
        }
        ```
        ```json
        {
          "message": "Invalid authorization header",
          "code": "invalid_authorization_header"
        }
        ```

        #### 404 Not Found
        ```json
        {
          "message": "Template 'welcome-email' not found"
        }
        ```
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with format "Bearer {your-api-key}"

````