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
offsetnumberNumber of records to skip (for pagination)
sortByenumField to sort by: name (default) or creationDate
sortDirectionenumSort direction: asc (default) or desc
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"}

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,
          "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
      }
    }
  ]
}

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
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