provider conversations POST /api/projects/{project_id}/conversations/tickets/compose/
@utdk/posthog /api/projects/{project_id}/conversations/tickets/compose/
conversations_tickets_compose_create
Create a new outbound ticket and send the first message to the customer.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
conversationsTicketsComposeCreate
POST/api/projects/{project_id}/conversations/tickets/compose/
Create a new outbound ticket and send the first message to the customer.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

Recipient email address.

PostHog distinct_id to link the ticket to a person. Falls back to recipient_email.

Email subject line.

required

ID of the EmailChannel to send from.

required

Message content in markdown.

TipTap rich content JSON for formatted messages.

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