Contacts
Subscribe a contact
The method is used for <a href="${v1contactsubscribe.post.link}">the integration of subscription forms</a>.<br/>If a contact does not exist, it is created with the non-confirmed email.<br/>If a contact exists, the contact fields are updated (except existing media channels).<br/>New contacts are created with a <b>not confirmed</b> status.<br/>
post/api/v1/contact/subscribe
Request
- Base URL: https://yespo.io (the document declares no server; this is the origin it was published from)
- URL: https://yespo.io/api/v1/contact/subscribe
- Auth: HTTP basic
Request body
Example request
{
"contact": {
"firstName": "John",
"lastName": "Smith",
"channels": [
{
"device": {
"appId": "83b77a49-fc28-409b-aeaa-68c9d544ab9d",
"deviceModel": "[\"iPhone 16 Pro\",\"Samsung Galaxy S24 Ultra\"]",
"os": "[\"iOS\",\"Android\"]",
"locale": "[\"en_UK\",\"ua_UA\"]",
"clientVersion": "1.6.8",
"appVersion": "1.23.45"
}
}
],
"address": {
"region": "Occitanie",
"town": "Toulouse",
"address": "Rue Imaginaire, 456",
"postcode": "31000",
"countryCode": "FR"
},
"fields": [
{
"id": 79814,
"value": "textfield"
}
],
"addressBookId": 7200,
"id": 23456789,
"externalCustomerId": "TV12790",
"groups": [
{
"id": 200400
}
],
"languageCode": "en",
"timeZone": "Europe/London",
"marketId": "kyiv"
},
"formType": "Newsletter subscription"
}Changes
No recorded changes to this operation across all 1 revision of this API.