curl --request POST \
--url https://app.getaptly.com/api/contacts \
--header 'Content-Type: application/json' \
--header 'x-token: <x-token>' \
--data '
{
"name": "Jane Smith",
"_id": "JShpBxEFgRmZnivTf",
"email": "jane@example.com"
}
'{
"_id": "JShpBxEFgRmZnivTf",
"name": "Jane Smith",
"email": "jane@example.com"
}Creates a new contact or updates an existing one if _id is provided.
curl --request POST \
--url https://app.getaptly.com/api/contacts \
--header 'Content-Type: application/json' \
--header 'x-token: <x-token>' \
--data '
{
"name": "Jane Smith",
"_id": "JShpBxEFgRmZnivTf",
"email": "jane@example.com"
}
'{
"_id": "JShpBxEFgRmZnivTf",
"name": "Jane Smith",
"email": "jane@example.com"
}Your Aptly API Token. Available in the Aptly UI under Card Sources > API.