Api referenceNewsletterIssues
Read a newsletter issue (Preview)
Preview · Available to selected organizations. Reads one issues/*.md file at the requested workspace revision. Requires newsletters and email.
GET
Reads one issues/*.md file at the requested workspace revision. Requires newsletters and email.
apiKeyheader
x-api-key<token>id*stringMatch
^nl_[0-9a-hjkmnp-tv-z]{16,24}$path*stringMatch
^(?!.*\\)(?!.*(?:^|\/)\.{1,2}(?:\/|$))(?!.*(?:^|\/)\.git(?:\/|$))(?!.*\p{Cc})issues\/(?:[^/]+\/)*[^/]+\.md$Length
length <= 1024expectedRevision*stringLength
1 <= length <= 1024NewsletterIssueDocument
application/json- response
projectId*TemplateProjectIdMatch
^tproj_[0-9a-hjkmnp-tv-z]{16,24}$revision*stringLength
1 <= length <= 1024path*stringMatch
^(?!.*\\)(?!.*(?:^|\/)\.{1,2}(?:\/|$))(?!.*(?:^|\/)\.git(?:\/|$))(?!.*\p{Cc})issues\/(?:[^/]+\/)*[^/]+\.md$Length
length <= 1024content*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.newsletters.issues.get({ "id": "example", "path": "example", "expectedRevision": "example"});Example Response
{ "projectId": "string", "revision": "string", "path": "string", "content": "string"}