> ## Documentation Index
> Fetch the complete documentation index at: https://doc-dev.weir.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Admin Members

> Retrieve all admin users

# Get Admin Members

Retrieve a list of all admin users in the system.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://api.weir.ai/admin/members' \
    -H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "data": {
      "admins": [
        {
          "adminId": "admin_123456789",
          "fullname": "Admin User",
          "email": "admin@weir.ai",
          "role": "Super_Admin",
          "status": "active",
          "createdAt": "2024-01-01T00:00:00Z",
          "lastLogin": "2024-01-22T14:30:00Z"
        }
      ],
      "total": 1
    },
    "message": "Admin members retrieved successfully",
    "status": "success"
  }
  ```
</ResponseExample>

## Response Fields

<ResponseField name="data.admins" type="array" required>
  Array of admin user objects.

  <Expandable title="Admin Properties">
    <ResponseField name="adminId" type="string" required>
      Unique admin identifier.
    </ResponseField>

    <ResponseField name="fullname" type="string" required>
      Admin's full name.
    </ResponseField>

    <ResponseField name="email" type="string" required>
      Admin's email.
    </ResponseField>

    <ResponseField name="role" type="string" required>
      Admin role.
    </ResponseField>

    <ResponseField name="status" type="string" required>
      Admin status (active, inactive).
    </ResponseField>

    <ResponseField name="lastLogin" type="timestamp">
      Last login timestamp.
    </ResponseField>
  </Expandable>
</ResponseField>

## Usage Examples

<CodeGroup>
  ```javascript JavaScript theme={null}
  const getAdminMembers = async (accessToken) => {
    const response = await fetch('https://api.weir.ai/admin/members', {
      headers: { 'Authorization': `Bearer ${accessToken}` }
    });
    if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
    return await response.json();
  };
  ```

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

  def get_admin_members(access_token):
      response = requests.get(
          'https://api.weir.ai/admin/members',
          headers={'Authorization': f'Bearer {access_token}'}
      )
      response.raise_for_status()
      return response.json()
  ```
</CodeGroup>
