provider messaging_templates POST /api/environments/{environment_id}/messaging_templates/
@utdk/posthog /api/environments/{environment_id}/messaging_templates/
environments_messaging_templates_create
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsMessagingTemplatesCreate
POST/api/environments/{environment_id}/messaging_templates/

Parameters

required

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

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