PostHog · Capability

PostHog API — project_secret_api_keys

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

Run with Naftiko Posthogproject_secret_api_keys

What You Can Do

GET
Environmentsprojectsecretapikeyslist — environmentsprojectsecretapikeyslist
/v1/api/environments/{environment-id}/project-secret-api-keys
POST
Environmentsprojectsecretapikeyscreate — environmentsprojectsecretapikeyscreate
/v1/api/environments/{environment-id}/project-secret-api-keys
GET
Environmentsprojectsecretapikeysretrieve — environmentsprojectsecretapikeysretrieve
/v1/api/environments/{environment-id}/project-secret-api-keys/{id}
PUT
Environmentsprojectsecretapikeysupdate — environmentsprojectsecretapikeysupdate
/v1/api/environments/{environment-id}/project-secret-api-keys/{id}
PATCH
Environmentsprojectsecretapikeyspartialupdate — environmentsprojectsecretapikeyspartialupdate
/v1/api/environments/{environment-id}/project-secret-api-keys/{id}
DELETE
Environmentsprojectsecretapikeysdestroy — environmentsprojectsecretapikeysdestroy
/v1/api/environments/{environment-id}/project-secret-api-keys/{id}
POST
Environmentsprojectsecretapikeysrollcreate — Roll a project secret API key
/v1/api/environments/{environment-id}/project-secret-api-keys/{id}/roll
GET
Projectsecretapikeyslist — projectsecretapikeyslist
/v1/api/projects/{project-id}/project-secret-api-keys
POST
Projectsecretapikeyscreate — projectsecretapikeyscreate
/v1/api/projects/{project-id}/project-secret-api-keys
GET
Projectsecretapikeysretrieve — projectsecretapikeysretrieve
/v1/api/projects/{project-id}/project-secret-api-keys/{id}
PUT
Projectsecretapikeysupdate — projectsecretapikeysupdate
/v1/api/projects/{project-id}/project-secret-api-keys/{id}
PATCH
Projectsecretapikeyspartialupdate — projectsecretapikeyspartialupdate
/v1/api/projects/{project-id}/project-secret-api-keys/{id}
DELETE
Projectsecretapikeysdestroy — projectsecretapikeysdestroy
/v1/api/projects/{project-id}/project-secret-api-keys/{id}
POST
Projectsecretapikeysrollcreate — Roll a project secret API key
/v1/api/projects/{project-id}/project-secret-api-keys/{id}/roll

MCP Tools

environmentsprojectsecretapikeyslist

environmentsprojectsecretapikeyslist

read-only idempotent
environmentsprojectsecretapikeyscreate

environmentsprojectsecretapikeyscreate

environmentsprojectsecretapikeysretrieve

environmentsprojectsecretapikeysretrieve

read-only idempotent
environmentsprojectsecretapikeysupdate

environmentsprojectsecretapikeysupdate

idempotent
environmentsprojectsecretapikeyspartialupdate

environmentsprojectsecretapikeyspartialupdate

idempotent
environmentsprojectsecretapikeysdestroy

environmentsprojectsecretapikeysdestroy

idempotent
roll-project-secret-api-key

Roll a project secret API key

projectsecretapikeyslist

projectsecretapikeyslist

read-only idempotent
projectsecretapikeyscreate

projectsecretapikeyscreate

projectsecretapikeysretrieve

projectsecretapikeysretrieve

read-only idempotent
projectsecretapikeysupdate

projectsecretapikeysupdate

idempotent
projectsecretapikeyspartialupdate

projectsecretapikeyspartialupdate

idempotent
projectsecretapikeysdestroy

projectsecretapikeysdestroy

idempotent
roll-project-secret-api-key-2

Roll a project secret API key

Capability Spec

posthog-project-secret-api-keys.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — project_secret_api_keys
  description: 'PostHog API — project_secret_api_keys. 14 operations. Lead operation: project_secret_api_keys. Self-contained
    Naftiko capability covering one Posthog business surface.'
  tags:
  - Posthog
  - project_secret_api_keys
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-project-secret-api-keys
    baseUri: ''
    description: PostHog API — project_secret_api_keys business capability. Self-contained, no shared references.
    resources:
    - name: api-environments-environment_id-project_secret_api_keys
      path: /api/environments/{environment_id}/project_secret_api_keys/
      operations:
      - name: environmentsprojectsecretapikeyslist
        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: environmentsprojectsecretapikeyscreate
        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-environment_id-project_secret_api_keys-id
      path: /api/environments/{environment_id}/project_secret_api_keys/{id}/
      operations:
      - name: environmentsprojectsecretapikeysretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
      - name: environmentsprojectsecretapikeysupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentsprojectsecretapikeyspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentsprojectsecretapikeysdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
    - name: api-environments-environment_id-project_secret_api_keys-id-roll
      path: /api/environments/{environment_id}/project_secret_api_keys/{id}/roll/
      operations:
      - name: environmentsprojectsecretapikeysrollcreate
        method: POST
        description: Roll a project secret API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
    - name: api-projects-project_id-project_secret_api_keys
      path: /api/projects/{project_id}/project_secret_api_keys/
      operations:
      - name: projectsecretapikeyslist
        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: projectsecretapikeyscreate
        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-projects-project_id-project_secret_api_keys-id
      path: /api/projects/{project_id}/project_secret_api_keys/{id}/
      operations:
      - name: projectsecretapikeysretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
      - name: projectsecretapikeysupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: projectsecretapikeyspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: projectsecretapikeysdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
    - name: api-projects-project_id-project_secret_api_keys-id-roll
      path: /api/projects/{project_id}/project_secret_api_keys/{id}/roll/
      operations:
      - name: projectsecretapikeysrollcreate
        method: POST
        description: Roll a project secret API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A unique value identifying this project secret api key.
          required: true
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-project-secret-api-keys-rest
    port: 8080
    description: REST adapter for PostHog API — project_secret_api_keys. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/environments/{environment-id}/project-secret-api-keys
      name: api-environments-environment-id-project-secret-api-keys
      description: REST surface for api-environments-environment_id-project_secret_api_keys.
      operations:
      - method: GET
        name: environmentsprojectsecretapikeyslist
        description: environmentsprojectsecretapikeyslist
        call: posthog-project-secret-api-keys.environmentsprojectsecretapikeyslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: environmentsprojectsecretapikeyscreate
        description: environmentsprojectsecretapikeyscreate
        call: posthog-project-secret-api-keys.environmentsprojectsecretapikeyscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/project-secret-api-keys/{id}
      name: api-environments-environment-id-project-secret-api-keys-id
      description: REST surface for api-environments-environment_id-project_secret_api_keys-id.
      operations:
      - method: GET
        name: environmentsprojectsecretapikeysretrieve
        description: environmentsprojectsecretapikeysretrieve
        call: posthog-project-secret-api-keys.environmentsprojectsecretapikeysretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: environmentsprojectsecretapikeysupdate
        description: environmentsprojectsecretapikeysupdate
        call: posthog-project-secret-api-keys.environmentsprojectsecretapikeysupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: environmentsprojectsecretapikeyspartialupdate
        description: environmentsprojectsecretapikeyspartialupdate
        call: posthog-project-secret-api-keys.environmentsprojectsecretapikeyspartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: environmentsprojectsecretapikeysdestroy
        description: environmentsprojectsecretapikeysdestroy
        call: posthog-project-secret-api-keys.environmentsprojectsecretapikeysdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/project-secret-api-keys/{id}/roll
      name: api-environments-environment-id-project-secret-api-keys-id-roll
      description: REST surface for api-environments-environment_id-project_secret_api_keys-id-roll.
      operations:
      - method: POST
        name: environmentsprojectsecretapikeysrollcreate
        description: Roll a project secret API key
        call: posthog-project-secret-api-keys.environmentsprojectsecretapikeysrollcreate
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/project-secret-api-keys
      name: api-projects-project-id-project-secret-api-keys
      description: REST surface for api-projects-project_id-project_secret_api_keys.
      operations:
      - method: GET
        name: projectsecretapikeyslist
        description: projectsecretapikeyslist
        call: posthog-project-secret-api-keys.projectsecretapikeyslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: projectsecretapikeyscreate
        description: projectsecretapikeyscreate
        call: posthog-project-secret-api-keys.projectsecretapikeyscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/project-secret-api-keys/{id}
      name: api-projects-project-id-project-secret-api-keys-id
      description: REST surface for api-projects-project_id-project_secret_api_keys-id.
      operations:
      - method: GET
        name: projectsecretapikeysretrieve
        description: projectsecretapikeysretrieve
        call: posthog-project-secret-api-keys.projectsecretapikeysretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: projectsecretapikeysupdate
        description: projectsecretapikeysupdate
        call: posthog-project-secret-api-keys.projectsecretapikeysupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: projectsecretapikeyspartialupdate
        description: projectsecretapikeyspartialupdate
        call: posthog-project-secret-api-keys.projectsecretapikeyspartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: projectsecretapikeysdestroy
        description: projectsecretapikeysdestroy
        call: posthog-project-secret-api-keys.projectsecretapikeysdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/project-secret-api-keys/{id}/roll
      name: api-projects-project-id-project-secret-api-keys-id-roll
      description: REST surface for api-projects-project_id-project_secret_api_keys-id-roll.
      operations:
      - method: POST
        name: projectsecretapikeysrollcreate
        description: Roll a project secret API key
        call: posthog-project-secret-api-keys.projectsecretapikeysrollcreate
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-project-secret-api-keys-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — project_secret_api_keys. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: environmentsprojectsecretapikeyslist
      description: environmentsprojectsecretapikeyslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-project-secret-api-keys.environmentsprojectsecretapikeyslist
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsprojectsecretapikeyscreate
      description: environmentsprojectsecretapikeyscreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-project-secret-api-keys.environmentsprojectsecretapikeyscreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsprojectsecretapikeysretrieve
      description: environmentsprojectsecretapikeysretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-project-secret-api-keys.environmentsprojectsecretapikeysretrieve
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsprojectsecretapikeysupdate
      description: environmentsprojectsecretapikeysupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-project-secret-api-keys.environmentsprojectsecretapikeysupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsprojectsecretapikeyspartialupdate
      description: environmentsprojectsecretapikeyspartialupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-project-secret-api-keys.environmentsprojectsecretapikeyspartialupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsprojectsecretapikeysdestroy
      description: environmentsprojectsecretapikeysdestroy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: posthog-project-secret-api-keys.environmentsprojectsecretapikeysdestroy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: roll-project-secret-api-key
      description: Roll a project secret API key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-project-secret-api-keys.environmentsprojectsecretapikeysrollcreate
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: projectsecretapikeyslist
      description: projectsecretapikeyslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-project-secret-api-keys.projectsecretapikeyslist
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: projectsecretapikeyscreate
      description: projectsecretapikeyscreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-project-secret-api-keys.projectsecretapikeyscreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: projectsecretapikeysretrieve
      description: projectsecretapikeysretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-project-secret-api-keys.projectsecretapikeysretrieve
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: projectsecretapikeysupdate
      description: projectsecretapikeysupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-project-secret-api-keys.projectsecretapikeysupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: projectsecretapikeyspartialupdate
      description: projectsecretapikeyspartialupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-project-secret-api-keys.projectsecretapikeyspartialupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: projectsecretapikeysdestroy
      description: projectsecretapikeysdestroy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: posthog-project-secret-api-keys.projectsecretapikeysdestroy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: roll-project-secret-api-key-2
      description: Roll a project secret API key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-project-secret-api-keys.projectsecretapikeysrollcreate
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.