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

# Get campaign templates

GET https://api.youratlas.com/v1/api/campaign/templates

Returns the catalog of starter templates used to seed
`TemplateId` on `POST /campaign`. Each template targets a
`type` (`outbound`, `inbound`, `web`, `messages`); present a picker
filtered to the channel the user is creating.

Pass the `language` query parameter to filter the catalog server-side
by language. The returned template items do not carry a `language`
field, so filter by language via this query parameter rather than
client-side.


Reference: https://docs.youratlas.com/api-reference/atlas-api/campaigns/get-templates

## Authentication

- `api-key` header (required) — Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.

## Request

### Query parameters

- `language` (enum, optional) — BCP-47 language code. Supported: `en-US` (English), `es-US` (Spanish), `de` (German), `ro-RO` (Romanian), `fr-FR` (French), `hi-IN` (Hindi), `he-IL` (Hebrew), `tr-TR` (Turkish), or `multilanguage` (Multilingual). Omit to return all languages.
  - Allowed values: `en-US`, `es-US`, `de`, `ro-RO`, `fr-FR`, `hi-IN`, `he-IL`, `tr-TR`, `multilanguage`

## Response

### 200

Successful response

- `data` (list of CampaignTemplate, optional)

## Errors

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, optional)

## Types

### CampaignTemplate

- `assistant_id` (string, optional) — Template ID. Pass this value as `TemplateId` when calling `POST /campaign`.
- `title` (string, optional) — Display name of the template.
- `description` (string, optional) — Optional descriptive copy.
- `type` (enum, optional) — Campaign channel the template targets. Match against the campaign being created — `outbound`/`inbound` for phone, `web` for voice bubble, `messages` for SMS.
  - Allowed values: `outbound`, `inbound`, `web`, `messages`
- `order` (integer, optional) — Display order within the language + type group.
- `required_fields` (list of string, optional) — Fields that must be supplied on `POST /campaign` when using this template. Empty array means no extras beyond the standard payload.

### ErrorError

- `message` (string, optional)
- `code` (string, optional)
- `requestId` (string, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "assistant_id": "string",
      "title": "string",
      "description": "string",
      "type": "outbound",
      "order": 1,
      "required_fields": [
        "string"
      ]
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.youratlas.com/v1/api/campaign/templates"

headers = {"api-key": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.youratlas.com/v1/api/campaign/templates';
const options = {method: 'GET', headers: {'api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.youratlas.com/v1/api/campaign/templates"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.youratlas.com/v1/api/campaign/templates")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.youratlas.com/v1/api/campaign/templates")
  .header("api-key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.youratlas.com/v1/api/campaign/templates', [
  'headers' => [
    'api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.youratlas.com/v1/api/campaign/templates");
var request = new RestRequest(Method.GET);
request.AddHeader("api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.youratlas.com/v1/api/campaign/templates")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```