PostHog · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PostHog Logs API

64 actions 64 updates phrasing extends openapi/posthog-logs-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for PostHog's API. It is a proposal applied on top of the contract, not a document PostHog publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 64 · first 16 shown; the file carries all of them

$.info
$.paths['/api/environments/{environment_id}/logs/alerts/'].get
$.paths['/api/environments/{environment_id}/logs/alerts/'].post
$.paths['/api/environments/{environment_id}/logs/alerts/{id}/'].get
$.paths['/api/environments/{environment_id}/logs/alerts/{id}/'].put
$.paths['/api/environments/{environment_id}/logs/alerts/{id}/'].delete
$.paths['/api/environments/{environment_id}/logs/alerts/{id}/'].patch
$.paths['/api/environments/{environment_id}/logs/alerts/{id}/destinations/'].post
$.paths['/api/environments/{environment_id}/logs/alerts/{id}/destinations/delete/'].post
$.paths['/api/environments/{environment_id}/logs/alerts/{id}/events/'].get
$.paths['/api/environments/{environment_id}/logs/alerts/{id}/reset/'].post
$.paths['/api/environments/{environment_id}/logs/alerts/simulate/'].post
$.paths['/api/environments/{environment_id}/logs/attributes/'].get
$.paths['/api/environments/{environment_id}/logs/count/'].post
$.paths['/api/environments/{environment_id}/logs/count-ranges/'].post
$.paths['/api/environments/{environment_id}/logs/export/'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for PostHog Logs API
  version: 1.0.0
extends: openapi/posthog-logs-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-16'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 63
- target: $.paths['/api/environments/{environment_id}/logs/alerts/'].get
  update:
    x-apievangelist-phrasing:
      intent: List log alerts in an environment
      effect: read
      questions:
      - What log alerts are configured in my environment?
      - Can I page through the log alerts for an environment?
      instructions:
      - text: List log alerts in environment {environment_id}.
        slots:
          environment_id: path.environment_id
      - text: Show {limit} log alerts from environment {environment_id}.
        slots:
          limit: query.limit
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a log alert
      effect: write
      questions:
      - How do I get notified when log errors cross a threshold?
      - Can I set a log alert to fire only if the count is below a threshold?
      instructions:
      - text: Create a log alert in environment {environment_id} that fires every {check_interval_minutes} minutes.
        slots:
          environment_id: path.environment_id
          check_interval_minutes: requestBody.check_interval_minutes
      - text: Create a log alert in {environment_id} with filters {filters}, firing when {threshold_count} logs are seen in {window_minutes} minutes.
        slots:
          environment_id: path.environment_id
          filters: requestBody.filters
          threshold_count: requestBody.threshold_count
          window_minutes: requestBody.window_minutes
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a log alert
      effect: read
      questions:
      - What filters and thresholds does a specific log alert use?
      - Can I look up one log alert by its ID?
      instructions:
      - text: Get log alert {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Show the filters and state of log alert {id} in {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a log alert
      effect: write
      questions:
      - How do I change the filters on an existing log alert?
      - Can I replace a log alert's entire configuration at once?
      instructions:
      - text: Replace log alert {id} in environment {environment_id} with filters {filters} and check interval {check_interval_minutes}.
        slots:
          id: path.id
          environment_id: path.environment_id
          filters: requestBody.filters
          check_interval_minutes: requestBody.check_interval_minutes
      - text: Overwrite the whole log alert {id} in {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a log alert
      effect: destructive
      questions:
      - How do I delete a log alert I no longer need?
      - Can I remove a log alert by its ID?
      instructions:
      - text: Delete log alert {id} from environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Remove the log alert {id} in {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update fields of a log alert
      effect: write
      questions:
      - Can I turn off a log alert without deleting it?
      - How do I change only the destination of an existing log alert?
      instructions:
      - text: Disable log alert {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Set the destination of log alert {id} in {environment_id} to {destination_types}.
        slots:
          id: path.id
          environment_id: path.environment_id
          destination_types: requestBody.destination_types
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/{id}/destinations/'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a notification destination to a log alert
      effect: write
      questions:
      - How do I get a log alert's notifications sent to Slack?
      - Can I add a webhook destination to an existing log alert?
      instructions:
      - text: Add a {type} destination to log alert {id} in environment {environment_id}.
        slots:
          type: requestBody.type
          id: path.id
          environment_id: path.environment_id
      - text: Send log alert {id} notifications from {environment_id} to Slack channel {slack_channel_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
          slack_channel_id: requestBody.slack_channel_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/{id}/destinations/delete/'].post
  update:
    x-apievangelist-phrasing:
      intent: Delete a log alert's notification destination
      effect: destructive
      questions:
      - How do I stop a log alert from sending notifications to one destination?
      - Can I delete a HogFunction group for a log alert's destination?
      instructions:
      - text: Delete HogFunction group {hog_function_ids} from log alert {id} in {environment_id}.
        slots:
          hog_function_ids: requestBody.hog_function_ids
          id: path.id
          environment_id: path.environment_id
      - text: Remove the destination group {hog_function_ids} on log alert {id} in {environment_id}.
        slots:
          hog_function_ids: requestBody.hog_function_ids
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/{id}/events/'].get
  update:
    x-apievangelist-phrasing:
      intent: List an alert's event history
      effect: read
      questions:
      - What has happened to a log alert recently, like snoozes or resets?
      - Can I see the event history of a log alert?
      instructions:
      - text: List events for log alert {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Show the last {limit} events of log alert {id} in {environment_id}.
        slots:
          limit: query.limit
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/{id}/reset/'].post
  update:
    x-apievangelist-phrasing:
      intent: Reset a broken log alert
      effect: write
      questions:
      - My log alert has a broken state with consecutive failures, how do I reset it?
      - Can I clear a log alert's failure counter and recheck it immediately?
      instructions:
      - text: Reset log alert {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Clear the consecutive failures on log alert {id} in {environment_id} and recheck now.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/alerts/simulate/'].post
  update:
    x-apievangelist-phrasing:
      intent: Simulate a logs alert on an environment
      effect: read
      questions:
      - Can I test a logs alert against historical data on an environment?
      - How do I see what an environment-level log alert simulation would return?
      instructions:
      - text: Simulate a logs alert on env {env} for {filters} over {date_from} with threshold {threshold_count} {operator} {window}.
        slots:
          env: path.environment_id
          filters: requestBody.filters
          date_from: requestBody.date_from
          threshold_count: requestBody.threshold_count
          operator: requestBody.threshold_operator
          window: requestBody.window_minutes
      - text: Dry-run an environment log alert with {threshold_count} {operator} {window} for filters {filters}, from {date_from}.
        slots:
          threshold_count: requestBody.threshold_count
          operator: requestBody.threshold_operator
          window: requestBody.window_minutes
          filters: requestBody.filters
          date_from: requestBody.date_from
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/attributes/'].get
  update:
    x-apievangelist-phrasing:
      intent: List log attributes
      effect: read
      questions:
      - Which log attributes are available in my environment?
      - Can I search log attributes by name or service?
      instructions:
      - text: List log attributes in environment {environment_id}.
        slots:
          environment_id: path.environment_id
      - text: Find log attributes in {environment_id} matching {search}.
        slots:
          environment_id: path.environment_id
          search: query.search
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/count/'].post
  update:
    x-apievangelist-phrasing:
      intent: Count logs matching a query
      effect: read
      questions:
      - How many logs match a given query in an environment?
      - Can I get a total log count for a time range?
      instructions:
      - text: Count logs in environment {environment_id} matching {query}.
        slots:
          environment_id: path.environment_id
          query: requestBody.query
      - text: Get the total number of logs in {environment_id} that match {query}.
        slots:
          environment_id: path.environment_id
          query: requestBody.query
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/count-ranges/'].post
  update:
    x-apievangelist-phrasing:
      intent: Count logs in time buckets
      effect: read
      questions:
      - Can I see how log volume changed over time in an environment?
      - How do I get a time-series count of logs for a query?
      instructions:
      - text: Count logs in {environment_id} in time buckets for {query}.
        slots:
          environment_id: path.environment_id
          query: requestBody.query
      - text: Bucket the log count for {query} in environment {environment_id}.
        slots:
          query: requestBody.query
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/export/'].post
  update:
    x-apievangelist-phrasing:
      intent: Export logs
      effect: write
      questions:
      - How do I export all logs from an environment?
      - Can I start a log export job for an environment?
      instructions:
      - text: Export all logs from environment {environment_id}.
        slots:
          environment_id: path.environment_id
      - text: Start a log export job for {environment_id}.
        slots:
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/has_logs/'].get
  update:
    x-apievangelist-phrasing:
      intent: Check whether an environment has logs
      effect: read
      questions:
      - Does my environment have any logs ingested?
      - How do I confirm logs are flowing into an environment?
      instructions:
      - text: Check whether environment {environment_id} has logs.
        slots:
          environment_id: path.environment_id
      - text: Tell me if logs exist in {environment_id}.
        slots:
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/query/'].post
  update:
    x-apievangelist-phrasing:
      intent: Query logs
      effect: read
      questions:
      - How do I search logs in an environment?
      - Can I run a raw logs query against an environment?
      instructions:
      - text: Query logs in environment {environment_id} with {query}.
        slots:
          environment_id: path.environment_id
          query: requestBody.query
      - text: Run the raw logs query {query} in {environment_id}.
        slots:
          query: requestBody.query
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sampling_rules/'].get
  update:
    x-apievangelist-phrasing:
      intent: List log sampling rules
      effect: read
      questions:
      - Which log sampling rules are configured in an environment?
      - Can I page through log sampling rules?
      instructions:
      - text: List log sampling rules in environment {environment_id}.
        slots:
          environment_id: path.environment_id
      - text: Show {limit} log sampling rules from {environment_id}.
        slots:
          limit: query.limit
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sampling_rules/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a log sampling rule
      effect: write
      questions:
      - How do I drop logs from a specific path to save storage?
      - Can I sample logs by severity in an environment?
      instructions:
      - text: Create a log sampling rule {id} in environment {environment_id} with config {config}.
        slots:
          id: requestBody.id
          environment_id: path.environment_id
          config: requestBody.config
      - text: Add a log sampling rule {id} in {environment_id} that drops logs matching {scope_path_pattern}.
        slots:
          id: requestBody.id
          environment_id: path.environment_id
          scope_path_pattern: requestBody.scope_path_pattern
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sampling_rules/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a log sampling rule
      effect: read
      questions:
      - What does a specific log sampling rule do?
      - Can I look up one log sampling rule by its ID?
      instructions:
      - text: Get log sampling rule {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Show the filters of log sampling rule {id} in {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sampling_rules/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a log sampling rule
      effect: write
      questions:
      - How do I replace a log sampling rule's config and version?
      - Can I change a sampling rule's priority and scope?
      instructions:
      - text: Replace log sampling rule {id} in environment {environment_id} with name {name}, type {rule_type}, config {config} and version {version}.
        slots:
          id: path.id
          environment_id: path.environment_id
          name: requestBody.name
          rule_type: requestBody.rule_type
          config: requestBody.config
          version: requestBody.version
      - text: Update sampling rule {id} in {environment_id} to priority {priority}.
        slots:
          id: path.id
          environment_id: path.environment_id
          priority: requestBody.priority
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sampling_rules/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a log sampling rule
      effect: destructive
      questions:
      - How do I delete a log sampling rule?
      - Can I remove a log exclusion rule by its ID?
      instructions:
      - text: Delete log sampling rule {id} from environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Remove log exclusion rule {id} in {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sampling_rules/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Change a log sampling rule
      effect: write
      questions:
      - How do I disable a log sampling rule without deleting it?
      - Can I change only the config of an existing log sampling rule?
      instructions:
      - text: Disable log sampling rule {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Change the config of log sampling rule {id} in {environment_id} to {config}.
        slots:
          id: path.id
          environment_id: path.environment_id
          config: requestBody.config
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sampling_rules/{id}/simulate/'].post
  update:
    x-apievangelist-phrasing:
      intent: Estimate how much a log sampling rule would remove
      effect: read
      questions:
      - How much log volume would a sampling rule remove?
      - Can I dry-run a log sampling rule before saving it?
      instructions:
      - text: Simulate log sampling rule {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Dry-run estimate for how much volume rule {id} would remove in {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sampling_rules/reorder/'].post
  update:
    x-apievangelist-phrasing:
      intent: Reorder log sampling rules on an environment
      effect: write
      questions:
      - Can I change the priority order of sampling rules on an environment?
      - What happens to sampling rule priorities when I reorder them on an environment?
      instructions:
      - text: Reorder env {env}'s log sampling rules to priorities {ids}.
        slots:
          env: path.environment_id
          ids: requestBody.ordered_ids
      - text: Set the environment sampling rule priority order to {ids} on env {env}.
        slots:
          env: path.environment_id
          ids: requestBody.ordered_ids
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/services/'].post
  update:
    x-apievangelist-phrasing:
      intent: Find log services in an environment
      effect: read
      questions:
      - Which services are sending logs in an environment?
      - Can I list log services for a project environment?
      instructions:
      - text: Find log services in environment {environment_id} matching {query}.
        slots:
          environment_id: path.environment_id
          query: requestBody.query
      - text: List services sending logs in {environment_id}.
        slots:
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/sparkline/'].post
  update:
    x-apievangelist-phrasing:
      intent: Get a log sparkline for an environment
      effect: read
      questions:
      - Can I get a log volume sparkline for a project environment?
      - What does the log volume trend look like in an environment?
      instructions:
      - text: Get a log sparkline for environment {environment_id} with query {query}.
        slots:
          environment_id: path.environment_id
          query: requestBody.query
      - text: Show the log volume trend for {environment_id}.
        slots:
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/logs/values/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get log values for an attribute
      effect: read
      questions:
      - What values appear for a log attribute in an environment?
      - Can I filter log values by service name?
      instructions:
      - text: Get values for log attribute {key} in environment {environment_id}.
        slots:
          key: query.key
          environment_id: path.environment_id
      - text: Show values of {key} in {environment_id} for services {serviceNames}.
        slots:
          key: query.key
          environment_id: path.environment_id
          serviceNames: query.serviceNames
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/logs/explainLogWithAI/'].post
  update:
    x-apievangelist-phrasing:
      intent: Explain a log entry with AI
      effect: read
      questions:
      - Can AI explain a specific log entry?
      - How do I get an AI explanation of a log by its UUID?
      instructions:
      - text: Explain log {uuid} at {timestamp} in project {project_id} with AI.
        slots:
          uuid: requestBody.uuid
          timestamp: requestBody.timestamp
          project_id: path.project_id
      - text: Get an AI explanation of log {uuid} in {project_id}.
        slots:
          uuid: requestBody.uuid
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/logs/views/'].get
  update:
    x-apievangelist-phrasing:
      intent: List log views in a project
      effect: read
      questions:
      - What log views exist in my project?
      - Can I list pinned log views?
      instructions:
      - text: List log views in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show the log views in {project_id} pinned to the sidebar.
        slots:
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/logs/views/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a log view
      effect: write
      questions:
      - How do I save a log search as a view?
      - Can I create a log view with filters and a name?
      instructions:
      - text: Create log view {name} in project {project_id} with filters {filters}.
        slots:
          name: requestBody.name
          project_id: path.project_id
          filters: requestBody.filters
      - text: Save a log search as view {name} in {project_id}.
        slots:
          name: requestBody.name
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/logs/views/{short_id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a log view
      effect: read
      questions:
      - How do I open a saved log view?
      - Can I fetch one log view by its short ID?
      instructions:
      - text: Get log view {short_id} in project {project_id}.
        slots:
          short_id: path.short_id
          project_id: path.project_id
      - text: Open saved log view {short_id} in {project_id}.
        slots:
          short_id: path.short_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/logs/views/{short_id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a log view
      effect: write
      questions:
      - How do I replace a log view's filters and name?
      - Can I overwrite a log view with new filters?
      instructions:
      - text: Replace log view {short_id} in {project_id} with name {name} and filters {filters}.
        slots:
          short_id: path.short_id
          project_id: path.project_id
          name: requestBody.name
          filters: requestBody.filters
      - text: Overwrite log view {short_id} in {project_id} with filters {filters}.
        slots:
          short_id: path.short_id
          project_id: path.project_id
          filters: requestBody.filters
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/logs/views/{short_id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a log view
      effect: destructive
      questions:
      - How do I delete a log view?
      - Can I remove a saved log view by its short ID?
      instructions:
      - text: Delete log view {short_id} from project {project_id}.
        slots:
          short_id: path.short_id
          project_id: path.project_id
      - text: Remove saved log view {short_id} in {project_id}.
        slots:
          short_id: path.short_id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/logs/views/{short_id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Change a log view
      effect: write
      questions:
      - How do I pin or unpin a log view?
      - Can I change only the name of a log view?
      instructions:
      - text: Pin log view {short_id} in {project_id}.
        slots:
          short_id: path.short_id
          project_id: path.project_id
      - text: Rename log view {short_id} in {project_id} to {name}.
        slots:
          short_id: path.short_id
          project_id: path.project_id
          name: requestBody.name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/logs/alerts/'].get
  update:
    x-apievangelist-phrasing:
      intent: List log alerts in a project
      effect: read
      questions:
      - Which log alerts are set up in my project?
      - Can I list log alerts with their thresholds?
      instructions:
      - text: List log alerts in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show log alerts in {project_id} with their thresholds.
        slots:
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/logs/alerts/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a log alert
      effect: write
      questions:
      - How do I create a log alert that fires when error logs exceed a count?
      - Can I set a log alert's evaluation window and check interval?
      instructions:
      - text: Create log alert {name} in {project_id} that fires when {threshold_count} logs match {filters} in {window_minutes} minutes.
        slots:
          name: requestBody.name
          project_id: path.project_id
          threshold_count: requestBody.threshold_count
          filters: requestBody.filters
          window_minutes: requestBody.window_minutes
      - text: Create a log alert in {project_id} checked every {check_interval_minutes} minutes.
        slots:
          project_id: path.project_id
          check_interval_minutes: requestBody.check_interval_minutes
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/logs/alerts/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a logs alert configuration
      effect: read
      questions:
      - How do I view one logs alert's filter and threshold?
      - Can I check whether a logs alert is firing?
      instructions:
      - text: Show logs alert {id} in project {project}.
        slots:
          id: path.id
          project: path.project_id
      - text: Get the filter and threshold of logs alert {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/logs/alerts/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a log alert
      effect: write
      questions:
      - How do I change a log alert's filters and threshold?
      - Can I replace a log alert with new filters and a name?
      instructions:
      - text: Replace log alert {id} in {project_id} with filters {filters} and threshold {threshold_count}.
        slots:
          id: path.id
          project_id: path.project_id
          filters: requestBody.filters
          threshold_count: requestBody.threshold_count
      - text: Update log alert {id} in {project_id} with name {name}.
        slots:
          id: path.id
          project_id: path.project_id
          name: requestBody.name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/logs/alerts/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a logs alert configuration
      effect: destructive
      questions:
      - How do I permanently remove a logs alert?
      - Can I delete a logs alert configuration?
      instructions:
      - text: Delete logs alert {id} from project {project}.
        slots:
          id: path.id
          project: path.project_id
      - text: Remove logs alert configuration {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/logs/alerts/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a logs alert
      effect: write
      questions:
      - Can I change the severity filters on a logs alert?
      - How do I snooze a logs alert for a set time?
      instructions:
      - text: Update logs alert {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Change the severity filters on logs alert {id} to {filters}.
        slots:
          id: path.id
          filters: requestBody.filters
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/logs/alerts/{id}/destinations/'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a notification destination to a logs alert
      effect: write
      questions:
      - How do I get a logs alert to post to a Slack channel?
      - Can I send logs alert notifications to a webhook URL?
      instructions:
      - text: Add a {type} destination to logs alert {id} in project {project_id}.
        slots:
          type: requestBody.type
          id: path.id
          project_id: path.project_id
      - text: Send logs alert {id} notifications to Slack channel {channel} in workspace {workspace}.
        slots:
          id: path.id
          channel: requestBody.slack_channel_name
          workspace: requestBody.slack_workspace_id
      method: generated
      generated: '2026-11-16'


# --- truncated at 32 KB (46 KB total) ---
# Full source: https://artifacts.apis.io/posthog/overlays/posthog-logs-api-phrasing-overlay.yaml

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/posthog-logs-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.