provider logs POST /api/environments/{environment_id}/logs/explainLogWithAI/
@utdk/posthog /api/environments/{environment_id}/logs/explainLogWithAI/
environments_logs_explainLogWithAI_create
Explain a log entry using AI. POST /api/environments/:id/logs/explainLogWithAI/
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsLogsExplainlogwithaiCreate
POST/api/environments/{environment_id}/logs/explainLogWithAI/
Explain a log entry using AI. POST /api/environments/:id/logs/explainLogWithAI/

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Input

required

UUID of the log entry to explain

required

Timestamp of the log entry (used for efficient lookup)

Force regenerate explanation, bypassing cache

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsLogsExplainlogwithaiCreate({
  "force_refresh": false
})