Get a newsletter
Read one newsletter, including its consent topic ID, issue project, archive status, and hosted slug.
GET
Read one newsletter, including its consent topic ID, issue project, archive status, and hosted slug.
apiKeyheader
x-api-key<token>id*stringMatch
^nl_[0-9a-hjkmnp-tv-z]{16,24}$Newsletter
application/json- response
id*NewsletterIdMatch
^nl_[0-9a-hjkmnp-tv-z]{16,24}$topicId*TopicIdMatch
^tpc_[0-9a-hjkmnp-tv-z]{16,24}$namespaceId*|nullname*stringdescription*string|nullissueProjectId*|nullarchiveEnabled*booleanpublicationSlug*|nullcreatedAt*stringupdatedAt*stringimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.newsletters.get({
"id": "example"
});Example Response
{
"id": "string",
"topicId": "string",
"namespaceId": "string",
"name": "string",
"description": "string",
"issueProjectId": "string",
"archiveEnabled": true,
"publicationSlug": "string",
"createdAt": "string",
"updatedAt": "string"
}