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

# Get Subscriber

> Retrieve detailed information about a specific subscriber

## Overview

Retrieve complete details about a specific subscriber including their profile information, group memberships, custom fields, and notes.

## Authentication

<ParamField header="Authorization" type="string" required>
  Bearer token. Format: `Bearer YOUR_API_KEY`
</ParamField>

## Path Parameters

<ParamField path="subscriberId" type="string" required>
  The unique identifier (UUID) of the subscriber.

  Example: `550e8400-e29b-41d4-a716-446655440000`
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="Subscriber details">
    <ResponseField name="id" type="string">
      Unique identifier (UUID)
    </ResponseField>

    <ResponseField name="email" type="string">
      Email address
    </ResponseField>

    <ResponseField name="first_name" type="string">
      First name
    </ResponseField>

    <ResponseField name="last_name" type="string">
      Last name
    </ResponseField>

    <ResponseField name="phone" type="string">
      Phone number
    </ResponseField>

    <ResponseField name="status" type="string">
      Subscriber status: `active`, `unsubscribed`, `bounced`, or `complained`
    </ResponseField>

    <ResponseField name="groups" type="array">
      Array of groups the subscriber belongs to

      <Expandable title="Group object">
        <ResponseField name="id" type="string">
          Group UUID
        </ResponseField>

        <ResponseField name="name" type="string">
          Group name
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="custom_fields" type="object">
      Object containing custom field key-value pairs
    </ResponseField>

    <ResponseField name="notes" type="array">
      Array of notes added to the subscriber
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 timestamp of creation
    </ResponseField>

    <ResponseField name="updated_at" type="string">
      ISO 8601 timestamp of last update
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.mailgreet.com/api/v1/external/subscribers/550e8400-e29b-41d4-a716-446655440000" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const subscriberId = '550e8400-e29b-41d4-a716-446655440000';

  const response = await fetch(
    `https://api.mailgreet.com/api/v1/external/subscribers/${subscriberId}`,
    {
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY'
      }
    }
  );

  const data = await response.json();
  console.log(data);
  ```

  ```python Python theme={null}
  import requests

  subscriber_id = '550e8400-e29b-41d4-a716-446655440000'

  response = requests.get(
      f'https://api.mailgreet.com/api/v1/external/subscribers/{subscriber_id}',
      headers={'Authorization': 'Bearer YOUR_API_KEY'}
  )

  print(response.json())
  ```

  ```php PHP theme={null}
  <?php
  $subscriberId = '550e8400-e29b-41d4-a716-446655440000';

  $ch = curl_init();

  curl_setopt_array($ch, [
      CURLOPT_URL => "https://api.mailgreet.com/api/v1/external/subscribers/{$subscriberId}",
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_HTTPHEADER => [
          'Authorization: Bearer YOUR_API_KEY'
      ]
  ]);

  $response = curl_exec($ch);
  curl_close($ch);

  echo $response;
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "success": true,
    "data": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "email": "john@example.com",
      "first_name": "John",
      "last_name": "Doe",
      "phone": "+1234567890",
      "status": "active",
      "groups": [
        {
          "id": "770e8400-e29b-41d4-a716-446655440002",
          "name": "Newsletter"
        },
        {
          "id": "880e8400-e29b-41d4-a716-446655440003",
          "name": "Product Updates"
        }
      ],
      "custom_fields": {
        "company": "Acme Inc",
        "role": "Marketing Manager",
        "signup_source": "website"
      },
      "notes": [
        {
          "id": "note-uuid",
          "content": "VIP customer - prioritize support",
          "created_at": "2026-01-15T10:30:00Z"
        }
      ],
      "created_at": "2026-01-13T12:00:00Z",
      "updated_at": "2026-01-18T14:00:00Z"
    }
  }
  ```

  ```json 404 - Not Found theme={null}
  {
    "success": false,
    "error": "Subscriber not found"
  }
  ```

  ```json 401 - Unauthorized theme={null}
  {
    "success": false,
    "error": "Invalid or missing API key"
  }
  ```
</ResponseExample>
