Get Campaign Audience

Returns the paginated list of customers in a campaign's audience.

GET https://api.platica.mx/v1/campaigns/{campaignId}/audience

URL parameters

ParameterTypeDescriptionRequirement
campaignIdstringUnique identifier of the campaignrequired

Query parameters

ParameterTypeDescriptionRequired
limitnumberMaximum customers in the response per workspace. Maximum: 500. Default: 50
offsetnumberNumber of records to skip (for pagination)
sortByenumSort field: lastUpdate (default) or creationDate
sortDirectionenumSort direction: desc (default) or asc

Response

{
  "workspaces": [
    {
      "id": "ws_abc123",
      "name": "Empresa Principal",
      "clientsCount": 2,
      "clients": [
        {
          "id": "client_abc001",
          "phoneNumber": "521234567890",
          "name": "Ana García",
          "firstname": "Ana",
          "lastname": "García",
          "email": "ana.garcia@example.com",
          "birthdate": null,
          "gender": "female",
          "company": "Acme S.A.",
          "country": "MX",
          "state": "Jalisco",
          "city": "Guadalajara",
          "address": null,
          "postalCode": null,
          "tags": [
            "campaign-abc123",
            "Lead Calificado"
          ],
          "owners": [
            "agente@empresa.com"
          ],
          "customFields": {},
          "creationDate": "2026-03-02T18:32:28.903Z",
          "lastUpdate": "2026-03-05T16:54:25.221Z"
        },
        {
          "id": "client_abc002",
          "phoneNumber": "529876543210",
          "name": "Carlos Mendoza",
          "firstname": "Carlos",
          "lastname": "Mendoza",
          "email": null,
          "birthdate": null,
          "gender": null,
          "company": null,
          "country": null,
          "state": null,
          "city": null,
          "address": null,
          "postalCode": null,
          "tags": [
            "campaign-abc123"
          ],
          "owners": [],
          "customFields": {},
          "creationDate": "2026-03-03T10:15:00.000Z",
          "lastUpdate": "2026-03-03T10:15:00.000Z"
        }
      ],
      "pagination": {
        "limit": 50,
        "offset": 0,
        "hasMore": false
      }
    }
  ]
}

Response fields

FieldTypeDescription
workspacesarrayList of workspaces with the paginated audience

Each item in workspaces[]

FieldTypeDescription
idstringWorkspace ID
namestringWorkspace name
clientsarrayList of customers in the audience

Each item in clients[]

FieldTypeDescription
idstringInternal customer ID
phoneNumberstringPhone number in international format
namestring | nullCustomer full name
firstnamestring | nullCustomer first name
lastnamestring | nullCustomer last name
emailstring | nullEmail address
birthdatestring | nullDate of birth in ISO 8601
genderstring | nullGender
companystring | nullCompany
countrystring | nullCountry
statestring | nullState
citystring | nullCity
addressstring | nullAddress
postalCodestring | nullPostal code
tagsstring[]Customer tags (includes the campaign tag)
ownersstring[]Emails of users responsible for the customer
customFieldsobjectCustomer custom fields
creationDatestring | nullCreation date in ISO 8601
lastUpdatestring | nullLast update date in ISO 8601

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