beehiiv · Capability

API Reference — subpackage_publications

API Reference — subpackage_publications. 2 operations. Lead operation: List publications OAuth Scope: publications:read. Self-contained Naftiko capability covering one Beehiiv business surface.

Run with Naftiko Beehiivsubpackage_publications

What You Can Do

GET
Index — List publications OAuth Scope: publications:read
/v1/publications
GET
Show — Get publication OAuth Scope: publications:read
/v1/publications/{publicationid}

MCP Tools

list-publications-badge-intent-info-minimal

List publications OAuth Scope: publications:read

read-only idempotent
get-publication-badge-intent-info-minimal

Get publication OAuth Scope: publications:read

read-only idempotent

Capability Spec

beehiiv-subpackage-publications.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — subpackage_publications
  description: 'API Reference — subpackage_publications. 2 operations. Lead operation: List publications <Badge intent="info"
    minimal outlined>OAuth Scope: publications:read</Badge>. Self-contained Naftiko capability covering one Beehiiv business
    surface.'
  tags:
  - Beehiiv
  - subpackage_publications
  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-publications
    baseUri: https://api.beehiiv.com/v2
    description: API Reference — subpackage_publications business capability. Self-contained, no shared references.
    resources:
    - name: publications
      path: /publications
      operations:
      - name: index
        method: GET
        description: 'List publications <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: expand
          in: query
          type: array
          description: Optionally expand the results by adding additional information like subscription counts and engagement
            stats.
        - 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).<br>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<br> `asc` - Ascending, sorts from smallest
            to largest.<br> `desc` - Descending, sorts from largest
        - name: order_by
          in: query
          type: string
          description: 'The field that the results are sorted by. Defaults to created<br> `created` - The time in which the
            publication was first created.<br> `name` - The name of the '
        - name: Authorization
          in: header
          type: string
          description: Bearer authentication
          required: true
    - name: publications-publicationId
      path: /publications/{publicationId}
      operations:
      - name: show
        method: GET
        description: 'Get publication <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>'
        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: expand
          in: query
          type: array
          description: Optionally expand the results by adding additional information like subscription counts and engagement
            stats.
        - 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-publications-rest
    port: 8080
    description: REST adapter for API Reference — subpackage_publications. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/publications
      name: publications
      description: REST surface for publications.
      operations:
      - method: GET
        name: index
        description: 'List publications <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>'
        call: beehiiv-subpackage-publications.index
        with:
          expand: rest.expand
          limit: rest.limit
          page: rest.page
          direction: rest.direction
          order_by: rest.order_by
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/publications/{publicationid}
      name: publications-publicationid
      description: REST surface for publications-publicationId.
      operations:
      - method: GET
        name: show
        description: 'Get publication <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>'
        call: beehiiv-subpackage-publications.show
        with:
          publicationId: rest.publicationId
          expand: rest.expand
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: beehiiv-subpackage-publications-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — subpackage_publications. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-publications-badge-intent-info-minimal
      description: 'List publications <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>'
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: beehiiv-subpackage-publications.index
      with:
        expand: tools.expand
        limit: tools.limit
        page: tools.page
        direction: tools.direction
        order_by: tools.order_by
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: get-publication-badge-intent-info-minimal
      description: 'Get publication <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>'
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: beehiiv-subpackage-publications.show
      with:
        publicationId: tools.publicationId
        expand: tools.expand
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.