Contact fields
Custom fields of your contacts (plan, city, renewal date…), for personalization and filters.
- GET /contact-fields — List custom fields
- POST /contact-fields — Create a custom field
- PATCH /contact-fields/{id} — Update a custom field
- DELETE /contact-fields/{id} — Delete a custom field
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
| keyrequired | string | Lowercase letters, digits, `_`. Used as `{{custom.<key>}}`. Immutable. |
| labelrequired | string | |
| typerequired | "text" | "number" | "date" | "boolean" | "choice" | Immutable. |
| options | string[] | Choices of a `choice` field (1–50). |
| default_value | any | Used by personalization when a contact has no value. |
| in_signup | boolean | Accepted 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
| label | string | |
| options | string[] | |
| default_value | any | |
| in_signup | boolean | |
| position | integer |
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
}