Template Endpoints
List Templates
Get all available environment templates
GET
/
api
/
platform
/
templates
List Templates
curl --request GET \
--url https://api.example.com/api/platform/templatesimport requests
url = "https://api.example.com/api/platform/templates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/platform/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/platform/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/platform/templates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/platform/templates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/platform/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"templates": [
{}
]
}Request
GET /api/platform/templates
Query Parameters
string
Filter by service:
"slack" or "linear"string
Filter by visibility:
"public" or "private"Example Request
curl -X GET "https://api.agentdiff.dev/api/platform/templates?service=slack" \
-H "X-API-Key: ad_live_sk_..."
Response
array
List of available templates
Example Response
{
"templates": [
{
"id": "template-123",
"name": "slack_default",
"service": "slack",
"description": "Default Slack workspace with users and channels",
"location": "slack_default",
"visibility": "public",
"createdAt": "2025-01-01T00:00:00Z"
},
{
"id": "template-456",
"name": "slack_bench_default",
"service": "slack",
"description": "Extended Slack workspace for benchmarks",
"location": "slack_bench_default",
"visibility": "public",
"createdAt": "2025-01-01T00:00:00Z"
}
]
}
Built-in Templates
Slack
| Template | Contents | Use For |
|---|---|---|
slack_default | 3 users, 2 channels (#general, #random), 3 messages | Basic testing |
slack_bench_default | Extended with threads, reactions, DMs | Benchmark evaluations |
slack_base | Users and channels only (no messages) | Custom scenarios |
U01AGENBOT9- Agent Bot (use forimpersonateUserId)U02JOHNDOE1- John DoeU03JANEDOE2- Jane Doe
C01GENERAL99- #generalC02RANDOM123- #random
Linear
| Template | Contents | Use For |
|---|---|---|
linear_expanded | 2 teams, 40+ issues, labels, workflows, projects | Benchmark evaluations |
linear_default | 2 teams, 5 issues, basic workflows | Basic testing |
linear_base | Teams and users only | Custom scenarios |
ad608998-915c-4bad-bcd9-85ebfccccee8- Engineering (ENG)58c03c85-7b0c-466d-9a4c-120209fccb56- Growth (GRO)
View full seed data: Check
examples/slack/seeds/ and examples/linear/seeds/ in the repo to see all entities and their IDs.SDK Usage
templates = client.list_templates()
for t in templates.templates:
print(f"{t.name} ({t.service}) - {t.description}")
const templates = await client.listTemplates();
templates.templates.forEach(t => {
console.log(`${t.name} (${t.service}) - ${t.description}`);
});
⌘I
List Templates
curl --request GET \
--url https://api.example.com/api/platform/templatesimport requests
url = "https://api.example.com/api/platform/templates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/platform/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/platform/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/platform/templates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/platform/templates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/platform/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"templates": [
{}
]
}