# at.happyproto.admin.listCustomers

> The members of the customers space: everyone the customer endpoints admit. Staff only.

- Kind: query
- Authority: admin.happyproto.at
- Lexicon: 1
- Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.admin.listCustomers)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.admin.listCustomers/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.admin.listCustomers/analytics)

## Query (`at.happyproto.admin.listCustomers`)

Type: query · GET

### Output (application/json)

- `customers` (array, required)
  - `items` (ref)
    - Reference: `#customer`

### Errors

- `AuthRequired`: This endpoint requires an authenticated caller.
- `Forbidden`: The caller is not HappyProto staff.
- `Upstream`: The customers space is not configured or cannot be read.

## #customer (`at.happyproto.admin.listCustomers#customer`)

Type: object

### Properties

- `did` (string · did, required)
- `handle` (string · handle): Present when the membership record carries one.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "customer": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "handle": {
          "description": "Present when the membership record carries one.",
          "format": "handle",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "main": {
      "description": "The members of the customers space: everyone the customer endpoints admit. Staff only.",
      "errors": [
        {
          "description": "This endpoint requires an authenticated caller.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller is not HappyProto staff.",
          "name": "Forbidden"
        },
        {
          "description": "The customers space is not configured or cannot be read.",
          "name": "Upstream"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "customers": {
              "items": {
                "ref": "#customer",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "customers"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.admin.listCustomers",
  "lexicon": 1
}
```
