naftiko: 1.0.0-alpha2 info: label: PostHog API — cdp description: 'PostHog API — cdp. 31 operations. Lead operation: cdp. Self-contained Naftiko capability covering one Posthog business surface.' tags: - Posthog - cdp created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POSTHOG_API_KEY: POSTHOG_API_KEY capability: consumes: - type: http namespace: posthog-cdp baseUri: '' description: PostHog API — cdp business capability. Self-contained, no shared references. resources: - name: api-environments-environment_id-hog_functions path: /api/environments/{environment_id}/hog_functions/ operations: - name: environmentshogfunctionslist method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: created_at in: query type: string - name: created_by in: query type: integer - name: enabled in: query type: boolean - name: id in: query type: string - 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: type in: query type: array description: Multiple values may be separated by commas. - name: updated_at in: query type: string - name: environmentshogfunctionscreate 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-environments-environment_id-hog_functions-icon path: /api/environments/{environment_id}/hog_functions/icon/ operations: - name: environmentshogfunctionsiconretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-environments-environment_id-hog_functions-icons path: /api/environments/{environment_id}/hog_functions/icons/ operations: - name: environmentshogfunctionsiconsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-environments-environment_id-hog_functions-rearrange path: /api/environments/{environment_id}/hog_functions/rearrange/ operations: - name: environmentshogfunctionsrearrangepartialupdate method: PATCH description: Update the execution order of multiple HogFunctions. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: api-environments-environment_id-hog_functions-id path: /api/environments/{environment_id}/hog_functions/{id}/ operations: - name: environmentshogfunctionsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: environmentshogfunctionsupdate method: PUT description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: environmentshogfunctionspartialupdate method: PATCH description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: environmentshogfunctionsdestroy 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 hog function. required: true - name: api-environments-environment_id-hog_functions-id-enable_backfills path: /api/environments/{environment_id}/hog_functions/{id}/enable_backfills/ operations: - name: environmentshogfunctionsenablebackfillscreate method: POST description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: api-environments-environment_id-hog_functions-id-invocations path: /api/environments/{environment_id}/hog_functions/{id}/invocations/ operations: - name: environmentshogfunctionsinvocationscreate method: POST description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: api-environments-environment_id-hog_functions-id-logs path: /api/environments/{environment_id}/hog_functions/{id}/logs/ operations: - name: environmentshogfunctionslogsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: after in: query type: string description: Only return entries after this ISO 8601 timestamp. - name: before in: query type: string description: Only return entries before this ISO 8601 timestamp. - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: instance_id in: query type: string description: Filter logs to a specific execution instance. - name: level in: query type: string description: 'Comma-separated log levels to include, e.g. ''WARN,ERROR''. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.' - name: limit in: query type: integer description: Maximum number of log entries to return (1-500, default 50). - name: search in: query type: string description: Case-insensitive substring search across log messages. - name: api-environments-environment_id-hog_functions-id-metrics path: /api/environments/{environment_id}/hog_functions/{id}/metrics/ operations: - name: environmentshogfunctionsmetricsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: after in: query type: string description: Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'. - name: before in: query type: string description: End of the time range. Same format as 'after'. Defaults to now. - name: breakdown_by in: query type: string description: Group the series by metric 'name' or 'kind'. Defaults to 'kind'. - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: instance_id in: query type: string description: Filter metrics to a specific execution instance. - name: interval in: query type: string description: 'Time bucket size for the series. One of: hour, day, week. Defaults to ''day''.' - name: kind in: query type: string description: Comma-separated metric kinds to filter by, e.g. 'success,failure'. - name: name in: query type: string description: Comma-separated metric names to filter by. - name: api-environments-environment_id-hog_functions-id-metrics-totals path: /api/environments/{environment_id}/hog_functions/{id}/metrics/totals/ operations: - name: environmentshogfunctionsmetricstotalsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: after in: query type: string description: Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'. - name: before in: query type: string description: End of the time range. Same format as 'after'. Defaults to now. - name: breakdown_by in: query type: string description: Group the series by metric 'name' or 'kind'. Defaults to 'kind'. - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: instance_id in: query type: string description: Filter metrics to a specific execution instance. - name: interval in: query type: string description: 'Time bucket size for the series. One of: hour, day, week. Defaults to ''day''.' - name: kind in: query type: string description: Comma-separated metric kinds to filter by, e.g. 'success,failure'. - name: name in: query type: string description: Comma-separated metric names to filter by. - name: api-projects-project_id-hog_function_templates path: /api/projects/{project_id}/hog_function_templates/ operations: - name: hogfunctiontemplateslist 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: template_id in: query type: string description: Filter to a specific template by its template_id. Deprecated templates are excluded from list results; use the retrieve endpoint to look up a template by ID reg - name: type in: query type: string description: Filter by template type (e.g. destination, email, sms_provider, broadcast). Defaults to destination if neither type nor types is provided. - name: types in: query type: string description: Comma-separated list of template types to include (e.g. destination,email,sms_provider). - name: api-projects-project_id-hog_function_templates-template_id path: /api/projects/{project_id}/hog_function_templates/{template_id}/ operations: - name: hogfunctiontemplatesretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: template_id in: path type: string required: true - name: api-projects-project_id-hog_functions path: /api/projects/{project_id}/hog_functions/ operations: - name: hogfunctionslist method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: created_at in: query type: string - name: created_by in: query type: integer - name: enabled in: query type: boolean - name: id in: query type: string - 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: type in: query type: array description: Multiple values may be separated by commas. - name: updated_at in: query type: string - name: hogfunctionscreate 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-hog_functions-icon path: /api/projects/{project_id}/hog_functions/icon/ operations: - name: hogfunctionsiconretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-projects-project_id-hog_functions-icons path: /api/projects/{project_id}/hog_functions/icons/ operations: - name: hogfunctionsiconsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-projects-project_id-hog_functions-rearrange path: /api/projects/{project_id}/hog_functions/rearrange/ operations: - name: hogfunctionsrearrangepartialupdate method: PATCH description: Update the execution order of multiple HogFunctions. 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-hog_functions-id path: /api/projects/{project_id}/hog_functions/{id}/ operations: - name: hogfunctionsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: hogfunctionsupdate method: PUT description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: hogfunctionspartialupdate method: PATCH description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: hogfunctionsdestroy 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 hog function. required: true - name: api-projects-project_id-hog_functions-id-enable_backfills path: /api/projects/{project_id}/hog_functions/{id}/enable_backfills/ operations: - name: hogfunctionsenablebackfillscreate method: POST description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: api-projects-project_id-hog_functions-id-invocations path: /api/projects/{project_id}/hog_functions/{id}/invocations/ operations: - name: hogfunctionsinvocationscreate method: POST description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: api-projects-project_id-hog_functions-id-logs path: /api/projects/{project_id}/hog_functions/{id}/logs/ operations: - name: hogfunctionslogsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: after in: query type: string description: Only return entries after this ISO 8601 timestamp. - name: before in: query type: string description: Only return entries before this ISO 8601 timestamp. - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: instance_id in: query type: string description: Filter logs to a specific execution instance. - name: level in: query type: string description: 'Comma-separated log levels to include, e.g. ''WARN,ERROR''. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.' - name: limit in: query type: integer description: Maximum number of log entries to return (1-500, default 50). - name: search in: query type: string description: Case-insensitive substring search across log messages. - name: api-projects-project_id-hog_functions-id-metrics path: /api/projects/{project_id}/hog_functions/{id}/metrics/ operations: - name: hogfunctionsmetricsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: after in: query type: string description: Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'. - name: before in: query type: string description: End of the time range. Same format as 'after'. Defaults to now. - name: breakdown_by in: query type: string description: Group the series by metric 'name' or 'kind'. Defaults to 'kind'. - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: instance_id in: query type: string description: Filter metrics to a specific execution instance. - name: interval in: query type: string description: 'Time bucket size for the series. One of: hour, day, week. Defaults to ''day''.' - name: kind in: query type: string description: Comma-separated metric kinds to filter by, e.g. 'success,failure'. - name: name in: query type: string description: Comma-separated metric names to filter by. - name: api-projects-project_id-hog_functions-id-metrics-totals path: /api/projects/{project_id}/hog_functions/{id}/metrics/totals/ operations: - name: hogfunctionsmetricstotalsretrieve method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: after in: query type: string description: Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'. - name: before in: query type: string description: End of the time range. Same format as 'after'. Defaults to now. - name: breakdown_by in: query type: string description: Group the series by metric 'name' or 'kind'. Defaults to 'kind'. - name: id in: path type: string description: A UUID string identifying this hog function. required: true - name: instance_id in: query type: string description: Filter metrics to a specific execution instance. - name: interval in: query type: string description: 'Time bucket size for the series. One of: hour, day, week. Defaults to ''day''.' - name: kind in: query type: string description: Comma-separated metric kinds to filter by, e.g. 'success,failure'. - name: name in: query type: string description: Comma-separated metric names to filter by. - name: api-public_hog_function_templates path: /api/public_hog_function_templates/ operations: - name: publichogfunctiontemplateslist 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: template_id in: query type: string description: Filter to a specific template by its template_id. Deprecated templates are excluded from list results; use the retrieve endpoint to look up a template by ID reg - name: type in: query type: string description: Filter by template type (e.g. destination, email, sms_provider, broadcast). Defaults to destination if neither type nor types is provided. - name: types in: query type: string description: Comma-separated list of template types to include (e.g. destination,email,sms_provider). authentication: type: bearer token: '{{env.POSTHOG_API_KEY}}' exposes: - type: rest namespace: posthog-cdp-rest port: 8080 description: REST adapter for PostHog API — cdp. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/environments/{environment-id}/hog-functions name: api-environments-environment-id-hog-functions description: REST surface for api-environments-environment_id-hog_functions. operations: - method: GET name: environmentshogfunctionslist description: environmentshogfunctionslist call: posthog-cdp.environmentshogfunctionslist with: created_at: rest.created_at created_by: rest.created_by enabled: rest.enabled id: rest.id limit: rest.limit offset: rest.offset search: rest.search type: rest.type updated_at: rest.updated_at outputParameters: - type: object mapping: $. - method: POST name: environmentshogfunctionscreate description: environmentshogfunctionscreate call: posthog-cdp.environmentshogfunctionscreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/icon name: api-environments-environment-id-hog-functions-icon description: REST surface for api-environments-environment_id-hog_functions-icon. operations: - method: GET name: environmentshogfunctionsiconretrieve description: environmentshogfunctionsiconretrieve call: posthog-cdp.environmentshogfunctionsiconretrieve outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/icons name: api-environments-environment-id-hog-functions-icons description: REST surface for api-environments-environment_id-hog_functions-icons. operations: - method: GET name: environmentshogfunctionsiconsretrieve description: environmentshogfunctionsiconsretrieve call: posthog-cdp.environmentshogfunctionsiconsretrieve outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/rearrange name: api-environments-environment-id-hog-functions-rearrange description: REST surface for api-environments-environment_id-hog_functions-rearrange. operations: - method: PATCH name: environmentshogfunctionsrearrangepartialupdate description: Update the execution order of multiple HogFunctions. call: posthog-cdp.environmentshogfunctionsrearrangepartialupdate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/{id} name: api-environments-environment-id-hog-functions-id description: REST surface for api-environments-environment_id-hog_functions-id. operations: - method: GET name: environmentshogfunctionsretrieve description: environmentshogfunctionsretrieve call: posthog-cdp.environmentshogfunctionsretrieve with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: environmentshogfunctionsupdate description: environmentshogfunctionsupdate call: posthog-cdp.environmentshogfunctionsupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: environmentshogfunctionspartialupdate description: environmentshogfunctionspartialupdate call: posthog-cdp.environmentshogfunctionspartialupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: environmentshogfunctionsdestroy description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true call: posthog-cdp.environmentshogfunctionsdestroy with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/{id}/enable-backfills name: api-environments-environment-id-hog-functions-id-enable-backfills description: REST surface for api-environments-environment_id-hog_functions-id-enable_backfills. operations: - method: POST name: environmentshogfunctionsenablebackfillscreate description: environmentshogfunctionsenablebackfillscreate call: posthog-cdp.environmentshogfunctionsenablebackfillscreate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/{id}/invocations name: api-environments-environment-id-hog-functions-id-invocations description: REST surface for api-environments-environment_id-hog_functions-id-invocations. operations: - method: POST name: environmentshogfunctionsinvocationscreate description: environmentshogfunctionsinvocationscreate call: posthog-cdp.environmentshogfunctionsinvocationscreate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/{id}/logs name: api-environments-environment-id-hog-functions-id-logs description: REST surface for api-environments-environment_id-hog_functions-id-logs. operations: - method: GET name: environmentshogfunctionslogsretrieve description: environmentshogfunctionslogsretrieve call: posthog-cdp.environmentshogfunctionslogsretrieve with: after: rest.after before: rest.before id: rest.id instance_id: rest.instance_id level: rest.level limit: rest.limit search: rest.search outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/{id}/metrics name: api-environments-environment-id-hog-functions-id-metrics description: REST surface for api-environments-environment_id-hog_functions-id-metrics. operations: - method: GET name: environmentshogfunctionsmetricsretrieve description: environmentshogfunctionsmetricsretrieve call: posthog-cdp.environmentshogfunctionsmetricsretrieve with: after: rest.after before: rest.before breakdown_by: rest.breakdown_by id: rest.id instance_id: rest.instance_id interval: rest.interval kind: rest.kind name: rest.name outputParameters: - type: object mapping: $. - path: /v1/api/environments/{environment-id}/hog-functions/{id}/metrics/totals name: api-environments-environment-id-hog-functions-id-metrics-totals description: REST surface for api-environments-environment_id-hog_functions-id-metrics-totals. operations: - method: GET name: environmentshogfunctionsmetricstotalsretrieve description: environmentshogfunctionsmetricstotalsretrieve call: posthog-cdp.environmentshogfunctionsmetricstotalsretrieve with: after: rest.after before: rest.before breakdown_by: rest.breakdown_by id: rest.id instance_id: rest.instance_id interval: rest.interval kind: rest.kind name: rest.name outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-function-templates name: api-projects-project-id-hog-function-templates description: REST surface for api-projects-project_id-hog_function_templates. operations: - method: GET name: hogfunctiontemplateslist description: hogfunctiontemplateslist call: posthog-cdp.hogfunctiontemplateslist with: limit: rest.limit offset: rest.offset template_id: rest.template_id type: rest.type types: rest.types outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-function-templates/{template-id} name: api-projects-project-id-hog-function-templates-template-id description: REST surface for api-projects-project_id-hog_function_templates-template_id. operations: - method: GET name: hogfunctiontemplatesretrieve description: hogfunctiontemplatesretrieve call: posthog-cdp.hogfunctiontemplatesretrieve with: template_id: rest.template_id outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions name: api-projects-project-id-hog-functions description: REST surface for api-projects-project_id-hog_functions. operations: - method: GET name: hogfunctionslist description: hogfunctionslist call: posthog-cdp.hogfunctionslist with: created_at: rest.created_at created_by: rest.created_by enabled: rest.enabled id: rest.id limit: rest.limit offset: rest.offset search: rest.search type: rest.type updated_at: rest.updated_at outputParameters: - type: object mapping: $. - method: POST name: hogfunctionscreate description: hogfunctionscreate call: posthog-cdp.hogfunctionscreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/icon name: api-projects-project-id-hog-functions-icon description: REST surface for api-projects-project_id-hog_functions-icon. operations: - method: GET name: hogfunctionsiconretrieve description: hogfunctionsiconretrieve call: posthog-cdp.hogfunctionsiconretrieve outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/icons name: api-projects-project-id-hog-functions-icons description: REST surface for api-projects-project_id-hog_functions-icons. operations: - method: GET name: hogfunctionsiconsretrieve description: hogfunctionsiconsretrieve call: posthog-cdp.hogfunctionsiconsretrieve outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/rearrange name: api-projects-project-id-hog-functions-rearrange description: REST surface for api-projects-project_id-hog_functions-rearrange. operations: - method: PATCH name: hogfunctionsrearrangepartialupdate description: Update the execution order of multiple HogFunctions. call: posthog-cdp.hogfunctionsrearrangepartialupdate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/{id} name: api-projects-project-id-hog-functions-id description: REST surface for api-projects-project_id-hog_functions-id. operations: - method: GET name: hogfunctionsretrieve description: hogfunctionsretrieve call: posthog-cdp.hogfunctionsretrieve with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: hogfunctionsupdate description: hogfunctionsupdate call: posthog-cdp.hogfunctionsupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: hogfunctionspartialupdate description: hogfunctionspartialupdate call: posthog-cdp.hogfunctionspartialupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: hogfunctionsdestroy description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true call: posthog-cdp.hogfunctionsdestroy with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/{id}/enable-backfills name: api-projects-project-id-hog-functions-id-enable-backfills description: REST surface for api-projects-project_id-hog_functions-id-enable_backfills. operations: - method: POST name: hogfunctionsenablebackfillscreate description: hogfunctionsenablebackfillscreate call: posthog-cdp.hogfunctionsenablebackfillscreate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/{id}/invocations name: api-projects-project-id-hog-functions-id-invocations description: REST surface for api-projects-project_id-hog_functions-id-invocations. operations: - method: POST name: hogfunctionsinvocationscreate description: hogfunctionsinvocationscreate call: posthog-cdp.hogfunctionsinvocationscreate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/{id}/logs name: api-projects-project-id-hog-functions-id-logs description: REST surface for api-projects-project_id-hog_functions-id-logs. operations: - method: GET name: hogfunctionslogsretrieve description: hogfunctionslogsretrieve call: posthog-cdp.hogfunctionslogsretrieve with: after: rest.after before: rest.before id: rest.id instance_id: rest.instance_id level: rest.level limit: rest.limit search: rest.search outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/{id}/metrics name: api-projects-project-id-hog-functions-id-metrics description: REST surface for api-projects-project_id-hog_functions-id-metrics. operations: - method: GET name: hogfunctionsmetricsretrieve description: hogfunctionsmetricsretrieve call: posthog-cdp.hogfunctionsmetricsretrieve with: after: rest.after before: rest.before breakdown_by: rest.breakdown_by id: rest.id instance_id: rest.instance_id interval: rest.interval kind: rest.kind name: rest.name outputParameters: - type: object mapping: $. - path: /v1/api/projects/{project-id}/hog-functions/{id}/metrics/totals name: api-projects-project-id-hog-functions-id-metrics-totals description: REST surface for api-projects-project_id-hog_functions-id-metrics-totals. operations: - method: GET name: hogfunctionsmetricstotalsretrieve description: hogfunctionsmetricstotalsretrieve call: posthog-cdp.hogfunctionsmetricstotalsretrieve with: after: rest.after before: rest.before breakdown_by: rest.breakdown_by id: rest.id instance_id: rest.instance_id interval: rest.interval kind: rest.kind name: rest.name outputParameters: - type: object mapping: $. - path: /v1/api/public-hog-function-templates name: api-public-hog-function-templates description: REST surface for api-public_hog_function_templates. operations: - method: GET name: publichogfunctiontemplateslist description: publichogfunctiontemplateslist call: posthog-cdp.publichogfunctiontemplateslist with: limit: rest.limit offset: rest.offset template_id: rest.template_id type: rest.type types: rest.types outputParameters: - type: object mapping: $. - type: mcp namespace: posthog-cdp-mcp port: 9090 transport: http description: MCP adapter for PostHog API — cdp. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: environmentshogfunctionslist description: environmentshogfunctionslist hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionslist with: created_at: tools.created_at created_by: tools.created_by enabled: tools.enabled id: tools.id limit: tools.limit offset: tools.offset search: tools.search type: tools.type updated_at: tools.updated_at outputParameters: - type: object mapping: $. - name: environmentshogfunctionscreate description: environmentshogfunctionscreate hints: readOnly: false destructive: false idempotent: false call: posthog-cdp.environmentshogfunctionscreate with: body: tools.body outputParameters: - type: object mapping: $. - name: environmentshogfunctionsiconretrieve description: environmentshogfunctionsiconretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionsiconretrieve outputParameters: - type: object mapping: $. - name: environmentshogfunctionsiconsretrieve description: environmentshogfunctionsiconsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionsiconsretrieve outputParameters: - type: object mapping: $. - name: update-execution-order-multiple-hogfunctions description: Update the execution order of multiple HogFunctions. hints: readOnly: false destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionsrearrangepartialupdate with: body: tools.body outputParameters: - type: object mapping: $. - name: environmentshogfunctionsretrieve description: environmentshogfunctionsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionsretrieve with: id: tools.id outputParameters: - type: object mapping: $. - name: environmentshogfunctionsupdate description: environmentshogfunctionsupdate hints: readOnly: false destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionsupdate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: environmentshogfunctionspartialupdate description: environmentshogfunctionspartialupdate hints: readOnly: false destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionspartialupdate 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-cdp.environmentshogfunctionsdestroy with: id: tools.id outputParameters: - type: object mapping: $. - name: environmentshogfunctionsenablebackfillscreate description: environmentshogfunctionsenablebackfillscreate hints: readOnly: false destructive: false idempotent: false call: posthog-cdp.environmentshogfunctionsenablebackfillscreate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: environmentshogfunctionsinvocationscreate description: environmentshogfunctionsinvocationscreate hints: readOnly: false destructive: false idempotent: false call: posthog-cdp.environmentshogfunctionsinvocationscreate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: environmentshogfunctionslogsretrieve description: environmentshogfunctionslogsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionslogsretrieve with: after: tools.after before: tools.before id: tools.id instance_id: tools.instance_id level: tools.level limit: tools.limit search: tools.search outputParameters: - type: object mapping: $. - name: environmentshogfunctionsmetricsretrieve description: environmentshogfunctionsmetricsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionsmetricsretrieve with: after: tools.after before: tools.before breakdown_by: tools.breakdown_by id: tools.id instance_id: tools.instance_id interval: tools.interval kind: tools.kind name: tools.name outputParameters: - type: object mapping: $. - name: environmentshogfunctionsmetricstotalsretrieve description: environmentshogfunctionsmetricstotalsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.environmentshogfunctionsmetricstotalsretrieve with: after: tools.after before: tools.before breakdown_by: tools.breakdown_by id: tools.id instance_id: tools.instance_id interval: tools.interval kind: tools.kind name: tools.name outputParameters: - type: object mapping: $. - name: hogfunctiontemplateslist description: hogfunctiontemplateslist hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctiontemplateslist with: limit: tools.limit offset: tools.offset template_id: tools.template_id type: tools.type types: tools.types outputParameters: - type: object mapping: $. - name: hogfunctiontemplatesretrieve description: hogfunctiontemplatesretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctiontemplatesretrieve with: template_id: tools.template_id outputParameters: - type: object mapping: $. - name: hogfunctionslist description: hogfunctionslist hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctionslist with: created_at: tools.created_at created_by: tools.created_by enabled: tools.enabled id: tools.id limit: tools.limit offset: tools.offset search: tools.search type: tools.type updated_at: tools.updated_at outputParameters: - type: object mapping: $. - name: hogfunctionscreate description: hogfunctionscreate hints: readOnly: false destructive: false idempotent: false call: posthog-cdp.hogfunctionscreate with: body: tools.body outputParameters: - type: object mapping: $. - name: hogfunctionsiconretrieve description: hogfunctionsiconretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctionsiconretrieve outputParameters: - type: object mapping: $. - name: hogfunctionsiconsretrieve description: hogfunctionsiconsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctionsiconsretrieve outputParameters: - type: object mapping: $. - name: update-execution-order-multiple-hogfunctions-2 description: Update the execution order of multiple HogFunctions. hints: readOnly: false destructive: false idempotent: true call: posthog-cdp.hogfunctionsrearrangepartialupdate with: body: tools.body outputParameters: - type: object mapping: $. - name: hogfunctionsretrieve description: hogfunctionsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctionsretrieve with: id: tools.id outputParameters: - type: object mapping: $. - name: hogfunctionsupdate description: hogfunctionsupdate hints: readOnly: false destructive: false idempotent: true call: posthog-cdp.hogfunctionsupdate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: hogfunctionspartialupdate description: hogfunctionspartialupdate hints: readOnly: false destructive: false idempotent: true call: posthog-cdp.hogfunctionspartialupdate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: hard-delete-this-model-is-2 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-cdp.hogfunctionsdestroy with: id: tools.id outputParameters: - type: object mapping: $. - name: hogfunctionsenablebackfillscreate description: hogfunctionsenablebackfillscreate hints: readOnly: false destructive: false idempotent: false call: posthog-cdp.hogfunctionsenablebackfillscreate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: hogfunctionsinvocationscreate description: hogfunctionsinvocationscreate hints: readOnly: false destructive: false idempotent: false call: posthog-cdp.hogfunctionsinvocationscreate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: hogfunctionslogsretrieve description: hogfunctionslogsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctionslogsretrieve with: after: tools.after before: tools.before id: tools.id instance_id: tools.instance_id level: tools.level limit: tools.limit search: tools.search outputParameters: - type: object mapping: $. - name: hogfunctionsmetricsretrieve description: hogfunctionsmetricsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctionsmetricsretrieve with: after: tools.after before: tools.before breakdown_by: tools.breakdown_by id: tools.id instance_id: tools.instance_id interval: tools.interval kind: tools.kind name: tools.name outputParameters: - type: object mapping: $. - name: hogfunctionsmetricstotalsretrieve description: hogfunctionsmetricstotalsretrieve hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.hogfunctionsmetricstotalsretrieve with: after: tools.after before: tools.before breakdown_by: tools.breakdown_by id: tools.id instance_id: tools.instance_id interval: tools.interval kind: tools.kind name: tools.name outputParameters: - type: object mapping: $. - name: publichogfunctiontemplateslist description: publichogfunctiontemplateslist hints: readOnly: true destructive: false idempotent: true call: posthog-cdp.publichogfunctiontemplateslist with: limit: tools.limit offset: tools.offset template_id: tools.template_id type: tools.type types: tools.types outputParameters: - type: object mapping: $.