Segments
Your newsletters (segments) and their topics.
- GET /segments — List newsletters (segments)
- POST /segments — Create a newsletter (segment)
- GET /topics — List topics
- GET /segments/{id}/identity — Retrieve a newsletter's sender identity
- PATCH /segments/{id}/identity — Update a newsletter's sender identity
get/segments— List newsletters (segments)
Keys: full_access
Query parameters
| limit | integer | 1–100, default 20. |
| after | uuid | Id of the last item of the previous page (older items). |
| before | uuid | Id of the first item of the previous page (newer items). |
curl -X GET https://api.smartletter.ai/segments \
-H "Authorization: Bearer $SMARTLETTER_API_KEY"Response 200
{
"object": "list",
"has_more": false,
"data": [
{
"object": "segment",
"id": "2d9e4b11-0000-4000-8000-000000000003",
"name": "Acme Weekly",
"slug": "acme-weekly",
"language": "en",
"status": "active",
"created_at": "2026-10-01T09:00:00.000Z"
}
]
}post/segments— Create a newsletter (segment)
Keys: full_access
Body
| namerequired | string | |
| slugrequired | string | |
| language | string | |
| description | string | |
| themes | string[] |
curl -X POST https://api.smartletter.ai/segments \
-H "Authorization: Bearer $SMARTLETTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Acme Weekly","slug":"acme-weekly","language":"en"}'Response 201
{
"object": "segment",
"id": "2d9e4b11-0000-4000-8000-000000000003",
"name": "Acme Weekly",
"slug": "acme-weekly",
"language": "en",
"status": "active",
"created_at": "2026-10-01T09:00:00.000Z"
}get/topics— List topics
The newsletter's topics, newest first: 200 at most, has_more is true when it has more (no cursor).
Keys: full_access
Query parameters
| segment_idrequired | uuid |
curl -X GET https://api.smartletter.ai/topics \
-H "Authorization: Bearer $SMARTLETTER_API_KEY"Response 200
{
"object": "list",
"has_more": false,
"data": [
{
"object": "topic",
"id": "5b1f2c90-0000-4000-8000-000000000002",
"segment_id": "2d9e4b11-0000-4000-8000-000000000003",
"name": "AI tools",
"slug": "ai-tools",
"status": "active",
"created_at": "2026-10-01T09:00:00.000Z"
}
]
}get/segments/{id}/identity— Retrieve a newsletter's sender identity
Name, sender names, sending domain and postal address. from stays null until the custom domain is verified.
Keys: full_access
curl -X GET https://api.smartletter.ai/segments/<id>/identity \
-H "Authorization: Bearer $SMARTLETTER_API_KEY"Response 200
{
"object": "segment_identity",
"id": "2d9e4b11-0000-4000-8000-000000000003",
"name": "Acme Weekly",
"platform_sender_name": "acme-weekly",
"custom_sender_name": "lettre",
"sending_mode": "custom_domain",
"custom_domain": "news.acme.com",
"custom_domain_verified": true,
"from": "[email protected]",
"postal_address": "1 Example Street, London",
"reply_to": "[email protected]"
}patch/segments/{id}/identity— Update a newsletter's sender identity
Same rules as the dashboard's sender settings. domain_id is one of your sending domains (Starter plan or higher; one newsletter per domain). custom_sender_name is the local part on that domain. postal_address goes in every email footer and is required to send. Fields left out keep their value.
Keys: full_access
Body
| name | string | |
| platform_sender_name | string | |
| domain_id | uuid | A sending domain of this workspace; `null` goes back to the Smartletter address. |
| custom_sender_name | string | Local part of the address on your domain, e.g. `lettre` for [email protected]. |
| postal_address | any | Shown in every email footer; required to send. |
| reply_to | string | Where readers' replies go (Reply-To of the issues, the welcome email and the sequences). `null` removes it. |
curl -X PATCH https://api.smartletter.ai/segments/<id>/identity \
-H "Authorization: Bearer $SMARTLETTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain_id":"5b1f2c90-0000-4000-8000-000000000002","custom_sender_name":"lettre","postal_address":"1 Example Street, London"}'Response 200
{
"object": "segment_identity",
"id": "2d9e4b11-0000-4000-8000-000000000003",
"name": "Acme Weekly",
"platform_sender_name": "acme-weekly",
"custom_sender_name": "lettre",
"sending_mode": "custom_domain",
"custom_domain": "news.acme.com",
"custom_domain_verified": true,
"from": "[email protected]",
"postal_address": "1 Example Street, London",
"reply_to": "[email protected]"
}