Parameters used in all requests are described here.
Parameters
Name
Type
Requirement
Description
shop_id
string
required
Unique Store Key in PersonaClick. Located there: Account > Settings > Store Settings
shop_secret
string
required
Store Secret Key in PersonaClick. Located there: Account > Settings > Store Settings
email
string
required if "phone" property doesn't use
Email of the user to be added to the static segment.
phone
string
required if "email" property doesn't use
The phone number of the user to be added to the static segment.
Adding to a segment
Method Objective
The method allows adding the current user to a segment.
Request
Endpoint
Request Type
Content-Type
https://api.personaclick.com/segments/add
POST
application/x-www-form-urlencoded
Parameters
Only parameters related to the request for the adding user to the segment are listed here. See "Basic Details" above for more information on required parameters.
Name
Type
Description
segment_id
number/string
Segment ID. It's available in the PersonaClick account: CRM > Segments.
API Response Code
HTTP status code
Description
200 OK
The request was successful.
403 Forbidden
The request was unsuccessful.
404 Not Found
There are no mandatory parameters in the request.
API Response Data
The response is JSON type with the following properties:
The method allows excluding the current user from a segment.
Request
Endpoint
Request Type
Content-Type
https://api.personaclick.com/segments/remove
POST
application/x-www-form-urlencoded
Parameters
Only parameters related to the request for the removing user from the segment are listed here. See "Basic Details" above for more information on required parameters.
API Response Code
HTTP status code
Description
200 OK
The request was successful.
403 Forbidden
The request was unsuccessful.
404 Not Found
There are no mandatory parameters in the query.
API Response Data
The response is JSON type with the following properties: