PostHog · Capability

PostHog API — invites

PostHog API — invites. 4 operations. Lead operation: invites. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthoginvites

What You Can Do

GET
Inviteslist — inviteslist
/v1/api/organizations/{organization-id}/invites
POST
Invitescreate — invitescreate
/v1/api/organizations/{organization-id}/invites
POST
Invitesbulkcreate — invitesbulkcreate
/v1/api/organizations/{organization-id}/invites/bulk
DELETE
Invitesdestroy — invitesdestroy
/v1/api/organizations/{organization-id}/invites/{id}

MCP Tools

inviteslist

inviteslist

read-only idempotent
invitescreate

invitescreate

invitesbulkcreate

invitesbulkcreate

invitesdestroy

invitesdestroy

idempotent

Capability Spec

posthog-invites.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — invites
  description: 'PostHog API — invites. 4 operations. Lead operation: invites. Self-contained Naftiko capability covering one
    Posthog business surface.'
  tags:
  - Posthog
  - invites
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-invites
    baseUri: ''
    description: PostHog API — invites business capability. Self-contained, no shared references.
    resources:
    - name: api-organizations-organization_id-invites
      path: /api/organizations/{organization_id}/invites/
      operations:
      - name: inviteslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
      - name: invitescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-organizations-organization_id-invites-bulk
      path: /api/organizations/{organization_id}/invites/bulk/
      operations:
      - name: invitesbulkcreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-organizations-organization_id-invites-id
      path: /api/organizations/{organization_id}/invites/{id}/
      operations:
      - name: invitesdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this organization invite.
          required: true
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-invites-rest
    port: 8080
    description: REST adapter for PostHog API — invites. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/organizations/{organization-id}/invites
      name: api-organizations-organization-id-invites
      description: REST surface for api-organizations-organization_id-invites.
      operations:
      - method: GET
        name: inviteslist
        description: inviteslist
        call: posthog-invites.inviteslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: invitescreate
        description: invitescreate
        call: posthog-invites.invitescreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations/{organization-id}/invites/bulk
      name: api-organizations-organization-id-invites-bulk
      description: REST surface for api-organizations-organization_id-invites-bulk.
      operations:
      - method: POST
        name: invitesbulkcreate
        description: invitesbulkcreate
        call: posthog-invites.invitesbulkcreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations/{organization-id}/invites/{id}
      name: api-organizations-organization-id-invites-id
      description: REST surface for api-organizations-organization_id-invites-id.
      operations:
      - method: DELETE
        name: invitesdestroy
        description: invitesdestroy
        call: posthog-invites.invitesdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-invites-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — invites. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: inviteslist
      description: inviteslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-invites.inviteslist
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: invitescreate
      description: invitescreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-invites.invitescreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: invitesbulkcreate
      description: invitesbulkcreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-invites.invitesbulkcreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: invitesdestroy
      description: invitesdestroy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: posthog-invites.invitesdestroy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.