sinch-api-templates-create

Creates omni-channel message templates via the Sinch Template Management API V2.

6|2|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/sinch/sinch-plugins --skill sinch-api-templates-create-sinch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sinch-api-templates-create
Source: https://github.com/sinch/sinch-plugins/tree/main/plugins/sinch-antigravity-plugin/skills/sinch-api-templates-create
Command: npx skills add https://github.com/sinch/sinch-plugins --skill sinch-api-templates-create-sinch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating reusable message templates for SMS and other channels normally requires manual dashboard work or hand-written API calls; this Skill performs the Sinch Template Management API V2 request directly from a single command. ## Core Features & Use Cases - Direct API Execution: Calls POST /v2/projects/{project_id}/templates immediately without generating intermediate scripts. - Variable Support: Accepts template text with ${variable} placeholders and parses variable names into key/preview_value pairs. - Multi-language Translations: Builds a translations array with language codes, enabling localized template content. - Use Case: A developer needs an order-confirmation template with customer name and order ID variables; they run one command with the text and variable list and receive the new template ID and version. ## Quick Start Ask the assistant to create a Sinch message template with default language en-US and the text "Hello ${name}, your order ${order_id} is ready."

Frequently Asked Questions about sinch-api-templates-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Sinch message template with variables?

Provide the default language, template text containing ${variable} placeholders, and a comma-separated list of variable names. The Skill parses the variables into key/preview_value pairs and posts the template to the Sinch Template Management API V2.

What credentials does the Sinch Template Management API require?

It requires CONVERSATION_PROJECT_ID, CONVERSATION_KEY_ID, CONVERSATION_KEY_SECRET, and CONVERSATION_REGION environment variables. These authenticate the OAuth2 request to https://{region}.template.api.sinch.com.

Does the Sinch template API support multiple languages?

Yes, the request body includes a translations array where each item specifies a language_code, variables, and text_message. The default_translation field designates the fallback language such as en-US.

Why does template creation return a 400 or 401 error?

A 400 indicates validation problems such as empty template text or a malformed language code. A 401 means the Sinch credentials are missing or invalid, so verify the CONVERSATION_* environment variables are configured.

Can I use this for templates outside the Sinch Conversation API?

No, it targets only the Sinch Template Management API V2 endpoint for Conversation API projects. Templates for other messaging platforms require their own provider-specific APIs.