Conversations
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
POST | |
PATCH | |
GET | |
POST | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
GET | |
DELETE | |
GET | |
POST |
List all conversations
Required API key scopes
conversation:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /conversationsExample response
Status 200
RESPONSE
Create 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
Required API key scopes
conversation:writeRequest parameters
- contentstringnull
- conversationstring
- contextual_toolsobject
- ui_context
- billing_context
- trace_idstring
- session_idstring
- agent_mode
- is_sandboxbooleanDefault:
false - resume_payload
Response
Example request
POST /api /environments /:project_id /conversationsExample response
Status 201
RESPONSE
Retrieve conversations
Required API key scopes
conversation:readPath parameters
- conversationstring
Response
Example request
GET /api /environments /:project_id /conversations /:conversationExample response
Status 200
RESPONSE
Create conversations append message
Appends a message to an existing conversation without triggering AI processing. This is used for client-side generated messages that need to be persisted (e.g., support ticket confirmation messages).
Path parameters
- conversationstring
Request parameters
- contentstring
Response
Example request
POST /api /environments /:project_id /conversations /:conversation /append_messageExample response
Status 200
RESPONSE
Update conversations cancel
Path parameters
- conversationstring
Request parameters
Response
Example request
PATCH /api /environments /:project_id /conversations /:conversation /cancelExample response
Status 200
RESPONSE
Retrieve conversations queue
Path parameters
- conversationstring
Response
Example request
GET /api /environments /:project_id /conversations /:conversation /queueExample response
Status 200
RESPONSE
Create conversations queue
Path parameters
- conversationstring
Request parameters
Response
Example request
POST /api /environments /:project_id /conversations /:conversation /queueExample response
Status 200
RESPONSE
Update conversations queue
Path parameters
- conversationstring
- queue_idstring
Request parameters
Response
Example request
PATCH /api /environments /:project_id /conversations /:conversation /queue /:queue_idExample response
Status 200
RESPONSE
Delete conversations queue
Path parameters
- conversationstring
- queue_idstring
Example request
DELETE /api /environments /:project_id /conversations /:conversation /queue /:queue_idExample response
Status 204 No response body
Create conversations queue clear
Path parameters
- conversationstring
Request parameters
Response
Example request
POST /api /environments /:project_id /conversations /:conversation /queue /clearExample response
Status 200
RESPONSE
List all conversations views
Required API key scopes
conversation:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /conversations /viewsExample response
Status 200
RESPONSE
List all conversations views
Required API key scopes
conversation:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /conversations /viewsExample response
Status 200
RESPONSE
Create conversations views
Required API key scopes
conversation:writeRequest parameters
- namestring
- filtersobject
Response
Example request
POST /api /environments /:project_id /conversations /viewsExample response
Status 201
RESPONSE
Create conversations views
Required API key scopes
conversation:writeRequest parameters
- namestring
- filtersobject
Response
Example request
POST /api /environments /:project_id /conversations /viewsExample response
Status 201
RESPONSE
Retrieve conversations views
Required API key scopes
conversation:readPath parameters
- short_idstring
Response
Example request
GET /api /environments /:project_id /conversations /views /:short_idExample response
Status 200
RESPONSE
Retrieve conversations views
Required API key scopes
conversation:readPath parameters
- short_idstring
Response
Example request
GET /api /environments /:project_id /conversations /views /:short_idExample response
Status 200
RESPONSE
Delete conversations views
Required API key scopes
conversation:writePath parameters
- short_idstring
Example request
DELETE /api /environments /:project_id /conversations /views /:short_idExample response
Status 204 No response body
Delete conversations views
Required API key scopes
conversation:writePath parameters
- short_idstring
Example request
DELETE /api /environments /:project_id /conversations /views /:short_idExample response
Status 204 No response body
List all conversations tickets
Also available via the PostHog MCP server:
conversations-tickets-list— List support tickets
List tickets with person data attached.
Required API key scopes
ticket:readQuery parameters
- assigneestring
- channel_detailstringOne of:
"github_issue""slack_bot_mention""slack_channel_message""slack_emoji_reaction""teams_bot_mention""teams_channel_message""widget_api""widget_embedded" - channel_sourcestringOne of:
"email""github""slack""teams""widget" - date_fromstring
- date_tostring
- distinct_idsstring
- limitinteger
- offsetinteger
- order_bystringOne of:
"-created_at""-sla_due_at""-ticket_number""-updated_at""created_at""sla_due_at""ticket_number""updated_at" - prioritystring
- searchstring
- slastringOne of:
"at-risk""breached""on-track" - statusstring
- tagsstring
Response
Example request
GET /api /projects /:project_id /conversations /ticketsExample response
Status 200
RESPONSE
Create conversations tickets
Required API key scopes
ticket:writeRequest parameters
- status
- priority
- anonymous_traits
- ai_resolvedboolean
- escalation_reasonstringnull
- sla_due_atstringnull
- snoozed_untilstringnull
- tagsarray
Response
Example request
POST /api /projects /:project_id /conversations /ticketsExample response
Status 201
RESPONSE