beehiiv · Capability

API Reference — subpackage_oauth_users

API Reference — subpackage_oauth_users. 1 operations. Lead operation: Identify user OAuth Scope: identify:read. Self-contained Naftiko capability covering one Beehiiv business surface.

Run with Naftiko Beehiivsubpackage_oauth_users

What You Can Do

GET
Identify — Identify user OAuth Scope: identify:read
/v1/users/identify

MCP Tools

identify-user-badge-intent-info-minimal

Identify user OAuth Scope: identify:read

read-only idempotent

Capability Spec

beehiiv-subpackage-oauth-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — subpackage_oauth_users
  description: 'API Reference — subpackage_oauth_users. 1 operations. Lead operation: Identify user <Badge intent="info" minimal
    outlined>OAuth Scope: identify:read</Badge>. Self-contained Naftiko capability covering one Beehiiv business surface.'
  tags:
  - Beehiiv
  - subpackage_oauth_users
  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-oauth-users
    baseUri: https://api.beehiiv.com/v2
    description: API Reference — subpackage_oauth_users business capability. Self-contained, no shared references.
    resources:
    - name: users-identify
      path: /users/identify
      operations:
      - name: identify
        method: GET
        description: 'Identify user <Badge intent="info" minimal outlined>OAuth Scope: identify:read</Badge>'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - 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-oauth-users-rest
    port: 8080
    description: REST adapter for API Reference — subpackage_oauth_users. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/users/identify
      name: users-identify
      description: REST surface for users-identify.
      operations:
      - method: GET
        name: identify
        description: 'Identify user <Badge intent="info" minimal outlined>OAuth Scope: identify:read</Badge>'
        call: beehiiv-subpackage-oauth-users.identify
        with:
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: beehiiv-subpackage-oauth-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — subpackage_oauth_users. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: identify-user-badge-intent-info-minimal
      description: 'Identify user <Badge intent="info" minimal outlined>OAuth Scope: identify:read</Badge>'
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: beehiiv-subpackage-oauth-users.identify
      with:
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.