naftiko: 1.0.0-alpha2 info: label: PostHog API — annotations description: 'PostHog API — annotations. 6 operations. Lead operation: annotations. Self-contained Naftiko capability covering one Posthog business surface.' tags: - Posthog - annotations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POSTHOG_API_KEY: POSTHOG_API_KEY capability: consumes: - type: http namespace: posthog-annotations baseUri: '' description: PostHog API — annotations business capability. Self-contained, no shared references. resources: - name: api-projects-project_id-annotations path: /api/projects/{project_id}/annotations/ operations: - name: annotationslist method: GET description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. 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: search in: query type: string description: A search term. - name: annotationscreate method: POST description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. 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-annotations-id path: /api/projects/{project_id}/annotations/{id}/ operations: - name: annotationsretrieve method: GET description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: A unique integer value identifying this annotation. required: true - name: annotationsupdate method: PUT description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: A unique integer value identifying this annotation. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: annotationspartialupdate method: PATCH description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: A unique integer value identifying this annotation. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: annotationsdestroy 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: integer description: A unique integer value identifying this annotation. required: true authentication: type: bearer token: '{{env.POSTHOG_API_KEY}}' exposes: - type: rest namespace: posthog-annotations-rest port: 8080 description: REST adapter for PostHog API — annotations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/projects/{project-id}/annotations name: api-projects-project-id-annotations description: REST surface for api-projects-project_id-annotations. operations: - method: GET name: annotationslist description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. call: posthog-annotations.annotationslist with: limit: rest.limit offset: rest.offset search: rest.search outputParameters: - type: object mapping: $. - method: POST name: annotationscreate description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. call: posthog-annotations.annotationscreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/annotations/{id} name: api-projects-project-id-annotations-id description: REST surface for api-projects-project_id-annotations-id. operations: - method: GET name: annotationsretrieve description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. call: posthog-annotations.annotationsretrieve with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: annotationsupdate description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. call: posthog-annotations.annotationsupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: annotationspartialupdate description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. call: posthog-annotations.annotationspartialupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: annotationsdestroy description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true call: posthog-annotations.annotationsdestroy with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: posthog-annotations-mcp port: 9090 transport: http description: MCP adapter for PostHog API — annotations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-read-update-and-delete description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. hints: readOnly: true destructive: false idempotent: true call: posthog-annotations.annotationslist with: limit: tools.limit offset: tools.offset search: tools.search outputParameters: - type: object mapping: $. - name: create-read-update-and-delete-2 description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. hints: readOnly: false destructive: false idempotent: false call: posthog-annotations.annotationscreate with: body: tools.body outputParameters: - type: object mapping: $. - name: create-read-update-and-delete-3 description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. hints: readOnly: true destructive: false idempotent: true call: posthog-annotations.annotationsretrieve with: id: tools.id outputParameters: - type: object mapping: $. - name: create-read-update-and-delete-4 description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. hints: readOnly: false destructive: false idempotent: true call: posthog-annotations.annotationsupdate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: create-read-update-and-delete-5 description: Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. hints: readOnly: false destructive: false idempotent: true call: posthog-annotations.annotationspartialupdate 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-annotations.annotationsdestroy with: id: tools.id outputParameters: - type: object mapping: $.