POST
/
people
/
search
curl --request POST \
  --url https://api.rallyuxr.com/api/public/v1/people/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "attachProperties": [
    "EMAIL",
    "FIRST_NAME",
    "LAST_NAME"
  ],
  "allowlistInternalProperties": [
    "NAME",
    "CONTACT_STATUS",
    "OPTED_OUT"
  ],
  "blocklistInternalProperties": [
    "NAME"
  ],
  "segmentIds": [
    "<string>"
  ],
  "studyIds": [
    "<string>"
  ],
  "panelIds": [
    "<string>"
  ],
  "peopleIds": [
    "<string>"
  ],
  "studyId": "<string>",
  "filter": {
    "operator": "AND",
    "filters": [
      {
        "customProperty": {
          "propertyType": "STRING",
          "propertyGroup": "CUSTOM_PROPERTY",
          "propertyName": "CUSTOM_PROPERTY",
          "propertyId": "custom_property_1",
          "operator": "IS",
          "value": "some value"
        }
      }
    ],
    "sort": {
      "operator": "ASC",
      "propertyGroup": "PERSON",
      "propertyName": "NAME"
    }
  },
  "pageInfo": {
    "size": 10
  }
}'
{
  "results": [
    {
      "personId": "<string>",
      "email": "<string>",
      "properties": [
        {
          "propertyType": "STRING",
          "propertyId": "cm0b4eokq000vbbsimwelll3u",
          "value": "Blue"
        }
      ],
      "populationIds": [
        "<string>"
      ]
    }
  ],
  "total": 123,
  "pageInfo": {
    "hasNextPage": true,
    "hasPreviousPage": true,
    "startCursor": "<string>",
    "endCursor": "<string>"
  },
  "errors": [
    {
      "errorCode": "UNAUTHORIZED",
      "propertyId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Search for people

Response

200
application/json

Successfully retrieved people

Response for a search of people