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

ActionWhat it does
Add contact to listAdd a contact to a list by email address or phone number, creating the contact if it's new.
Add tags to contactGive a contact one or more tags.
Create custom fieldCreate a custom field.
Create listCreate a list.
Create tagCreate a tag.
Delete contactDelete a contact from the account.
Delete listDelete a list.
Delete tagDelete a tag, and take it off every contact.
Find contactFind a contact by email address or phone number.
Get campaignGet a campaign's status and send time.
Get campaign reportGet a campaign's sends, opens, clicks, bounces, unsubscribes, spam reports and revenue.
Get contactGet a contact with their lists, tags and custom fields.
Get listGet a list's name, description and status.
List campaignsList email campaigns with their status and send time.
List contactsList the account's contacts, optionally only those from a time range.
List contacts in listList the contacts in a list, optionally only those added in a time range.
List custom fieldsList the account's custom fields with their IDs, for setting them on contacts.
List listsList the account's lists.
List tagsList the account's tags with how many contacts have each.
Remove contact from listTake a contact out of a list.
Remove tag from contactTake a tag off a contact.
Send custom eventSend a custom event for a contact, to start automations set up for it.
Set contact custom fieldsSet custom field values on a contact.
Unsubscribe contactUnsubscribe a contact from all email.
Update listRename 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

Listlist_idnumberRequired
The list.At least 1.
Emailemailtext
The contact's email address.
First namefirst_nametext
The contact's first name.
Last namelast_nametext
The contact's last name.
Phonephonetext
The contact's phone number with country code, such as +15555555555.
Email consentemail_consenttrue/false
The contact agreed to receive marketing email.
Tagstag_idslist
Tags to give the contact.
Custom fieldscustom_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 IDcontact_idnumberRequired
The contact's ID, which Find contact returns.At least 1.
Tagstag_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

NamenametextRequired
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

NamenametextRequired
The list's name.
Descriptiondescriptiontext
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

NamenametextRequired
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 IDcontact_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

Listlist_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

Tagtag_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

Emailemailtext
The contact's email address.
Phonephonetext
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

Campaigncampaign_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

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Fromsincedate and time
Only activity from this time on.
Tountildate 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 IDcontact_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

Listlist_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

Fromsincedate and time
Only contacts from this time on.
Tountildate 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

Listlist_idnumberRequired
The list.At least 1.
Fromsincedate and time
Only contacts from this time on.
Tountildate 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 returnlimitnumber
How many to return. Leave empty for Sendlane's default.At least 1.
Pagepagenumber
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 returnlimitnumber
How many to return. Leave empty for Sendlane's default.At least 1.
Pagepagenumber
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

Listlist_idnumberRequired
The list.At least 1.
Contact IDcontact_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 IDcontact_idnumberRequired
The contact's ID, which Find contact returns.At least 1.
Tagtag_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 eventeventtextRequired
The custom event's name, as set up in the custom integration.
Emailemailtext
The contact's email address.
Phonephonetext
Or the contact's phone number.
Event datadataobject
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 IDcontact_idnumberRequired
The contact's ID, which Find contact returns.At least 1.
Custom field valuesfield_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 IDcontact_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

Listlist_idnumberRequired
The list.At least 1.
NamenametextRequired
The list's name.
Descriptiondescriptiontext
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"
    }
  }
}

On this page