Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Method Objective

The method allows importing audiences both in the general list and in a separate segment.

Request

EndpointRequest TypeContent-TypeRate LimitMax Data Size
https://api.personaclick.com/import/suppressedPOSTapplication/json40 requests/minute32 MB/request

Parameters

NameTypeRequirementDescription
shop_idstringrequiredUnique Store Key in PersonaClick. Located there: Account > Settings > Store Settings
shop_secretstringrequiredStore Secret Key in PersonaClick. Located there: Account > Settings > Store Settings
audienceArrayrequiredObject array with the imported emails. See the description below.

Audience Object

Main parameters

Name

Type

Description

email  

string

User Email

API Response Code

HTTP status code

Description
200 OK

The request was successful.

400 Bad RequestUnsuccessful authorization.

Request Example

curl 'https://api.personaclick.com/import/audience' \
  -X 'POST' \
  -H 'content-type: application/json' \
  --data-binary '@data.json'

# data.json
{
  "shop_id": "0d42fd8b713d0752776ca589cc0056",
  "shop_secret": "0123456789abcdef0123456789abcdef",
  "audience": [
    {"email": "john.doe@examplemail.com"},
    {"email": "vasiliy.pupkin@examplemail.com"}
  ]
}
  • No labels