Skip to content
Back to skills

Sinch Api Templates Create

ASecurity

Create a new message template via Sinch Template Management API (V2)

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentsapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add sinch/sinch-plugins --skill sinch-api-templates-create --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sinch Api Templates Create?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sinch Api Templates Create
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sinch-sinch-api-templates-create/badge)](https://www.skillsdirectory.com/skills/sinch-sinch-api-templates-create)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sinch-api-templates-create
description: Create a new message template via Sinch Template Management API (V2)
---

# Create Message Template

Create a new omni-channel message template with the Sinch Template Management API V2. Supports text, variables (${key}), and multiple language translations.

**IMPORTANT: Execute this command directly. Do NOT generate script files. Perform the API call immediately.**

## Input

- `--description` / `-d`: Template description - optional
- `--default-language` / `-l`: Default language code (e.g. en-US) - required
- `--text` / `-t`: Template text with optional ${variable} placeholders - required
- `--variables` / `-v`: Comma-separated variable names or JSON with key/preview_value - optional

Arguments: $ARGUMENTS

## Instructions

**Execute these steps directly - do not write code or scripts:**

0. If $ARGUMENTS empty: ask for description, default language, template text, and variable names (if any). Otherwise parse.

1. Validate: --default-language (e.g. en-US), --text (non-empty). Parse --variables into array of {key, preview_value}. Build translations array with one item: language_code, variables, text_message.text.

2. Get CONVERSATION_* env vars. Template API: https://{region}.template.api.sinch.com. If missing, report "Sinch API is not configured."

3. Request body: description, default_translation (default language), translations: [{ language_code, variables: [{key, preview_value}], text_message: { text } }].

4. POST https://{region}.template.api.sinch.com/v2/projects/{projectId}/templates with OAuth2 and JSON body.

5. On success: "✅ Template created" with template id and version. Handle 400 (validation), 401 with clear messages.

6. Handle all errors gracefully.

## Examples

```
/sinch-api-templates-create --default-language=en-US --text="Hello ${name}, your order ${order_id} is ready."
/sinch-api-templates-create -l en-US -t "Hi ${customer_name}!" -v name,customer_name -d "Welcome template"
```

## API Reference

- **Endpoint**: POST /v2/projects/{project_id}/templates
- **Documentation**: https://developers.sinch.com/docs/conversation/templates/

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.