provider maxconversations POST /api/environments/{environment_id}/conversations/{conversation}/queue/clear/
@utdk/posthog /api/environments/{environment_id}/conversations/{conversation}/queue/clear/
environments_conversations_queue_clear_create
conversation path required
A UUID string identifying this conversation.
string
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsConversationsQueueClearCreate
POST/api/environments/{environment_id}/conversations/{conversation}/queue/clear/

Parameters

required

A UUID string identifying this conversation.

required

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

Input

required
required
required

Title of the conversation.

required

Product domain the conversation is about, classified from the first question. * `web_analytics` - Web analytics * `product_analytics` - Product analytics * `session_replay` - Session replay * `surveys` - Surveys * `feature_flags` - Feature flags * `experiments` - Experiments * `error_tracking` - Error tracking * `data_warehouse` - Data warehouse * `other` - Other

required
required
required
required
required

Whether this conversation was created during an impersonated session (e.g., by support agents). Internal conversations are hidden from customers.

required

Unique key for Slack thread: '{workspace_id}:{channel}:{thread_ts}'

required

Slack workspace subdomain (e.g. 'posthog' for posthog.slack.com)

required
required
required
required

Runtime that owns this conversation. 'langgraph' conversations return their messages in the `messages` field; born-'sandbox' conversations return an empty `messages` array and load history from the products/tasks logs endpoint. A converted conversation is 'sandbox' but still returns its legacy thread in `messages`. * `langgraph` - LangGraph * `sandbox` - Sandbox

required
required

Return pending approval cards as structured data. Combines metadata from conversation.approval_decisions with payload from checkpoint interrupts (single source of truth for payload data).

required

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.environmentsConversationsQueueClearCreate()