GET /api/templates
Returns a list of all templates for the current app. Optionally filter by a specific channel ID to see only templates linked to that channel.
Headers
Your CometChat App ID.
Your CometChat API Key.
Query parameters
Filter templates by a specific channel ID.
Example request
Example response
Response fields
Unique template identifier.
Template display name.
Custom or auto-generated template identifier.
Template status:
draft, approved, or archived.Optional template category.
Array of linked channel IDs.
Declared template variables with their types.
Template-level configuration.