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