provider messaging_templates POST /api/projects/{project_id}/messaging_templates/
@utdk/posthog /api/projects/{project_id}/messaging_templates/
messaging_templates_create
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
messagingTemplatesCreate
POST/api/projects/{project_id}/messaging_templates/

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
required

Human-readable template name shown in the library.

What the template is for and when to use it.

required
required

Template content keyed by channel. Replaced as a whole on update, not merged.

required

Message channel of the template. Currently 'email'.

Message category ID to file the template under. Must belong to the same project.

Soft-delete flag. Set true to remove the template from the library.

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