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

# List customers

> Page through customers on the workspace.

Returns a [cursor-paginated](/pagination) list of onyes on the
workspace, newest first.

## Query parameters

<ParamField query="cursor" type="string">Cursor returned by the previous page.</ParamField>
<ParamField query="limit" type="integer" default="10">Page size, between `1` and `100`.</ParamField>

## Response

<ResponseField name="data" type="Onye[]">Page of customers. Each item matches the [Create response](/customers/create#response).</ResponseField>
<ResponseField name="next_cursor" type="string | null">Cursor for the next page, or `null` on the last page.</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -G https://api.kwugwo.africa/v1/onye \
    -H "Authorization: Bearer $KWUGWO_SECRET_KEY" \
    --data-urlencode "limit=50"
  ```

  ```js Node theme={null}
  const page = await fetch("https://api.kwugwo.africa/v1/onye?limit=50", {
    headers: { Authorization: `Bearer ${process.env.KWUGWO_SECRET_KEY}` },
  }).then(r => r.json());
  ```

  ```php PHP theme={null}
  <?php
  $ch = curl_init("https://api.kwugwo.africa/v1/onye?limit=50");
  curl_setopt_array($ch, [
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_HTTPHEADER     => ['Authorization: Bearer ' . getenv('KWUGWO_SECRET_KEY')],
  ]);
  $page = json_decode(curl_exec($ch), true);
  curl_close($ch);
  ```

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

  page = requests.get(
      "https://api.kwugwo.africa/v1/onye",
      headers={"Authorization": f"Bearer {os.environ['KWUGWO_SECRET_KEY']}"},
      params={"limit": 50},
  ).json()
  ```

  ```go Go theme={null}
  req, _ := http.NewRequest("GET", "https://api.kwugwo.africa/v1/onye?limit=50", nil)
  req.Header.Set("Authorization", "Bearer "+os.Getenv("KWUGWO_SECRET_KEY"))
  resp, _ := http.DefaultClient.Do(req)
  defer resp.Body.Close()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": [
      {
        "uid": "ony.VCvr.7K2qPmRtV9xLnQ8sD1cYwHfE",
        "email": "ada@example.com",
        "first_name": "Ada",
        "last_name": "Okeke",
        "status": "active"
      }
    ],
    "next_cursor": null
  }
  ```
</ResponseExample>
