POST
/
sequences
/
{id}
/
leads
curl --request POST \
  --url https://api.amplemarket.com/sequences/{id}/leads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.amp+json' \
  --data '{
  "leads": [
    {
      "email": "lead@target.example.com",
      "linkedin_url": "https://www.linkedin.com/in/example",
      "data": {
        "custom_nickname": "Joe",
        "company_name": "Target"
      },
      "overrides": {
        "ignore_recently_contacted": true,
        "ignore_exclusion_list": true,
        "ignore_duplicate_leads_in_other_draft_sequences": true,
        "ignore_duplicate_leads_in_other_active_sequences": true
      }
    }
  ],
  "settings": {
    "leads_distribution": "custom_mailboxes",
    "mailboxes": [
      "salesrep@first.example.com",
      "salesrep@second.example.com"
    ]
  }
}'
{
  "total": 1,
  "total_added_to_sequence": 1,
  "duplicate_emails": [],
  "duplicate_linkedin_urls": [],
  "in_exclusion_list_and_skipped": [],
  "recently_contacted_and_skipped": [],
  "already_in_sequence_and_skipped": [],
  "in_other_draft_sequences_and_skipped": [],
  "in_other_active_sequences_and_skipped": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Sequence id

Body

application/vnd.amp+json
leads
object[]
required

Leads to be added to the sequence

settings
object

Response

200
application/vnd.amp+json
Ok
total
integer

Total number of leads processed in the request.

total_added_to_sequence
integer

Total number of leads successfully added to the sequence.

duplicate_emails
string[]

List of emails skipped because they are duplicated in the request.

duplicate_linkedin_urls
string[]

List of LinkedIn urls skipped because they are duplicated in the request.

in_exclusion_list_and_skipped
object[]

List of leads skipped due to exclusion list.

recently_contacted_and_skipped
object[]

List of leads skipped because they were recently contacted.

already_in_sequence_and_skipped
object[]

List of leads skipped because they are already in this sequence.

in_other_draft_sequences_and_skipped
object[]

List of leads skipped because they are present in another draft sequence.

in_other_active_sequences_and_skipped
object[]

List of leads skipped because they are present in another live or paused sequence.