This API request tells you if a user is a part of a segment or not. This is a boolean request and would either return true/false depending on that user's segment membership.
Request Type: GET
Response Format: JSON
- useriq-api-key (required): Your valid API key generated from the Site settings page
The user_id of the user to be updated with the associated custom data attribute (Note: this should match the value passed in the UserIQ tracking code as 'user_id').
Description: The segment_id of that particular segment has to passed in the query.
Example cURL Request:
curl \Example Result
-H "Content-type: application/json" \
-H "useriq-api-key: 572d7372829a3211a73d9c2cb790ffe3" \
200: OK. Request processed successfully
400: Bad Request. API request could not be understood by the server.
401: Unauthorized. Invalid API access token.