2021-05-14
1import requests23url = "https://withpersona.com/api/v1/list-item/email-addresses"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": "list-item/email-address",4 "id": "liea_wt5cgLbSi7twJ8itK7jxCs8q",5 "attributes": {6 "status": "pending",7 "archived-at": {},8 "updated-at": "2020-09-18T17:58:06.866Z",9 "created-at": "2020-09-18T17:58:06.866Z",10 "match-count": 0,11 "value": "joe-imposter@yahoo.com",12 "match-type": "email_address"13 },14 "relationships": {15 "creator": {16 "data": {}17 }18 }19 }20}
Create a new item in a <<glossary:list>>.