PostHog · Capability

PostHog API — hog_functions

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

Run with Naftiko Posthoghog_functions

What You Can Do

GET
Environmentshogfunctionslist — environmentshogfunctionslist
/v1/api/environments/{environment-id}/hog-functions
GET
Environmentshogfunctionslist — environmentshogfunctionslist
/v1/api/environments/{environment-id}/hog-functions
POST
Environmentshogfunctionscreate — environmentshogfunctionscreate
/v1/api/environments/{environment-id}/hog-functions
POST
Environmentshogfunctionscreate — environmentshogfunctionscreate
/v1/api/environments/{environment-id}/hog-functions
GET
Environmentshogfunctionsiconretrieve — environmentshogfunctionsiconretrieve
/v1/api/environments/{environment-id}/hog-functions/icon
GET
Environmentshogfunctionsiconretrieve — environmentshogfunctionsiconretrieve
/v1/api/environments/{environment-id}/hog-functions/icon
GET
Environmentshogfunctionsiconsretrieve — environmentshogfunctionsiconsretrieve
/v1/api/environments/{environment-id}/hog-functions/icons
GET
Environmentshogfunctionsiconsretrieve — environmentshogfunctionsiconsretrieve
/v1/api/environments/{environment-id}/hog-functions/icons
PATCH
Environmentshogfunctionsrearrangepartialupdate — Update the execution order of multiple HogFunctions.
/v1/api/environments/{environment-id}/hog-functions/rearrange
PATCH
Environmentshogfunctionsrearrangepartialupdate — Update the execution order of multiple HogFunctions.
/v1/api/environments/{environment-id}/hog-functions/rearrange
GET
Environmentshogfunctionsretrieve — environmentshogfunctionsretrieve
/v1/api/environments/{environment-id}/hog-functions/{id}
GET
Environmentshogfunctionsretrieve — environmentshogfunctionsretrieve
/v1/api/environments/{environment-id}/hog-functions/{id}
PUT
Environmentshogfunctionsupdate — environmentshogfunctionsupdate
/v1/api/environments/{environment-id}/hog-functions/{id}
PUT
Environmentshogfunctionsupdate — environmentshogfunctionsupdate
/v1/api/environments/{environment-id}/hog-functions/{id}
PATCH
Environmentshogfunctionspartialupdate — environmentshogfunctionspartialupdate
/v1/api/environments/{environment-id}/hog-functions/{id}
PATCH
Environmentshogfunctionspartialupdate — environmentshogfunctionspartialupdate
/v1/api/environments/{environment-id}/hog-functions/{id}
DELETE
Environmentshogfunctionsdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/environments/{environment-id}/hog-functions/{id}
DELETE
Environmentshogfunctionsdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/environments/{environment-id}/hog-functions/{id}
POST
Environmentshogfunctionsenablebackfillscreate — environmentshogfunctionsenablebackfillscreate
/v1/api/environments/{environment-id}/hog-functions/{id}/enable-backfills
POST
Environmentshogfunctionsenablebackfillscreate — environmentshogfunctionsenablebackfillscreate
/v1/api/environments/{environment-id}/hog-functions/{id}/enable-backfills
POST
Environmentshogfunctionsinvocationscreate — environmentshogfunctionsinvocationscreate
/v1/api/environments/{environment-id}/hog-functions/{id}/invocations
POST
Environmentshogfunctionsinvocationscreate — environmentshogfunctionsinvocationscreate
/v1/api/environments/{environment-id}/hog-functions/{id}/invocations
GET
Environmentshogfunctionslogsretrieve — environmentshogfunctionslogsretrieve
/v1/api/environments/{environment-id}/hog-functions/{id}/logs
GET
Environmentshogfunctionslogsretrieve — environmentshogfunctionslogsretrieve
/v1/api/environments/{environment-id}/hog-functions/{id}/logs
GET
Environmentshogfunctionsmetricsretrieve — environmentshogfunctionsmetricsretrieve
/v1/api/environments/{environment-id}/hog-functions/{id}/metrics
GET
Environmentshogfunctionsmetricsretrieve — environmentshogfunctionsmetricsretrieve
/v1/api/environments/{environment-id}/hog-functions/{id}/metrics
GET
Environmentshogfunctionsmetricstotalsretrieve — environmentshogfunctionsmetricstotalsretrieve
/v1/api/environments/{environment-id}/hog-functions/{id}/metrics/totals
GET
Environmentshogfunctionsmetricstotalsretrieve — environmentshogfunctionsmetricstotalsretrieve
/v1/api/environments/{environment-id}/hog-functions/{id}/metrics/totals
GET
Hogfunctionslist — hogfunctionslist
/v1/api/projects/{project-id}/hog-functions
GET
Hogfunctionslist — hogfunctionslist
/v1/api/projects/{project-id}/hog-functions
POST
Hogfunctionscreate — hogfunctionscreate
/v1/api/projects/{project-id}/hog-functions
POST
Hogfunctionscreate — hogfunctionscreate
/v1/api/projects/{project-id}/hog-functions
GET
Hogfunctionsiconretrieve — hogfunctionsiconretrieve
/v1/api/projects/{project-id}/hog-functions/icon
GET
Hogfunctionsiconretrieve — hogfunctionsiconretrieve
/v1/api/projects/{project-id}/hog-functions/icon
GET
Hogfunctionsiconsretrieve — hogfunctionsiconsretrieve
/v1/api/projects/{project-id}/hog-functions/icons
GET
Hogfunctionsiconsretrieve — hogfunctionsiconsretrieve
/v1/api/projects/{project-id}/hog-functions/icons
PATCH
Hogfunctionsrearrangepartialupdate — Update the execution order of multiple HogFunctions.
/v1/api/projects/{project-id}/hog-functions/rearrange
PATCH
Hogfunctionsrearrangepartialupdate — Update the execution order of multiple HogFunctions.
/v1/api/projects/{project-id}/hog-functions/rearrange
GET
Hogfunctionsretrieve — hogfunctionsretrieve
/v1/api/projects/{project-id}/hog-functions/{id}
GET
Hogfunctionsretrieve — hogfunctionsretrieve
/v1/api/projects/{project-id}/hog-functions/{id}
PUT
Hogfunctionsupdate — hogfunctionsupdate
/v1/api/projects/{project-id}/hog-functions/{id}
PUT
Hogfunctionsupdate — hogfunctionsupdate
/v1/api/projects/{project-id}/hog-functions/{id}
PATCH
Hogfunctionspartialupdate — hogfunctionspartialupdate
/v1/api/projects/{project-id}/hog-functions/{id}
PATCH
Hogfunctionspartialupdate — hogfunctionspartialupdate
/v1/api/projects/{project-id}/hog-functions/{id}
DELETE
Hogfunctionsdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/projects/{project-id}/hog-functions/{id}
DELETE
Hogfunctionsdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/projects/{project-id}/hog-functions/{id}
POST
Hogfunctionsenablebackfillscreate — hogfunctionsenablebackfillscreate
/v1/api/projects/{project-id}/hog-functions/{id}/enable-backfills
POST
Hogfunctionsenablebackfillscreate — hogfunctionsenablebackfillscreate
/v1/api/projects/{project-id}/hog-functions/{id}/enable-backfills
POST
Hogfunctionsinvocationscreate — hogfunctionsinvocationscreate
/v1/api/projects/{project-id}/hog-functions/{id}/invocations
POST
Hogfunctionsinvocationscreate — hogfunctionsinvocationscreate
/v1/api/projects/{project-id}/hog-functions/{id}/invocations
GET
Hogfunctionslogsretrieve — hogfunctionslogsretrieve
/v1/api/projects/{project-id}/hog-functions/{id}/logs
GET
Hogfunctionslogsretrieve — hogfunctionslogsretrieve
/v1/api/projects/{project-id}/hog-functions/{id}/logs
GET
Hogfunctionsmetricsretrieve — hogfunctionsmetricsretrieve
/v1/api/projects/{project-id}/hog-functions/{id}/metrics
GET
Hogfunctionsmetricsretrieve — hogfunctionsmetricsretrieve
/v1/api/projects/{project-id}/hog-functions/{id}/metrics
GET
Hogfunctionsmetricstotalsretrieve — hogfunctionsmetricstotalsretrieve
/v1/api/projects/{project-id}/hog-functions/{id}/metrics/totals
GET
Hogfunctionsmetricstotalsretrieve — hogfunctionsmetricstotalsretrieve
/v1/api/projects/{project-id}/hog-functions/{id}/metrics/totals

MCP Tools

environmentshogfunctionslist

environmentshogfunctionslist

read-only idempotent
environmentshogfunctionslist-2

environmentshogfunctionslist

read-only idempotent
environmentshogfunctionscreate

environmentshogfunctionscreate

environmentshogfunctionscreate-2

environmentshogfunctionscreate

environmentshogfunctionsiconretrieve

environmentshogfunctionsiconretrieve

read-only idempotent
environmentshogfunctionsiconretrieve-2

environmentshogfunctionsiconretrieve

read-only idempotent
environmentshogfunctionsiconsretrieve

environmentshogfunctionsiconsretrieve

read-only idempotent
environmentshogfunctionsiconsretrieve-2

environmentshogfunctionsiconsretrieve

read-only idempotent
update-execution-order-multiple-hogfunctions

Update the execution order of multiple HogFunctions.

idempotent
update-execution-order-multiple-hogfunctions-2

Update the execution order of multiple HogFunctions.

idempotent
environmentshogfunctionsretrieve

environmentshogfunctionsretrieve

read-only idempotent
environmentshogfunctionsretrieve-2

environmentshogfunctionsretrieve

read-only idempotent
environmentshogfunctionsupdate

environmentshogfunctionsupdate

idempotent
environmentshogfunctionsupdate-2

environmentshogfunctionsupdate

idempotent
environmentshogfunctionspartialupdate

environmentshogfunctionspartialupdate

idempotent
environmentshogfunctionspartialupdate-2

environmentshogfunctionspartialupdate

idempotent
hard-delete-this-model-is

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
hard-delete-this-model-is-2

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
environmentshogfunctionsenablebackfillscreate

environmentshogfunctionsenablebackfillscreate

environmentshogfunctionsenablebackfillscreate-2

environmentshogfunctionsenablebackfillscreate

environmentshogfunctionsinvocationscreate

environmentshogfunctionsinvocationscreate

environmentshogfunctionsinvocationscreate-2

environmentshogfunctionsinvocationscreate

environmentshogfunctionslogsretrieve

environmentshogfunctionslogsretrieve

read-only idempotent
environmentshogfunctionslogsretrieve-2

environmentshogfunctionslogsretrieve

read-only idempotent
environmentshogfunctionsmetricsretrieve

environmentshogfunctionsmetricsretrieve

read-only idempotent
environmentshogfunctionsmetricsretrieve-2

environmentshogfunctionsmetricsretrieve

read-only idempotent
environmentshogfunctionsmetricstotalsretrieve

environmentshogfunctionsmetricstotalsretrieve

read-only idempotent
environmentshogfunctionsmetricstotalsretrieve-2

environmentshogfunctionsmetricstotalsretrieve

read-only idempotent
hogfunctionslist

hogfunctionslist

read-only idempotent
hogfunctionslist-2

hogfunctionslist

read-only idempotent
hogfunctionscreate

hogfunctionscreate

hogfunctionscreate-2

hogfunctionscreate

hogfunctionsiconretrieve

hogfunctionsiconretrieve

read-only idempotent
hogfunctionsiconretrieve-2

hogfunctionsiconretrieve

read-only idempotent
hogfunctionsiconsretrieve

hogfunctionsiconsretrieve

read-only idempotent
hogfunctionsiconsretrieve-2

hogfunctionsiconsretrieve

read-only idempotent
update-execution-order-multiple-hogfunctions-3

Update the execution order of multiple HogFunctions.

idempotent
update-execution-order-multiple-hogfunctions-4

Update the execution order of multiple HogFunctions.

idempotent
hogfunctionsretrieve

hogfunctionsretrieve

read-only idempotent
hogfunctionsretrieve-2

hogfunctionsretrieve

read-only idempotent
hogfunctionsupdate

hogfunctionsupdate

idempotent
hogfunctionsupdate-2

hogfunctionsupdate

idempotent
hogfunctionspartialupdate

hogfunctionspartialupdate

idempotent
hogfunctionspartialupdate-2

hogfunctionspartialupdate

idempotent
hard-delete-this-model-is-3

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
hard-delete-this-model-is-4

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
hogfunctionsenablebackfillscreate

hogfunctionsenablebackfillscreate

hogfunctionsenablebackfillscreate-2

hogfunctionsenablebackfillscreate

hogfunctionsinvocationscreate

hogfunctionsinvocationscreate

hogfunctionsinvocationscreate-2

hogfunctionsinvocationscreate

hogfunctionslogsretrieve

hogfunctionslogsretrieve

read-only idempotent
hogfunctionslogsretrieve-2

hogfunctionslogsretrieve

read-only idempotent
hogfunctionsmetricsretrieve

hogfunctionsmetricsretrieve

read-only idempotent
hogfunctionsmetricsretrieve-2

hogfunctionsmetricsretrieve

read-only idempotent
hogfunctionsmetricstotalsretrieve

hogfunctionsmetricstotalsretrieve

read-only idempotent
hogfunctionsmetricstotalsretrieve-2

hogfunctionsmetricstotalsretrieve

read-only idempotent

Capability Spec

posthog-hog-functions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — hog_functions
  description: 'PostHog API — hog_functions. 56 operations. Lead operation: hog_functions. Self-contained Naftiko capability
    covering one Posthog business surface.'
  tags:
  - Posthog
  - hog_functions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-hog-functions
    baseUri: ''
    description: PostHog API — hog_functions 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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_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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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.
      

# --- truncated at 32 KB (89 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/capabilities/posthog-hog-functions.yaml