PostHog · Capability

PostHog API — dashboard_templates

PostHog API — dashboard_templates. 8 operations. Lead operation: Copy a team template to this project. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthogdashboard_templates

What You Can Do

GET
Dashboardtemplateslist — dashboardtemplateslist
/v1/api/projects/{project-id}/dashboard-templates
POST
Dashboardtemplatescreate — dashboardtemplatescreate
/v1/api/projects/{project-id}/dashboard-templates
POST
Dashboardtemplatescopybetweenprojectscreate — Copy a team template to this project
/v1/api/projects/{project-id}/dashboard-templates/copy-between-projects
GET
Dashboardtemplatesjsonschemaretrieve — dashboardtemplatesjsonschemaretrieve
/v1/api/projects/{project-id}/dashboard-templates/json-schema
GET
Dashboardtemplatesretrieve — dashboardtemplatesretrieve
/v1/api/projects/{project-id}/dashboard-templates/{id}
PUT
Dashboardtemplatesupdate — dashboardtemplatesupdate
/v1/api/projects/{project-id}/dashboard-templates/{id}
PATCH
Dashboardtemplatespartialupdate — dashboardtemplatespartialupdate
/v1/api/projects/{project-id}/dashboard-templates/{id}
DELETE
Dashboardtemplatesdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/projects/{project-id}/dashboard-templates/{id}

MCP Tools

dashboardtemplateslist

dashboardtemplateslist

read-only idempotent
dashboardtemplatescreate

dashboardtemplatescreate

copy-team-template-this-project

Copy a team template to this project

dashboardtemplatesjsonschemaretrieve

dashboardtemplatesjsonschemaretrieve

read-only idempotent
dashboardtemplatesretrieve

dashboardtemplatesretrieve

read-only idempotent
dashboardtemplatesupdate

dashboardtemplatesupdate

idempotent
dashboardtemplatespartialupdate

dashboardtemplatespartialupdate

idempotent
hard-delete-this-model-is

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent

Capability Spec

posthog-dashboard-templates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — dashboard_templates
  description: 'PostHog API — dashboard_templates. 8 operations. Lead operation: Copy a team template to this project. Self-contained
    Naftiko capability covering one Posthog business surface.'
  tags:
  - Posthog
  - dashboard_templates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-dashboard-templates
    baseUri: ''
    description: PostHog API — dashboard_templates business capability. Self-contained, no shared references.
    resources:
    - name: api-projects-project_id-dashboard_templates
      path: /api/projects/{project_id}/dashboard_templates/
      operations:
      - name: dashboardtemplateslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: is_featured
          in: query
          type: boolean
          description: Omit for all templates. When set, filter by featured flag; parsed with str_to_bool (same as other API
            query booleans).
        - 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: ordering
          in: query
          type: string
          description: Optional. When not using `search`, results are sorted with featured templates first (`is_featured=true`),
            then by `template_name` (case-insensitive A–Z; `-templ
        - name: scope
          in: query
          type: string
          description: 'Optional. `global`: official templates only. `team`: this project''s saved templates only (`scope=team`
            rows for the current project). `feature_flag`: feature-fl'
      - name: dashboardtemplatescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-projects-project_id-dashboard_templates-copy_between_projects
      path: /api/projects/{project_id}/dashboard_templates/copy_between_projects/
      operations:
      - name: dashboardtemplatescopybetweenprojectscreate
        method: POST
        description: Copy a team template to this project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-projects-project_id-dashboard_templates-json_schema
      path: /api/projects/{project_id}/dashboard_templates/json_schema/
      operations:
      - name: dashboardtemplatesjsonschemaretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-projects-project_id-dashboard_templates-id
      path: /api/projects/{project_id}/dashboard_templates/{id}/
      operations:
      - name: dashboardtemplatesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this dashboard template.
          required: true
      - name: dashboardtemplatesupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this dashboard template.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: dashboardtemplatespartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this dashboard template.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: dashboardtemplatesdestroy
        method: DELETE
        description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this dashboard template.
          required: true
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-dashboard-templates-rest
    port: 8080
    description: REST adapter for PostHog API — dashboard_templates. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/projects/{project-id}/dashboard-templates
      name: api-projects-project-id-dashboard-templates
      description: REST surface for api-projects-project_id-dashboard_templates.
      operations:
      - method: GET
        name: dashboardtemplateslist
        description: dashboardtemplateslist
        call: posthog-dashboard-templates.dashboardtemplateslist
        with:
          is_featured: rest.is_featured
          limit: rest.limit
          offset: rest.offset
          ordering: rest.ordering
          scope: rest.scope
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: dashboardtemplatescreate
        description: dashboardtemplatescreate
        call: posthog-dashboard-templates.dashboardtemplatescreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/dashboard-templates/copy-between-projects
      name: api-projects-project-id-dashboard-templates-copy-between-projects
      description: REST surface for api-projects-project_id-dashboard_templates-copy_between_projects.
      operations:
      - method: POST
        name: dashboardtemplatescopybetweenprojectscreate
        description: Copy a team template to this project
        call: posthog-dashboard-templates.dashboardtemplatescopybetweenprojectscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/dashboard-templates/json-schema
      name: api-projects-project-id-dashboard-templates-json-schema
      description: REST surface for api-projects-project_id-dashboard_templates-json_schema.
      operations:
      - method: GET
        name: dashboardtemplatesjsonschemaretrieve
        description: dashboardtemplatesjsonschemaretrieve
        call: posthog-dashboard-templates.dashboardtemplatesjsonschemaretrieve
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/dashboard-templates/{id}
      name: api-projects-project-id-dashboard-templates-id
      description: REST surface for api-projects-project_id-dashboard_templates-id.
      operations:
      - method: GET
        name: dashboardtemplatesretrieve
        description: dashboardtemplatesretrieve
        call: posthog-dashboard-templates.dashboardtemplatesretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: dashboardtemplatesupdate
        description: dashboardtemplatesupdate
        call: posthog-dashboard-templates.dashboardtemplatesupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: dashboardtemplatespartialupdate
        description: dashboardtemplatespartialupdate
        call: posthog-dashboard-templates.dashboardtemplatespartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: dashboardtemplatesdestroy
        description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
        call: posthog-dashboard-templates.dashboardtemplatesdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-dashboard-templates-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — dashboard_templates. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: dashboardtemplateslist
      description: dashboardtemplateslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-dashboard-templates.dashboardtemplateslist
      with:
        is_featured: tools.is_featured
        limit: tools.limit
        offset: tools.offset
        ordering: tools.ordering
        scope: tools.scope
      outputParameters:
      - type: object
        mapping: $.
    - name: dashboardtemplatescreate
      description: dashboardtemplatescreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-dashboard-templates.dashboardtemplatescreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: copy-team-template-this-project
      description: Copy a team template to this project
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-dashboard-templates.dashboardtemplatescopybetweenprojectscreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: dashboardtemplatesjsonschemaretrieve
      description: dashboardtemplatesjsonschemaretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-dashboard-templates.dashboardtemplatesjsonschemaretrieve
      outputParameters:
      - type: object
        mapping: $.
    - name: dashboardtemplatesretrieve
      description: dashboardtemplatesretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-dashboard-templates.dashboardtemplatesretrieve
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: dashboardtemplatesupdate
      description: dashboardtemplatesupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-dashboard-templates.dashboardtemplatesupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: dashboardtemplatespartialupdate
      description: dashboardtemplatespartialupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-dashboard-templates.dashboardtemplatespartialupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hard-delete-this-model-is
      description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: posthog-dashboard-templates.dashboardtemplatesdestroy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.