SLSmartletter API

Contacts

Subscribers of your newsletters: add, import with cleaning, export, unsubscribe.

get/contacts— List contacts

Keys: full_access

Query parameters

segment_iduuid
status"active" | "pending" | "unsubscribed" | "bounced" | "complained" | "dormant"
searchstringSubstring of the email address.
tagstringOnly contacts with this tag (case-insensitive).
limitinteger1–100, default 20.
afteruuidId of the last item of the previous page (older items).
beforeuuidId of the first item of the previous page (newer items).
curl -X GET https://api.smartletter.ai/contacts \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY"

Response 200

{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "contact",
      "id": "5b1f2c90-0000-4000-8000-000000000002",
      "email": "[email protected]",
      "name": "Jane Doe",
      "first_name": "Jane",
      "last_name": "Doe",
      "status": "active",
      "segment_id": "2d9e4b11-0000-4000-8000-000000000003",
      "language": "en",
      "source": "api",
      "subscribed_at": "2026-10-02T09:14:00.000Z",
      "unsubscribed_at": null,
      "created_at": "2026-10-02T09:14:00.000Z",
      "custom_fields": {
        "plan": "pro"
      },
      "tags": [
        "customer"
      ],
      "newsletter_subscribed": true,
      "engagement": {
        "emails_sent": 12,
        "emails_opened": 7,
        "emails_clicked": 2,
        "last_opened_at": "2026-10-16T08:02:00.000Z",
        "last_clicked_at": null
      }
    }
  ]
}

post/contacts— Add a contact

Adds one contact as imported (the same cleaning as an import: invalid syntax, typos, spam traps, role and disposable addresses, suppressions). A refused address answers 422 with the reason. Idempotent: an address already there answers 200 with the existing contact as it is (existed: true), nothing changed; a new one 201 (existed: false).

Keys: full_access · accepts Idempotency-Key

Body

emailrequiredstring
segment_iduuidOptional when the workspace has a single active newsletter.
namestring
first_namestringUsed by `{{first_name}}` in your issues.
last_namestring
languagestring
custom_fieldsobjectCustom field values by key (`/contact-fields`): text, number, `YYYY-MM-DD` date, boolean or one of the choices. `null` erases a value.
tagsstring[]Added to the contact's tags (also when the contact already exists).
newsletter_subscribedbooleanReceives the newsletter issues (default `true` for a new contact). `false` adds the contact to the group only: they get broadcasts, not newsletters. A contact already in the group is never unsubscribed here: only `true` subscribes them.
confirmedtrueThe subscriber proved this address and agreed to receive the newsletter in your own signup flow (an email verification code, a consent checkbox). Role addresses (contact@, info@…) are then accepted, and a contact still waiting for its confirmation email is subscribed at once, with the welcome email. Unsubscribed, bounced or complained contacts and imports held for review never change.
curl -X POST https://api.smartletter.ai/contacts \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","name":"Jane"}'

Response 201

{
  "object": "contact",
  "id": "5b1f2c90-0000-4000-8000-000000000002",
  "email": "[email protected]",
  "name": "Jane Doe",
  "first_name": "Jane",
  "last_name": "Doe",
  "status": "active",
  "segment_id": "2d9e4b11-0000-4000-8000-000000000003",
  "language": "en",
  "source": "api",
  "subscribed_at": "2026-10-02T09:14:00.000Z",
  "unsubscribed_at": null,
  "created_at": "2026-10-02T09:14:00.000Z",
  "custom_fields": {
    "plan": "pro"
  },
  "tags": [
    "customer"
  ],
  "newsletter_subscribed": true,
  "engagement": {
    "emails_sent": 12,
    "emails_opened": 7,
    "emails_clicked": 2,
    "last_opened_at": "2026-10-16T08:02:00.000Z",
    "last_clicked_at": null
  },
  "existed": false
}

post/contacts/import— Import contacts

Up to 1000 rows per call, consent: true required. Rows are cleaned like a CSV import and the answer reports every rejected row with its reason. New accounts' large imports may be held for a quick review. Paid plans have no subscriber limit (remaining_capacity: null); the Free plan stores up to 500 subscribers (capped rows past that). Coming from another platform? Send status: "unsubscribed" (and unsubscribed_at) on the rows of people who left: they are kept unsubscribed and never emailed (unsubscribed counts them in the answer).

Keys: full_access · accepts Idempotency-Key

Body

segment_iduuid
consentrequiredtrueYou confirm every contact opted in to receive this newsletter (no bought, rented or scraped list).
contactsrequiredobject[]
curl -X POST https://api.smartletter.ai/contacts/import \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"consent":true,"contacts":[{"email":"[email protected]","name":"Jane","open_rate":0.42}]}'

Response 200

{
  "object": "import",
  "total": 3,
  "inserted": 1,
  "rejected": 2,
  "reasons": {
    "invalid_syntax": 0,
    "source_unsubscribed": 0,
    "typo": 1,
    "spam_trap": 0,
    "role": 1,
    "disposable": 0,
    "no_mx": 0,
    "duplicate": 0,
    "suppressed": 0,
    "capped": 0
  },
  "rejected_rows": [
    {
      "line": 2,
      "email": "[email protected]",
      "reason": "typo",
      "suggestion": "[email protected]"
    },
    {
      "line": 3,
      "email": "[email protected]",
      "reason": "role"
    }
  ],
  "report_truncated": false,
  "engagement_imported": 1,
  "capped": false,
  "remaining_capacity": null,
  "pending_review": false,
  "verifying": false,
  "tagged": 0,
  "unsubscribed": 0
}

get/contacts/export— Export contacts (CSV)

Keys: full_access

Query parameters

segment_iduuid
status"active" | "pending" | "unsubscribed" | "bounced" | "complained" | "dormant"
curl -X GET https://api.smartletter.ai/contacts/export \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY"

Response 200

email,name,status,segment_id,language,source,subscribed_at,unsubscribed_at
[email protected],Jane,active,…

get/contacts/{id}— Retrieve a contact

Keys: full_access

curl -X GET https://api.smartletter.ai/contacts/<id> \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY"

Response 200

{
  "object": "contact",
  "id": "5b1f2c90-0000-4000-8000-000000000002",
  "email": "[email protected]",
  "name": "Jane Doe",
  "first_name": "Jane",
  "last_name": "Doe",
  "status": "active",
  "segment_id": "2d9e4b11-0000-4000-8000-000000000003",
  "language": "en",
  "source": "api",
  "subscribed_at": "2026-10-02T09:14:00.000Z",
  "unsubscribed_at": null,
  "created_at": "2026-10-02T09:14:00.000Z",
  "custom_fields": {
    "plan": "pro"
  },
  "tags": [
    "customer"
  ],
  "newsletter_subscribed": true,
  "engagement": {
    "emails_sent": 12,
    "emails_opened": 7,
    "emails_clicked": 2,
    "last_opened_at": "2026-10-16T08:02:00.000Z",
    "last_clicked_at": null
  },
  "status_history": [
    {
      "at": "2026-10-02T09:14:00Z",
      "from_status": "pending",
      "to_status": "active",
      "source": "confirm",
      "actor": "system",
      "detail": null
    }
  ]
}

post/contacts/{id}/unsubscribe— Unsubscribe

Keys: full_access

curl -X POST https://api.smartletter.ai/contacts/<id>/unsubscribe \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY"

Response 200

{
  "object": "contact",
  "id": "5b1f2c90-0000-4000-8000-000000000002",
  "email": "[email protected]",
  "name": "Jane Doe",
  "first_name": "Jane",
  "last_name": "Doe",
  "status": "unsubscribed",
  "segment_id": "2d9e4b11-0000-4000-8000-000000000003",
  "language": "en",
  "source": "api",
  "subscribed_at": "2026-10-02T09:14:00.000Z",
  "unsubscribed_at": "2026-10-17T09:00:00.000Z",
  "created_at": "2026-10-02T09:14:00.000Z",
  "custom_fields": {
    "plan": "pro"
  },
  "tags": [
    "customer"
  ],
  "newsletter_subscribed": true,
  "engagement": {
    "emails_sent": 12,
    "emails_opened": 7,
    "emails_clicked": 2,
    "last_opened_at": "2026-10-16T08:02:00.000Z",
    "last_clicked_at": null
  }
}

post/contacts/{id}/reactivate— Reactivate a dormant contact

Only for contacts put to sleep by the inactive cleanup. An unsubscribed contact can only come back through their own link.

Keys: full_access

curl -X POST https://api.smartletter.ai/contacts/<id>/reactivate \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY"

Response 200

{
  "object": "contact",
  "id": "5b1f2c90-0000-4000-8000-000000000002",
  "email": "[email protected]",
  "name": "Jane Doe",
  "first_name": "Jane",
  "last_name": "Doe",
  "status": "active",
  "segment_id": "2d9e4b11-0000-4000-8000-000000000003",
  "language": "en",
  "source": "api",
  "subscribed_at": "2026-10-02T09:14:00.000Z",
  "unsubscribed_at": null,
  "created_at": "2026-10-02T09:14:00.000Z",
  "custom_fields": {
    "plan": "pro"
  },
  "tags": [
    "customer"
  ],
  "newsletter_subscribed": true,
  "engagement": {
    "emails_sent": 12,
    "emails_opened": 7,
    "emails_clicked": 2,
    "last_opened_at": "2026-10-16T08:02:00.000Z",
    "last_clicked_at": null
  }
}

delete/contacts/{id}— Delete a contact

Keys: full_access

curl -X DELETE https://api.smartletter.ai/contacts/<id> \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY"

Response 200

{
  "object": "contact",
  "id": "5b1f2c90-0000-4000-8000-000000000002",
  "deleted": true
}

patch/contacts/{id}— Update a contact

First / last name, name, language, custom fields and tags. custom_fields is merged; null erases a key. Unknown keys are refused. tags replaces the whole list; add_tags / remove_tags change it.

Keys: full_access

Body

first_namestring
last_namestring
namestring
languagestring
custom_fieldsobjectMerged into the stored values; `null` erases a key.
tagsstring[]Replaces every tag of the contact; `null` or `[]` removes them all.
add_tagsstring[]Added to the current tags.
remove_tagsstring[]Removed from the current tags.
newsletter_subscribedboolean`true` subscribes the contact to the newsletter issues, `false` keeps them in the group only (broadcasts still reach them).
curl -X PATCH https://api.smartletter.ai/contacts/<id> \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"first_name":"Jane","custom_fields":{"plan":"pro","renewal":"2026-12-01"}}'

Response 200

{
  "object": "contact",
  "id": "5b1f2c90-0000-4000-8000-000000000002",
  "email": "[email protected]",
  "name": "Jane Doe",
  "first_name": "Jane",
  "last_name": "Doe",
  "status": "active",
  "segment_id": "2d9e4b11-0000-4000-8000-000000000003",
  "language": "en",
  "source": "api",
  "subscribed_at": "2026-10-02T09:14:00.000Z",
  "unsubscribed_at": null,
  "created_at": "2026-10-02T09:14:00.000Z",
  "custom_fields": {
    "plan": "pro",
    "renewal": "2026-12-01"
  },
  "tags": [
    "customer"
  ],
  "newsletter_subscribed": true,
  "engagement": {
    "emails_sent": 12,
    "emails_opened": 7,
    "emails_clicked": 2,
    "last_opened_at": "2026-10-16T08:02:00.000Z",
    "last_clicked_at": null
  }
}