latestOpenAPI 3.1.02026-08-08243131.9 MB

c5ddcd5c7e72

Create a template message

Creates a template message in one of the creator's folders. Provide a folderUuid from GET /chats/templates/folders. A template must have text or at least one media attachment.

post/chats/templates

Headers

X-Fanvue-API-Versionstring required
Example:2025-06-26

API version to use for the request

Request body

folderUuidstring uuid required

UUID of the folder to create the template in (see GET /chats/templates/folders)

textstring

Message text content

mediaUuidsstring[]

Media UUIDs to attach to the template, in display order

mediaPreviewUuidstring uuid

Media UUID to use as the paywall preview

namestring

Optional template name

Response

Template message created

uuidstring uuid required

Template message UUID

namestring nullable required

Template name as given on create, or null when the template is unnamed

textstring nullable required

Message text content

pricenumber nullable required

Message price in cents (null for free messages)

mediaUuidsstring[] required

Array of media UUIDs attached to the message

mediaPreviewUuidstring uuid nullable required

Media UUID used as the paywall preview (null when the template has none)

folderUuidstring uuid nullable required

UUID of the folder containing this template

folderNamestring nullable required

Name of the folder containing this template