curl --request POST \
--url https://app.loops.so/api/v1/contacts/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"source": "<string>",
"subscribed": true,
"userGroup": "<string>",
"userId": "<string>",
"mailingLists": {}
}
'{
"success": true,
"id": "id_of_contact"
}
Create a new contact with an email address and any other contact properties.
curl --request POST \
--url https://app.loops.so/api/v1/contacts/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"source": "<string>",
"subscribed": true,
"userGroup": "<string>",
"userId": "<string>",
"mailingLists": {}
}
'{
"success": true,
"id": "id_of_contact"
}
boolean denoting if the contact
should be added (true) or removed (false) from the list. Read
more"mailingLists": {
"cm06f5v0e45nf0ml5754o9cix": true,
"cm16k73gq014h0mmj5b6jdi9r": false
}
string, number, boolean or date (see allowed date formats).
{
"email": "hello@gmail.com",
"plan": "pro" /* Custom property */,
"dateJoined": 1704711066 /* Custom property */
}
null value.409 Conflict error will be returned. All other errors will be 400 Bad Request.
{
"success": true,
"id": "id_of_contact"
}
Was this page helpful?