List newsletters
List visible newsletters and their consent topics and publishing settings. The topic namespace bounds access.
GET
List visible newsletters and their consent topics and publishing settings. The topic namespace bounds access.
apiKeyheader
x-api-key<token>namespaceId?stringMatch
^ns_[0-9a-hjkmnp-tv-z]{16,24}$Success
application/json- response
items*array<>import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.newsletters.list({});Example Response
{
"items": [
{
"id": "string",
"topicId": "string",
"namespaceId": "string",
"name": "string",
"description": "string",
"issueProjectId": "string",
"archiveEnabled": true,
"publicationSlug": "string",
"createdAt": "string",
"updatedAt": "string"
}
]
}