PostHog · Capability

PostHog API — approval_policies

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

Run with Naftiko Posthogapproval_policies

What You Can Do

GET
Approvalpolicieslist — approvalpolicieslist
/v1/api/environments/{project-id}/approval-policies
POST
Approvalpoliciescreate — approvalpoliciescreate
/v1/api/environments/{project-id}/approval-policies
GET
Approvalpoliciesretrieve — approvalpoliciesretrieve
/v1/api/environments/{project-id}/approval-policies/{id}
PUT
Approvalpoliciesupdate — approvalpoliciesupdate
/v1/api/environments/{project-id}/approval-policies/{id}
PATCH
Approvalpoliciespartialupdate — approvalpoliciespartialupdate
/v1/api/environments/{project-id}/approval-policies/{id}
DELETE
Approvalpoliciesdestroy — approvalpoliciesdestroy
/v1/api/environments/{project-id}/approval-policies/{id}

MCP Tools

approvalpolicieslist

approvalpolicieslist

read-only idempotent
approvalpoliciescreate

approvalpoliciescreate

approvalpoliciesretrieve

approvalpoliciesretrieve

read-only idempotent
approvalpoliciesupdate

approvalpoliciesupdate

idempotent
approvalpoliciespartialupdate

approvalpoliciespartialupdate

idempotent
approvalpoliciesdestroy

approvalpoliciesdestroy

idempotent

Capability Spec

posthog-approval-policies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — approval_policies
  description: 'PostHog API — approval_policies. 6 operations. Lead operation: approval_policies. Self-contained Naftiko capability
    covering one Posthog business surface.'
  tags:
  - Posthog
  - approval_policies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-approval-policies
    baseUri: ''
    description: PostHog API — approval_policies business capability. Self-contained, no shared references.
    resources:
    - name: api-environments-project_id-approval_policies
      path: /api/environments/{project_id}/approval_policies/
      operations:
      - name: approvalpolicieslist
        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: approvalpoliciescreate
        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-environments-project_id-approval_policies-id
      path: /api/environments/{project_id}/approval_policies/{id}/
      operations:
      - name: approvalpoliciesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this approval policy.
          required: true
      - name: approvalpoliciesupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this approval policy.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: approvalpoliciespartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this approval policy.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: approvalpoliciesdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this approval policy.
          required: true
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-approval-policies-rest
    port: 8080
    description: REST adapter for PostHog API — approval_policies. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/environments/{project-id}/approval-policies
      name: api-environments-project-id-approval-policies
      description: REST surface for api-environments-project_id-approval_policies.
      operations:
      - method: GET
        name: approvalpolicieslist
        description: approvalpolicieslist
        call: posthog-approval-policies.approvalpolicieslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: approvalpoliciescreate
        description: approvalpoliciescreate
        call: posthog-approval-policies.approvalpoliciescreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{project-id}/approval-policies/{id}
      name: api-environments-project-id-approval-policies-id
      description: REST surface for api-environments-project_id-approval_policies-id.
      operations:
      - method: GET
        name: approvalpoliciesretrieve
        description: approvalpoliciesretrieve
        call: posthog-approval-policies.approvalpoliciesretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: approvalpoliciesupdate
        description: approvalpoliciesupdate
        call: posthog-approval-policies.approvalpoliciesupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: approvalpoliciespartialupdate
        description: approvalpoliciespartialupdate
        call: posthog-approval-policies.approvalpoliciespartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: approvalpoliciesdestroy
        description: approvalpoliciesdestroy
        call: posthog-approval-policies.approvalpoliciesdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-approval-policies-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — approval_policies. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: approvalpolicieslist
      description: approvalpolicieslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-approval-policies.approvalpolicieslist
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: approvalpoliciescreate
      description: approvalpoliciescreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-approval-policies.approvalpoliciescreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: approvalpoliciesretrieve
      description: approvalpoliciesretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-approval-policies.approvalpoliciesretrieve
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: approvalpoliciesupdate
      description: approvalpoliciesupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-approval-policies.approvalpoliciesupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: approvalpoliciespartialupdate
      description: approvalpoliciespartialupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-approval-policies.approvalpoliciespartialupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: approvalpoliciesdestroy
      description: approvalpoliciesdestroy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: posthog-approval-policies.approvalpoliciesdestroy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.