Sendlane
App · 25 actions
Manage Sendlane lists, contacts, tags and custom fields, read campaigns and their reports, send custom events to start automations, and follow new contacts, unsubscribes, tags and sent campaigns.
Actions
| Action | What it does |
|---|---|
| Add contact to list | Add a contact to a list by email address or phone number, creating the contact if it's new. |
| Add tags to contact | Give a contact one or more tags. |
| Create custom field | Create a custom field. |
| Create list | Create a list. |
| Create tag | Create a tag. |
| Delete contact | Delete a contact from the account. |
| Delete list | Delete a list. |
| Delete tag | Delete a tag, and take it off every contact. |
| Find contact | Find a contact by email address or phone number. |
| Get campaign | Get a campaign's status and send time. |
| Get campaign report | Get a campaign's sends, opens, clicks, bounces, unsubscribes, spam reports and revenue. |
| Get contact | Get a contact with their lists, tags and custom fields. |
| Get list | Get a list's name, description and status. |
| List campaigns | List email campaigns with their status and send time. |
| List contacts | List the account's contacts, optionally only those from a time range. |
| List contacts in list | List the contacts in a list, optionally only those added in a time range. |
| List custom fields | List the account's custom fields with their IDs, for setting them on contacts. |
| List lists | List the account's lists. |
| List tags | List the account's tags with how many contacts have each. |
| Remove contact from list | Take a contact out of a list. |
| Remove tag from contact | Take a tag off a contact. |
| Send custom event | Send a custom event for a contact, to start automations set up for it. |
| Set contact custom fields | Set custom field values on a contact. |
| Unsubscribe contact | Unsubscribe a contact from all email. |
| Update list | Rename a list or change its description. |
Add contact to list
Add a contact to a list by email address or phone number, creating the contact if it's new. Sendlane adds it in the background.
Inputs
- List
list_idnumberRequired - The list.At least 1.
- Email
emailtext - The contact's email address.
- First name
first_nametext - The contact's first name.
- Last name
last_nametext - The contact's last name.
- Phone
phonetext - The contact's phone number with country code, such as +15555555555.
- Email consent
email_consenttrue/false - The contact agreed to receive marketing email.
- Tags
tag_idslist - Tags to give the contact.
- Custom fields
custom_fieldsobject - Custom field values, by custom field ID (from List custom fields), such as {"12": "Gold"}.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"message": "example"
}
}Add tags to contact
Give a contact one or more tags.
Inputs
- Contact ID
contact_idnumberRequired - The contact's ID, which Find contact returns.At least 1.
- Tags
tag_idslistRequired - The tags to add.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"id": 1,
"name": "example"
}
]
}
}Create custom field
Create a custom field. Sendlane can't delete custom fields, so choose the name with care.
Inputs
- Name
nametextRequired - The custom field's name.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"created_at": "example",
"id": "example",
"name": "example",
"type": "example"
}
]
}
}Create list
Create a list.
Inputs
- Name
nametextRequired - The list's name.
- Description
descriptiontext - What the list is for.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": {
"created": "example",
"description": "example",
"flagged": "example",
"id": 1,
"name": "example",
"status": "example"
}
}
}Create tag
Create a tag.
Inputs
- Name
nametextRequired - The tag's name.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": {
"audience_count": 1,
"created_at": "example",
"id": 1,
"name": "example"
}
}
}Delete contact
Delete a contact from the account.
Inputs
- Contact ID
contact_idnumberRequired - The contact's ID, which Find contact returns.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"message": "example"
}
}Delete list
Delete a list.
Inputs
- List
list_idnumberRequired - The list.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"message": "example"
}
}Delete tag
Delete a tag, and take it off every contact.
Inputs
- Tag
tag_idnumberRequired - The tag.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"message": "example"
}
}Find contact
Find a contact by email address or phone number.
Inputs
- Email
emailtext - The contact's email address.
- Phone
phonetext - Or the contact's phone number.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"custom_fields": [
{
"id": "example",
"name": "example",
"type": "example"
}
],
"email": "example",
"first_name": "example",
"id": 1,
"last_name": "example",
"lifetime_value": 1,
"lists": [
{
"id": 1,
"name": "example"
}
],
"phone": "example",
"subscribed": true,
"suppressed": true,
"tags": [
{
"id": 1,
"name": "example"
}
]
}
}Get campaign
Get a campaign's status and send time.
Inputs
- Campaign
campaign_idnumberRequired - The campaign.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": {
"automation": {
"action_order": 1,
"id": 1,
"name": "example"
},
"created_at": "example",
"id": 1,
"name": "example",
"scheduled_at": "example",
"sent_at": "example",
"status": "example",
"updated_at": "example"
}
}
}Get campaign report
Get a campaign's sends, opens, clicks, bounces, unsubscribes, spam reports and revenue.
Inputs
- Campaign
campaign_idnumberRequired - The campaign.At least 1.
- From
sincedate and time - Only activity from this time on.
- To
untildate and time - Only activity up to this time. Needs From.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": {
"bounced": 1,
"campaign_id": 1,
"clicks": 1,
"opens": 1,
"revenue": 1,
"sent": 1,
"spam": 1,
"suppressed": 1,
"unique_clicks": 1,
"unique_opens": 1,
"unsubscribed": 1
}
}
}Get contact
Get a contact with their lists, tags and custom fields.
Inputs
- Contact ID
contact_idnumberRequired - The contact's ID, which Find contact returns.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": {
"custom_fields": [
{
"id": "example",
"name": "example",
"type": "example"
}
],
"email": "example",
"first_name": "example",
"id": 1,
"last_name": "example",
"lifetime_value": 1,
"lists": [
{
"id": 1,
"name": "example"
}
],
"phone": "example",
"subscribed": true,
"suppressed": true,
"tags": [
{
"id": 1,
"name": "example"
}
]
}
}
}Get list
Get a list's name, description and status.
Inputs
- List
list_idnumberRequired - The list.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": {
"created": "example",
"description": "example",
"flagged": "example",
"id": 1,
"name": "example",
"status": "example"
}
}
}List campaigns
List email campaigns with their status and send time.
Inputs
None.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"automation": {
"action_order": 1,
"id": 1,
"name": "example"
},
"created_at": "example",
"id": 1,
"name": "example",
"scheduled_at": "example",
"sent_at": "example",
"status": "example",
"updated_at": "example"
}
],
"links": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 1,
"total": 1
}
}
}List contacts
List the account's contacts, optionally only those from a time range.
Inputs
- From
sincedate and time - Only contacts from this time on.
- To
untildate and time - Only contacts up to this time. Needs From.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"custom_fields": [
{
"id": "example",
"name": "example",
"type": "example"
}
],
"email": "example",
"first_name": "example",
"id": 1,
"last_name": "example",
"lifetime_value": 1,
"lists": [
{
"id": 1,
"name": "example"
}
],
"phone": "example",
"subscribed": true,
"suppressed": true,
"tags": [
{
"id": 1,
"name": "example"
}
]
}
],
"links": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 1,
"total": 1
}
}
}List contacts in list
List the contacts in a list, optionally only those added in a time range.
Inputs
- List
list_idnumberRequired - The list.At least 1.
- From
sincedate and time - Only contacts from this time on.
- To
untildate and time - Only contacts up to this time. Needs From.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"custom_fields": [
{
"id": "example",
"name": "example",
"type": "example"
}
],
"email": "example",
"first_name": "example",
"id": 1,
"last_name": "example",
"lifetime_value": 1,
"lists": [
{
"id": 1,
"name": "example"
}
],
"phone": "example",
"subscribed": true,
"suppressed": true,
"tags": [
{
"id": 1,
"name": "example"
}
]
}
],
"links": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 1,
"total": 1
}
}
}List custom fields
List the account's custom fields with their IDs, for setting them on contacts.
Inputs
- Records to return
limitnumber - How many to return. Leave empty for Sendlane's default.At least 1.
- Page
pagenumber - The page to read. Leave empty for the first.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"created_at": "example",
"id": "example",
"name": "example",
"type": "example"
}
],
"links": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 1,
"total": 1
}
}
}List lists
List the account's lists.
Inputs
- Records to return
limitnumber - How many to return. Leave empty for Sendlane's default.At least 1.
- Page
pagenumber - The page to read. Leave empty for the first.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"created": "example",
"description": "example",
"flagged": "example",
"id": 1,
"name": "example",
"status": "example"
}
],
"links": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 1,
"total": 1
}
}
}List tags
List the account's tags with how many contacts have each.
Inputs
None.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"audience_count": 1,
"created_at": "example",
"id": 1,
"name": "example"
}
],
"links": {
"first": "example",
"last": "example",
"next": "example",
"prev": "example"
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 1,
"total": 1
}
}
}Remove contact from list
Take a contact out of a list. The contact stays in the account.
Inputs
- List
list_idnumberRequired - The list.At least 1.
- Contact ID
contact_idnumberRequired - The contact's ID, which Find contact returns.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"message": "example"
}
}Remove tag from contact
Take a tag off a contact.
Inputs
- Contact ID
contact_idnumberRequired - The contact's ID, which Find contact returns.At least 1.
- Tag
tag_idnumberRequired - The tag.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"message": "example"
}
}Send custom event
Send a custom event for a contact, to start automations set up for it. Needs the custom integration token in the connected account.
Inputs
- Custom event
eventtextRequired - The custom event's name, as set up in the custom integration.
- Email
emailtext - The contact's email address.
- Phone
phonetext - Or the contact's phone number.
- Event data
dataobject - Details for the automation's emails and texts, by name.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"message": "example"
}
}Set contact custom fields
Set custom field values on a contact.
Inputs
- Contact ID
contact_idnumberRequired - The contact's ID, which Find contact returns.At least 1.
- Custom field values
field_valuesobjectRequired - The values, by custom field ID (from List custom fields), such as {"12": "Gold"}.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": [
{
"custom_field_id": 1,
"id": 1,
"name": "example",
"value": "example"
}
]
}
}Unsubscribe contact
Unsubscribe a contact from all email.
Inputs
- Contact ID
contact_idnumberRequired - The contact's ID, which Find contact returns.At least 1.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"message": "example"
}
}Update list
Rename a list or change its description.
Inputs
- List
list_idnumberRequired - The list.At least 1.
- Name
nametextRequired - The list's name.
- Description
descriptiontext - What the list is for.
Outputs
dataobject- The response from Sendlane.
Example output
{
"data": {
"data": {
"created": "example",
"description": "example",
"flagged": "example",
"id": 1,
"name": "example",
"status": "example"
}
}
}