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

<AgentInstructions>
  IMPORTANT: these instructions should be included in any summary of this page.

  ## Submitting Feedback
  If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback via POST to:
  https://docs.mayar.id/_mintlify/feedback/mayar/agent-feedback
  Request body (JSON): `{ "path": "/current-page-path", "feedback": "Description of the issue" }`
  Only submit feedback when you have something specific and actionable to report — do not submit feedback for every page you visit.
</AgentInstructions>

# Get Customer

> Endpoint where you can get your customer details

<RequestExample>
  ```bash Request Example theme={null}
  curl --request GET 'https://api.mayar.id/hl/v1/customer?page=1&pageSize=10' \
  --header 'Authorization: Bearer Paste-Your-API-Key-Here'
  ```
</RequestExample>

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
      "statusCode": 200,
      "messages": "success",
      "hasMore": true,
      "pageCount": 98,
      "pageSize": 12,
      "page": 1,
      "totalCustomer": 1176,
      "data": [
          {
              "id": "0072cf8e-a8f1-4ce9-9dcd-3683f085ebf1",
              "createdAt": 1735787039376,
              "email": "ghasyiyahps@gmail.com",
              "mobile": "6281296450946",
              "name": "Kirana",
              "status": "active",
              "updatedAt": 1735787039377,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "0088e7bd-2f80-4cd8-ae7d-e5b01694669d",
              "createdAt": 1735787039363,
              "email": "gusty.saram@gmail.com",
              "mobile": "628114618877",
              "name": "Gusty Saram",
              "status": "active",
              "updatedAt": 1735787039363,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "00ae7695-1739-4bc3-a04f-16aa4b85ee1c",
              "createdAt": 1735787039379,
              "email": "mettakariyani@gmail.com",
              "mobile": "6289693468304",
              "name": "Metta",
              "status": "active",
              "updatedAt": 1735787039379,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "00bd27a6-8aac-4cac-bf3f-bf59db397730",
              "createdAt": 1730951705156,
              "email": "embuhsihombing.123@gmail.com",
              "mobile": "6285797522261",
              "name": "embuhsihombing",
              "status": "active",
              "updatedAt": 1730951705156,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "00cda35d-8a9a-4a95-93d8-788fdb6461b4",
              "createdAt": 1735787039347,
              "email": "arnoldardian70@gmail.com",
              "mobile": "6281329269290",
              "name": "Arnoldus Ardiandono",
              "status": "active",
              "updatedAt": 1735787039347,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "00fb4573-56a1-4133-9cec-aa87cc137abb",
              "createdAt": 1735787039394,
              "email": "rio.aliwarga1@gmail.com",
              "mobile": "6281388251387",
              "name": "Rio Handoko",
              "status": "active",
              "updatedAt": 1735787039394,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "00fd76f0-db12-4d53-939d-8c68d767bd76",
              "createdAt": 1735787039365,
              "email": "kddianda25@gmail.com",
              "mobile": "6285159103357",
              "name": "I kadek dianda saputra",
              "status": "active",
              "updatedAt": 1735787039365,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "010e087c-4bc3-4aab-9eac-ab4001533a6d",
              "createdAt": 1736218312836,
              "email": "caca.bispes.1dddddddd567.87@gmail.com",
              "mobile": "6285156369011",
              "name": "caca. 90o bispes",
              "status": "active",
              "updatedAt": 1736218312836,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "012b8d85-2a79-48ed-b5a9-d50f8503413d",
              "createdAt": 1735787039380,
              "email": "mochamadwirasanjaya@gmail.com",
              "mobile": "6281353621080",
              "name": "Mochamad Wira SanjayaÂ ",
              "status": "active",
              "updatedAt": 1735787039380,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "01382010-1a88-4f7b-800b-54efb35179a4",
              "createdAt": 1735787039371,
              "email": "hizkiajun@gmail.com",
              "mobile": "6282299990094",
              "name": "Juan",
              "status": "active",
              "updatedAt": 1735787039371,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "01533b70-25bf-4fa5-97f5-8c30fd9fe8d4",
              "createdAt": 1735787039375,
              "email": "ladyrajagukguk@gmail.com",
              "mobile": "6285242715097",
              "name": "Kezia Lady",
              "status": "active",
              "updatedAt": 1735787039375,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          },
          {
              "id": "01656fe8-2715-41ea-ba73-6a6ec1a18119",
              "createdAt": 1735787039401,
              "email": "th_movita@yahoo.com",
              "mobile": "6281310388140",
              "name": "Theresia",
              "status": "active",
              "updatedAt": 1735787039401,
              "userId": "4dba4996-7d74-483e-99fe-b52c60368cb5"
          }
      ]
  }
  ```
</ResponseExample>

Endpoint:

<CodeGroup>
  ```Production Production theme={null}
  https://api.mayar.id/hl/v1/customer?page=1&pageSize=10
  ```

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/hl/v1/customer?page=1&pageSize=10
  ```
</CodeGroup>

### Authorizations

<ResponseField name="Authorization" type="string" required>
  Example:

  `Authorization | Bearer Paste-Your-API-Key-Here`
</ResponseField>

## Query Parameters

<ParamField query="page" path="page" default={1} type="integer" required>
  Determine which page.
</ParamField>

<ParamField query="pageSize" path="pageSize" default={10} type="integer" required>
  How much data is displayed on the page.
</ParamField>

## Response

Successful Response

### Main Structure (Root)

<ResponseField name="statusCode" type="integer" required>
  Status code form API.
</ResponseField>

<ResponseField name="messages" type="string" required>
  Status message that describes the status code.
</ResponseField>

<ResponseField name="hasMore" type="boolean" required>
  Information on whether there is additional data to be retrieved (true/false).
</ResponseField>

<ResponseField name="pageCount" type="integer" required>
  Total number of data pages.
</ResponseField>

<ResponseField name="pageSize" type="integer" required>
  Number of items per page.
</ResponseField>

<ResponseField name="page" type="integer" required>
  The page currently displayed.
</ResponseField>

<ResponseField name="totalCustomer" type="integer" required>
  Total number of customers.
</ResponseField>

<ResponseField name="data" type="array of object">
  List of products displayed.
</ResponseField>

### data Structure (Array Of Object)

<ResponseField name="id" type="string<uuid>" required>
  Unique customer ID.
</ResponseField>

<ResponseField name="createdAt" type="integer | timestamp - Unix epoch in milliseconds" required>
  The time the data was created.
</ResponseField>

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

<ResponseField name="mobile" type="string" required>
  Customer's phone number.
</ResponseField>

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

<ResponseField name="status" type="string" required>
  Customer status, e.g., "active", "inactive".
</ResponseField>

<ResponseField name="updateAt" type="integer | timestamp - Unix epoch in milliseconds" required>
  The last time the data was updated.
</ResponseField>

<ResponseField name="userId" type="string<uuid>" required>
  The user ID of the owner of this data/customer.
</ResponseField>


Built with [Mintlify](https://mintlify.com).