Create contact
Create a new contact in Copyfactory
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
'data': {'status': 'Contact successfully queued.'}
}curl --location --request POST 'https://app.copyfactory.io/api/v2/contact/' \
--header 'Authorization: API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": '[email protected]',
"sequence_id": 0,
"linkedin_handle": 'https://www.linkedin.com/in/my-handle/',
"playbook_id": 0,
"do_enrichment": False,
"custom_fields": {'custom_field':'Custom value'},
}'import requests
import json
url = "https://app.copyfactory.io/api/v2/contact/"
payload = json.dumps({
"email": '[email protected]',
"sequence_id": 0,
"linkedin_handle": 'https://www.linkedin.com/in/my-handle/',
"playbook_id": 0,
"do_enrichment": False,
"custom_fields": {'custom_field':'Custom value'},
})
headers = {
'Authorization': 'API-KEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)Last updated