beehiiv · Capability

API Reference — subpackage_tiers

API Reference — subpackage_tiers. 5 operations. Lead operation: Create a tier OAuth Scope: tiers:write. Self-contained Naftiko capability covering one Beehiiv business surface.

Run with Naftiko Beehiivsubpackage_tiers

What You Can Do

POST
Create — Create a tier OAuth Scope: tiers:write
/v1/publications/{publicationid}/tiers
GET
Index — List tiers OAuth Scope: tiers:read
/v1/publications/{publicationid}/tiers
GET
Show — Get tier OAuth Scope: tiers:read
/v1/publications/{publicationid}/tiers/{tierid}
PUT
Put — Update a tier OAuth Scope: tiers:write
/v1/publications/{publicationid}/tiers/{tierid}
PATCH
Patch — Update a tier OAuth Scope: tiers:write
/v1/publications/{publicationid}/tiers/{tierid}

MCP Tools

create-tier-badge-intent-info-minimal

Create a tier OAuth Scope: tiers:write

list-tiers-badge-intent-info-minimal

List tiers OAuth Scope: tiers:read

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

Get tier OAuth Scope: tiers:read

read-only idempotent
update-tier-badge-intent-info-minimal

Update a tier OAuth Scope: tiers:write

idempotent
update-tier-badge-intent-info-minimal-2

Update a tier OAuth Scope: tiers:write

idempotent

Capability Spec

beehiiv-subpackage-tiers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — subpackage_tiers
  description: 'API Reference — subpackage_tiers. 5 operations. Lead operation: Create a tier <Badge intent="info" minimal
    outlined>OAuth Scope: tiers:write</Badge>. Self-contained Naftiko capability covering one Beehiiv business surface.'
  tags:
  - Beehiiv
  - subpackage_tiers
  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-tiers
    baseUri: https://api.beehiiv.com/v2
    description: API Reference — subpackage_tiers business capability. Self-contained, no shared references.
    resources:
    - name: publications-publicationId-tiers
      path: /publications/{publicationId}/tiers
      operations:
      - name: create
        method: POST
        description: 'Create a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</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: Authorization
          in: header
          type: string
          description: Bearer authentication
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: index
        method: GET
        description: 'List tiers <Badge intent="info" minimal outlined>OAuth Scope: tiers: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: string
          description: Optional list of expandable objects.<br>`stats` - Returns statistics about the tier(s).<br>`prices`
            - Returns prices for the tier(s).
        - 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: Authorization
          in: header
          type: string
          description: Bearer authentication
          required: true
    - name: publications-publicationId-tiers-tierId
      path: /publications/{publicationId}/tiers/{tierId}
      operations:
      - name: show
        method: GET
        description: 'Get tier <Badge intent="info" minimal outlined>OAuth Scope: tiers: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: tierId
          in: path
          type: string
          description: The prefixed ID of the tier object
          required: true
        - name: expand[]
          in: query
          type: string
          description: Optional list of expandable objects.<br>`stats` - Returns statistics about the tier(s).<br>`prices`
            - Returns prices for the tier(s).
        - name: Authorization
          in: header
          type: string
          description: Bearer authentication
          required: true
      - name: put
        method: PUT
        description: 'Update a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</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: tierId
          in: path
          type: string
          description: The prefixed ID of the tier object
          required: true
        - name: Authorization
          in: header
          type: string
          description: Bearer authentication
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: patch
        method: PATCH
        description: 'Update a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</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: tierId
          in: path
          type: string
          description: The prefixed ID of the tier object
          required: true
        - name: Authorization
          in: header
          type: string
          description: Bearer authentication
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.BEEHIIV_API_KEY}}'
  exposes:
  - type: rest
    namespace: beehiiv-subpackage-tiers-rest
    port: 8080
    description: REST adapter for API Reference — subpackage_tiers. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/publications/{publicationid}/tiers
      name: publications-publicationid-tiers
      description: REST surface for publications-publicationId-tiers.
      operations:
      - method: POST
        name: create
        description: 'Create a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>'
        call: beehiiv-subpackage-tiers.create
        with:
          publicationId: rest.publicationId
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: index
        description: 'List tiers <Badge intent="info" minimal outlined>OAuth Scope: tiers:read</Badge>'
        call: beehiiv-subpackage-tiers.index
        with:
          publicationId: rest.publicationId
          expand[]: rest.expand[]
          limit: rest.limit
          page: rest.page
          direction: rest.direction
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/publications/{publicationid}/tiers/{tierid}
      name: publications-publicationid-tiers-tierid
      description: REST surface for publications-publicationId-tiers-tierId.
      operations:
      - method: GET
        name: show
        description: 'Get tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:read</Badge>'
        call: beehiiv-subpackage-tiers.show
        with:
          publicationId: rest.publicationId
          tierId: rest.tierId
          expand[]: rest.expand[]
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: 'Update a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>'
        call: beehiiv-subpackage-tiers.put
        with:
          publicationId: rest.publicationId
          tierId: rest.tierId
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patch
        description: 'Update a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>'
        call: beehiiv-subpackage-tiers.patch
        with:
          publicationId: rest.publicationId
          tierId: rest.tierId
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: beehiiv-subpackage-tiers-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — subpackage_tiers. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-tier-badge-intent-info-minimal
      description: 'Create a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>'
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: beehiiv-subpackage-tiers.create
      with:
        publicationId: tools.publicationId
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-tiers-badge-intent-info-minimal
      description: 'List tiers <Badge intent="info" minimal outlined>OAuth Scope: tiers:read</Badge>'
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: beehiiv-subpackage-tiers.index
      with:
        publicationId: tools.publicationId
        expand[]: tools.expand[]
        limit: tools.limit
        page: tools.page
        direction: tools.direction
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: get-tier-badge-intent-info-minimal
      description: 'Get tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:read</Badge>'
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: beehiiv-subpackage-tiers.show
      with:
        publicationId: tools.publicationId
        tierId: tools.tierId
        expand[]: tools.expand[]
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: update-tier-badge-intent-info-minimal
      description: 'Update a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>'
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: beehiiv-subpackage-tiers.put
      with:
        publicationId: tools.publicationId
        tierId: tools.tierId
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-tier-badge-intent-info-minimal-2
      description: 'Update a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>'
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: beehiiv-subpackage-tiers.patch
      with:
        publicationId: tools.publicationId
        tierId: tools.tierId
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.