> This page is for Referencia de la API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://signalcore.ai/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://signalcore.ai/docs/_mcp/server.

# Templates Create

POST https://signalcore.ai/v1/channels/{channel_id}/templates
Content-Type: application/json

A new template for the WhatsApp number, sent to Meta for review: it comes back in review
(PENDING) and can be sent once Meta approves it.

Reference: https://signalcore.ai/docs/referencia/canales/templates-create

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `channel_id` (string, required)

### Body (application/json)

This endpoint expects an object.

- `name` (string, required)
- `body` (string, required)
- `category` (enum, optional, default: utility)
  - Allowed values: `utility`, `marketing`
- `language` (string, optional, default: es)
- `examples` (list of string, optional, default: [])

## Response

### 201

Successful Response

- `map from string to any`

## Errors

### 422 Channels Templates Create Request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (map from string to any, optional)

### ValidationErrorLocItem

## Examples

**Request**

```json
{
  "name": "name",
  "body": "body"
}
```

**Response**

```json
{
  "key": "value"
}
```

**SDK Code**

```python
import requests

url = "https://signalcore.ai/v1/channels/channel_id/templates"

payload = {
    "name": "name",
    "body": "body"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```