naftiko: 1.0.0-alpha2 info: label: API Reference — subpackage_newsletterLists description: 'API Reference — subpackage_newsletterLists. 2 operations. Lead operation: List newsletter lists Beta OAuth Scope: newsletter_lists:read. Self-contained Naftiko capability covering one Beehiiv business surface.' tags: - Beehiiv - subpackage_newsletterLists created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BEEHIIV_API_KEY: BEEHIIV_API_KEY capability: consumes: - type: http namespace: beehiiv-subpackage-newsletterlists baseUri: https://api.beehiiv.com/v2 description: API Reference — subpackage_newsletterLists business capability. Self-contained, no shared references. resources: - name: publications-publicationId-newsletter_lists path: /publications/{publicationId}/newsletter_lists operations: - name: index method: GET description: 'List newsletter lists Beta OAuth Scope: newsletter_lists:read' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: publicationId in: path type: string description: The prefixed ID of the publication object required: true - name: limit in: query type: integer description: A limit on the number of objects to be returned. The limit can range between 1 and 100, and the default is 10. - name: page in: query type: integer description: 'Pagination returns the results in pages. Each page contains the number of results specified by the `limit` (default: 10).
If not specified, results 1-10 from' - name: direction in: query type: string description: The direction that the results are sorted in. Defaults to asc
`asc` - Ascending, sorts from smallest to largest.
`desc` - Descending, sorts from largest - name: Authorization in: header type: string description: Bearer authentication required: true - name: publications-publicationId-newsletter_lists-newsletterListId path: /publications/{publicationId}/newsletter_lists/{newsletterListId} operations: - name: show method: GET description: 'Get newsletter list Beta OAuth Scope: newsletter_lists:read' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: publicationId in: path type: string description: The prefixed ID of the publication object required: true - name: newsletterListId in: path type: string description: The prefixed ID of the newsletter list object required: true - name: Authorization in: header type: string description: Bearer authentication required: true authentication: type: bearer token: '{{env.BEEHIIV_API_KEY}}' exposes: - type: rest namespace: beehiiv-subpackage-newsletterlists-rest port: 8080 description: REST adapter for API Reference — subpackage_newsletterLists. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/publications/{publicationid}/newsletter-lists name: publications-publicationid-newsletter-lists description: REST surface for publications-publicationId-newsletter_lists. operations: - method: GET name: index description: 'List newsletter lists Beta OAuth Scope: newsletter_lists:read' call: beehiiv-subpackage-newsletterlists.index with: publicationId: rest.publicationId limit: rest.limit page: rest.page direction: rest.direction Authorization: rest.Authorization outputParameters: - type: object mapping: $. - path: /v1/publications/{publicationid}/newsletter-lists/{newsletterlistid} name: publications-publicationid-newsletter-lists-newsletterlistid description: REST surface for publications-publicationId-newsletter_lists-newsletterListId. operations: - method: GET name: show description: 'Get newsletter list Beta OAuth Scope: newsletter_lists:read' call: beehiiv-subpackage-newsletterlists.show with: publicationId: rest.publicationId newsletterListId: rest.newsletterListId Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: beehiiv-subpackage-newsletterlists-mcp port: 9090 transport: http description: MCP adapter for API Reference — subpackage_newsletterLists. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-newsletter-lists-badge-intent-warning description: 'List newsletter lists Beta OAuth Scope: newsletter_lists:read' hints: readOnly: true destructive: false idempotent: true call: beehiiv-subpackage-newsletterlists.index with: publicationId: tools.publicationId limit: tools.limit page: tools.page direction: tools.direction Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: get-newsletter-list-badge-intent-warning description: 'Get newsletter list Beta OAuth Scope: newsletter_lists:read' hints: readOnly: true destructive: false idempotent: true call: beehiiv-subpackage-newsletterlists.show with: publicationId: tools.publicationId newsletterListId: tools.newsletterListId Authorization: tools.Authorization outputParameters: - type: object mapping: $.