curl --request GET \
--url https://api.passform.io/v1/templates/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.passform.io/v1/templates/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.passform.io/v1/templates/list', 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.passform.io/v1/templates/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.passform.io/v1/templates/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.passform.io/v1/templates/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.passform.io/v1/templates/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"templates": [
{
"id": "drink_voucher",
"accountId": "LDvGjp645u6Q6t9pbvog",
"foregroundColor": "#FFFFF",
"backgroundColor": "#043A80",
"logo": "https://myshout.co/images/logo-white.svg",
"background": "https://myshout.co/images/backgrounds/image-62.jpg",
"icon": "https://myshout.co/images/favicon-150.png",
"title": "My Shout Drink Voucher",
"issuerName": "My Shout",
"sharingProhibited": false,
"fields": [
{
"key": "voucher",
"label": "free drinks",
"value": "1"
}
],
"backFields": [
{
"key": "terms",
"label": "Terms and Condictions",
"value": "https://myshout.co/terms"
}
]
}
],
"nextPageToken": "<string>",
"totalCount": 123
}{
"statusCode": 123,
"code": "<string>",
"error": "<string>",
"message": "<string>"
}{
"statusCode": 123,
"code": "<string>",
"error": "<string>",
"message": "<string>"
}List templates (paged)
List templates with full details, pagination and filtering. Note: filtering by type=offer only matches templates explicitly saved with that type; legacy templates saved before this endpoint existed may not have a stored type and won’t be returned by the offer filter.
curl --request GET \
--url https://api.passform.io/v1/templates/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.passform.io/v1/templates/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.passform.io/v1/templates/list', 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.passform.io/v1/templates/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.passform.io/v1/templates/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.passform.io/v1/templates/list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.passform.io/v1/templates/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"templates": [
{
"id": "drink_voucher",
"accountId": "LDvGjp645u6Q6t9pbvog",
"foregroundColor": "#FFFFF",
"backgroundColor": "#043A80",
"logo": "https://myshout.co/images/logo-white.svg",
"background": "https://myshout.co/images/backgrounds/image-62.jpg",
"icon": "https://myshout.co/images/favicon-150.png",
"title": "My Shout Drink Voucher",
"issuerName": "My Shout",
"sharingProhibited": false,
"fields": [
{
"key": "voucher",
"label": "free drinks",
"value": "1"
}
],
"backFields": [
{
"key": "terms",
"label": "Terms and Condictions",
"value": "https://myshout.co/terms"
}
]
}
],
"nextPageToken": "<string>",
"totalCount": 123
}{
"statusCode": 123,
"code": "<string>",
"error": "<string>",
"message": "<string>"
}{
"statusCode": 123,
"code": "<string>",
"error": "<string>",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
1 <= x <= 100The pass template type
offer Filters by exact archived value. Note: templates that have never been archived typically don't have this field stored at all, so archived=false will not match them — omit this filter to include both, or filter client-side instead.
Orders event templates by their start date. Only valid when type=event.
asc Response
Default Response
A template is the basis of a pass it defines the appearance of a pass and properties that don't change between instances of passes.
- Template
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
{ "id": "drink_voucher", "accountId": "LDvGjp645u6Q6t9pbvog", "foregroundColor": "#FFFFF", "backgroundColor": "#043A80", "logo": "https://myshout.co/images/logo-white.svg", "background": "https://myshout.co/images/backgrounds/image-62.jpg", "icon": "https://myshout.co/images/favicon-150.png", "title": "My Shout Drink Voucher", "issuerName": "My Shout", "sharingProhibited": false, "fields": [ { "key": "voucher", "label": "free drinks", "value": "1" } ], "backFields": [ { "key": "terms", "label": "Terms and Condictions", "value": "https://myshout.co/terms" } ] }

