List Customers

Returns the list of customers across all your workspaces with pagination and filtering options.

GET https://api.platica.mx/v1/clients

Query parameters

ParameterTypeDescriptionRequired
limitnumberMaximum customers in the response. Maximum: 200. Default: 50
pageTokenstringnextPageToken cursor from the previous response. Preferred over offset. Cannot be combined with offset, and is invalidated if you change the filters or the sort
offsetnumberNumber of records to skip. Legacy alternative to pageToken; capped at 100000
sortByenumField to sort by: name (default) or creationDate
sortDirectionenumSort direction: asc (default) or desc
statusenumFilter by status: active or blocked. active includes customers that never had an explicit status
searchTermstringReserved. Accepted but does not filter results yet
tagsarrayList of tags to filter by
dateFilterobjectFilter by date or period

Specific date:

GET /v1/clients?dateFilter={"type":"specific","date":"2024-01-15"}

Date range:

GET /v1/clients?dateFilter={"type":"range","startDate":"2024-01-01","endDate":"2024-01-31"}

The listing returns status but not the full moderation object — use Get a Customer for that.

Response

{
  "workspaces": [
    {
      "id": "g6yCA16pkWl5eXo7KszB",
      "name": "ws_1",
      "clients": [
        {
          "id": "167b545fcde641dcb319eca0cc4d7b0f",
          "phoneNumber": "12345678910",
          "name": "José",
          "firstname": "José",
          "lastname": "García",
          "email": "jose@empresa.com",
          "birthdate": null,
          "gender": "male",
          "company": null,
          "country": "MX",
          "state": "Michoacán",
          "city": "Morelia",
          "address": null,
          "postalCode": null,
          "status": "active",
          "tags": [],
          "owners": ["user1@company.com", "user2@company.com"],
          "customFields": {
            "placas": "",
            "id_recepcion": "",
            "fecha_siniestro": ""
          },
          "creationDate": "2025-02-06T16:45:50.146Z",
          "lastUpdate": "2025-02-06T16:45:50.146Z"
        }
      ],
      "clientsCount": 1,
      "pagination": {
        "limit": 50,
        "offset": 0,
        "hasMore": true
      }
    }
  ],
  "nextPageToken": "eyJ2IjoxLCJxIjoiYTFi..."
}

Response fields

FieldDescription
idInternal customer ID
phoneNumberCustomer phone number without the + prefix
nameCustomer full name
firstnameCustomer first name
lastnameCustomer last name
emailEmail address
birthdateDate of birth
genderGender
companyCompany name
countryCountry of residence
stateState of residence
cityCity of residence
addressFull address
postalCodePostal code
statusCustomer status: active or blocked
tagsTags associated with the customer
ownersList of responsible-user emails
customFieldsCustomer custom fields
creationDateCreation date in ISO 8601 format
lastUpdateLast update date in ISO 8601 format

Pagination fields

FieldDescription
clientsCountTotal number of customers returned for that workspace
pagination.limitMaximum number of results requested
pagination.offsetNumber of results skipped
pagination.hasMoreIndicates whether more results exist in that workspace
nextPageTokenCursor to request the next page; null when no results are left. A single token covers every workspace the key can read, which is why it sits at the root instead of inside each one