2021-05-14
1import requests23url = "https://withpersona.com/api/v1/importer/list-item/phone-numbers"45payload = {}6headers = {7 "Authorization": "<apiKey>",8 "Content-Type": "application/json"9}1011response = requests.post(url, json=payload, headers=headers)1213print(response.json())
1{2 "data": {3 "type": "importer/list-item/phone-numbers",4 "id": "mprt_TKqquVbHaSVYqgWhxNjuYDjQ",5 "attributes": {6 "status": "pending",7 "created-at": "2020-07-12T17:16:54.656Z",8 "completed-at": {},9 "error-count": 0,10 "successful-count": 0,11 "duplicate-count": 012 }13 }14}
Importing list items allows you to upload a CSV file with each row being a new List Item.
The columns we allow are