provider maxconversations POST /api/environments/{environment_id}/conversations/
@utdk/posthog /api/environments/{environment_id}/conversations/
environments_conversations_create
Unified endpoint that handles both conversation creation and streaming. - If message is provided: Start new conversation processing - If no message: Stream from existing conversation
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsConversationsCreate
POST/api/environments/{environment_id}/conversations/
Unified endpoint that handles both conversation creation and streaming. - If message is provided: Start new conversation processing - If no message: Stream from existing conversation

Parameters

required

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

Input

required
required
required

* `product_analytics` - product_analytics * `sql` - sql * `session_replay` - session_replay * `error_tracking` - error_tracking * `plan` - plan * `execution` - execution * `survey` - survey * `research` - research * `flags` - flags * `llm_analytics` - llm_analytics * `sandbox` - sandbox * `user_interview` - user_interview * `customer_analytics` - customer_analytics

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.environmentsConversationsCreate({
  "is_sandbox": false
})