Import an off-platform marketing opt-in
curl --request POST \
--url https://api.letsdothis.com/v0/opt-ins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"emailAddress": "jsmith@example.com",
"source": "<string>",
"originId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({emailAddress: 'jsmith@example.com', source: '<string>', originId: '<string>'})
};
fetch('https://api.letsdothis.com/v0/opt-ins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/opt-ins"
payload = {
"emailAddress": "jsmith@example.com",
"source": "<string>",
"originId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"emailAddress": "<string>"
}{
"error": "validation_failed",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"sourcePath": "<string>"
}
]
}{
"statusCode": 401,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 403,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 409,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 413,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 415,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 429,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 500,
"error": "<string>",
"message": "<string>"
}Participants
Import an off-platform marketing opt-in
Import a single off-platform marketing opt-in — an email address collected by an external form tool such as a Webflow form — into the organiser’s subscriber list, subscribed to marketing. A stable origin id makes retries leave the subscriber untouched, including when they unsubscribed after the first delivery. Throws if the import does not land, so a caller can retry. Use only for addresses whose owner explicitly opted in.
POST
/
v0
/
opt-ins
Import an off-platform marketing opt-in
curl --request POST \
--url https://api.letsdothis.com/v0/opt-ins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"emailAddress": "jsmith@example.com",
"source": "<string>",
"originId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({emailAddress: 'jsmith@example.com', source: '<string>', originId: '<string>'})
};
fetch('https://api.letsdothis.com/v0/opt-ins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/opt-ins"
payload = {
"emailAddress": "jsmith@example.com",
"source": "<string>",
"originId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"emailAddress": "<string>"
}{
"error": "validation_failed",
"message": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"sourcePath": "<string>"
}
]
}{
"statusCode": 401,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 403,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 409,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 413,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 415,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 429,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 500,
"error": "<string>",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Import an off-platform marketing opt-in
Import an off-platform marketing opt-in
The normalised address associated with the opt-in event
Was this page helpful?

