SLSmartletter API

Contact fields

Custom fields of your contacts (plan, city, renewal date…), for personalization and filters.

get/contact-fields— List custom fields

Keys: full_access

curl -X GET https://api.smartletter.ai/contact-fields \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY"

Response 200

{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "contact_field",
      "id": "6c2a9d40-0000-4000-8000-000000000006",
      "key": "plan",
      "label": "Plan",
      "type": "choice",
      "options": [
        "free",
        "pro"
      ],
      "default_value": null,
      "in_signup": false,
      "position": 0,
      "created_at": "2026-10-17T09:00:00.000Z"
    }
  ]
}

post/contact-fields— Create a custom field

Up to 50 per workspace. key and type cannot change later. Use the value in an issue with {{custom.<key>}}.

Keys: full_access

Body

keyrequiredstringLowercase letters, digits, `_`. Used as `{{custom.<key>}}`. Immutable.
labelrequiredstring
typerequired"text" | "number" | "date" | "boolean" | "choice"Immutable.
optionsstring[]Choices of a `choice` field (1–50).
default_valueanyUsed by personalization when a contact has no value.
in_signupbooleanAccepted from signup forms (`POST /signups`).
curl -X POST https://api.smartletter.ai/contact-fields \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key":"plan","label":"Plan","type":"choice","options":["free","pro"]}'

Response 201

{
  "object": "contact_field",
  "id": "6c2a9d40-0000-4000-8000-000000000006",
  "key": "plan",
  "label": "Plan",
  "type": "choice",
  "options": [
    "free",
    "pro"
  ],
  "default_value": null,
  "in_signup": false,
  "position": 0,
  "created_at": "2026-10-17T09:00:00.000Z"
}

patch/contact-fields/{id}— Update a custom field

Keys: full_access

Body

labelstring
optionsstring[]
default_valueany
in_signupboolean
positioninteger
curl -X PATCH https://api.smartletter.ai/contact-fields/<id> \
  -H "Authorization: Bearer $SMARTLETTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label":"Plan","in_signup":true}'

Response 200

{
  "object": "contact_field",
  "id": "6c2a9d40-0000-4000-8000-000000000006",
  "key": "plan",
  "label": "Plan",
  "type": "choice",
  "options": [
    "free",
    "pro"
  ],
  "default_value": null,
  "in_signup": false,
  "position": 0,
  "created_at": "2026-10-17T09:00:00.000Z"
}

delete/contact-fields/{id}— Delete a custom field

Removes the values from every contact. Refused (409) while a saved filter or an issue still to be sent uses it.

Keys: full_access

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

Response 200

{
  "object": "contact_field",
  "id": "6c2a9d40-0000-4000-8000-000000000006",
  "deleted": true
}