# Template

Studio templates can be [created](https://docs.bird.com/api/channels-api/message-types/broken-reference) that either apply to some or all channel types depending on the options selected when creating the template. In all cases sending the template is the same for all channels

{% hint style="info" %}
All examples below must be sent within the **template** field of a message as shown below
{% endhint %}

{% code lineNumbers="true" %}

```json
{
 "receiver": {
   "contacts": [
     {
       "identifierValue": "+31612345678"
     }
   ]
 },
 "template": {...}
}
```

{% endcode %}

## Text template with variable

### Studio template

![](https://3210271997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnJZeZvhOMhDQA8SpjQM%2Fuploads%2Fap72CFjEmHC1mzVis3Fy%2Fimage.png?alt=media\&token=246250cb-d2bd-4546-8082-5310486458a3)

### Template body

{% code lineNumbers="true" %}

```json
{
   "projectId":"ce6a2fd6-b2fa-4f5a-a2cd-f3bd15883318",
   "version":"latest",
   "locale":"en",
   "parameters":[
      {
         "type":"string",
         "key":"name",
         "value":"Robert"
      }
   ]
}
```

{% endcode %}

## Image template with variable

### Studio template

![](https://3210271997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnJZeZvhOMhDQA8SpjQM%2Fuploads%2FTKq91vChgsbZXESQVIPi%2Fimage.png?alt=media\&token=e488ea20-c890-498d-8ae5-667449b2a809)

### Template body

{% code lineNumbers="true" %}

```json
{
   "projectId":"7b492653-450b-4e97-b5e4-3827868e7438",
   "version":"latest",
   "locale":"en",
   "parameters":[
      {
         "type":"string",
         "key":"imageURL",
         "value":"https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnJZeZvhOMhDQA8SpjQM%2Fuploads%2FRPPgQAGyZE7rvIh3WM2Z%2Fimage2.avif?alt=media"
      }
   ]
}
```

{% endcode %}

## Image with a variable in a button

### Studio template

![](https://3210271997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnJZeZvhOMhDQA8SpjQM%2Fuploads%2FnpKxzH3m90iW4gbRAMtF%2Fimage.png?alt=media\&token=55441ca9-ed0e-490f-b7dd-7f9833e32d43)

### Template body

{% code lineNumbers="true" %}

```json
{
   "projectId":"6449eb42-dffb-41c2-81a1-7fd956d2e7a6",
   "version":"e0e9190c-c3e7-4026-8fc3-d28a77aa1a52",
   "locale":"en",
   "parameters":[
      {
         "type":"string",
         "key":"name",
         "value":"Robert"
      },
      {
         "type":"string",
         "key":"url",
         "value":"?campaignid=123456"
      }
   ]
}
```

{% endcode %}
