naftiko: 1.0.0-alpha2 info: label: PostHog API — exports description: 'PostHog API — exports. 8 operations. Lead operation: exports. Self-contained Naftiko capability covering one Posthog business surface.' tags: - Posthog - exports created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POSTHOG_API_KEY: POSTHOG_API_KEY capability: consumes: - type: http namespace: posthog-exports baseUri: '' description: PostHog API — exports business capability. Self-contained, no shared references. resources: - name: api-environments-environment_id-exports path: /api/environments/{environment_id}/exports/ operations: - name: environmentsexportslist 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: environmentsexportscreate 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-exports-id path: /api/environments/{environment_id}/exports/{id}/ operations: - name: environmentsexportsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: A unique integer value identifying this exported asset. required: true - name: api-environments-environment_id-exports-id-content path: /api/environments/{environment_id}/exports/{id}/content/ operations: - name: environmentsexportscontentretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: A unique integer value identifying this exported asset. required: true - name: api-projects-project_id-exports path: /api/projects/{project_id}/exports/ operations: - name: exportslist 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: exportscreate 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-exports-id path: /api/projects/{project_id}/exports/{id}/ operations: - name: exportsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: A unique integer value identifying this exported asset. required: true - name: api-projects-project_id-exports-id-content path: /api/projects/{project_id}/exports/{id}/content/ operations: - name: exportscontentretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: A unique integer value identifying this exported asset. required: true authentication: type: bearer token: '{{env.POSTHOG_API_KEY}}' exposes: - type: rest namespace: posthog-exports-rest port: 8080 description: REST adapter for PostHog API — exports. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/environments/{environment-id}/exports name: api-environments-environment-id-exports description: REST surface for api-environments-environment_id-exports. operations: - method: GET name: environmentsexportslist description: environmentsexportslist call: posthog-exports.environmentsexportslist with: limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - method: POST name: environmentsexportscreate description: environmentsexportscreate call: posthog-exports.environmentsexportscreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/exports/{id} name: api-environments-environment-id-exports-id description: REST surface for api-environments-environment_id-exports-id. operations: - method: GET name: environmentsexportsretrieve description: environmentsexportsretrieve call: posthog-exports.environmentsexportsretrieve with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/exports/{id}/content name: api-environments-environment-id-exports-id-content description: REST surface for api-environments-environment_id-exports-id-content. operations: - method: GET name: environmentsexportscontentretrieve description: environmentsexportscontentretrieve call: posthog-exports.environmentsexportscontentretrieve with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/exports name: api-projects-project-id-exports description: REST surface for api-projects-project_id-exports. operations: - method: GET name: exportslist description: exportslist call: posthog-exports.exportslist with: limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - method: POST name: exportscreate description: exportscreate call: posthog-exports.exportscreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/exports/{id} name: api-projects-project-id-exports-id description: REST surface for api-projects-project_id-exports-id. operations: - method: GET name: exportsretrieve description: exportsretrieve call: posthog-exports.exportsretrieve with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/exports/{id}/content name: api-projects-project-id-exports-id-content description: REST surface for api-projects-project_id-exports-id-content. operations: - method: GET name: exportscontentretrieve description: exportscontentretrieve call: posthog-exports.exportscontentretrieve with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: posthog-exports-mcp port: 9090 transport: http description: MCP adapter for PostHog API — exports. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: environmentsexportslist description: environmentsexportslist hints: readOnly: true destructive: false idempotent: true call: posthog-exports.environmentsexportslist with: limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: environmentsexportscreate description: environmentsexportscreate hints: readOnly: false destructive: false idempotent: false call: posthog-exports.environmentsexportscreate with: body: tools.body outputParameters: - type: object mapping: $. - name: environmentsexportsretrieve description: environmentsexportsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-exports.environmentsexportsretrieve with: id: tools.id outputParameters: - type: object mapping: $. - name: environmentsexportscontentretrieve description: environmentsexportscontentretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-exports.environmentsexportscontentretrieve with: id: tools.id outputParameters: - type: object mapping: $. - name: exportslist description: exportslist hints: readOnly: true destructive: false idempotent: true call: posthog-exports.exportslist with: limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: exportscreate description: exportscreate hints: readOnly: false destructive: false idempotent: false call: posthog-exports.exportscreate with: body: tools.body outputParameters: - type: object mapping: $. - name: exportsretrieve description: exportsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-exports.exportsretrieve with: id: tools.id outputParameters: - type: object mapping: $. - name: exportscontentretrieve description: exportscontentretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-exports.exportscontentretrieve with: id: tools.id outputParameters: - type: object mapping: $.