curl --request GET \
--url https://api.passlet.io/v1/passes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.passlet.io/v1/passes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.passlet.io/v1/passes', 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.passlet.io/v1/passes",
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.passlet.io/v1/passes"
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.passlet.io/v1/passes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.passlet.io/v1/passes")
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{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalPassId": "<string>",
"label": "<string>",
"status": "QUEUED",
"version": 123,
"templateVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"variables": {},
"redemption": {
"windows": [
{
"start": "<string>",
"end": "<string>",
"maxUses": 50000
}
],
"maxUses": 50000,
"autoVoidOnExhaustion": true,
"perPeriod": {
"unit": "day",
"count": 50000,
"timezone": "<string>"
},
"minIntervalMinutes": 263520,
"activation": {
"basis": "firstScan",
"validForHours": 43920
}
},
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"revision": 123,
"templateVersion": 4503599627370495,
"latestTemplateVersion": 4503599627370495
}
],
"total": 0,
"limit": 0,
"offset": 0,
"hasMore": true,
"nextCursor": "<string>"
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}List passes
Lists passes, newest first by default, with cursor pagination. Filter by status, label (label + labelMatch), project, template, pinned template version and head revision (templateVersion / revision, as a bare number or gte:/lte: prefixed), version freshness (upgradeAvailable), creation interval (createdFrom/createdTo, half-open), stored variables (variable=key:value, repeatable), scanner validity (validOn), or redemption state (redeemed). Sorting by the computed fields templateName, templateVersion or revision paginates by offset continuation cursors; prefer the row-field sorts for long-running exports.
Requires the passes:read scope on the access token.
curl --request GET \
--url https://api.passlet.io/v1/passes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.passlet.io/v1/passes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.passlet.io/v1/passes', 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.passlet.io/v1/passes",
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.passlet.io/v1/passes"
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.passlet.io/v1/passes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.passlet.io/v1/passes")
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{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalPassId": "<string>",
"label": "<string>",
"status": "QUEUED",
"version": 123,
"templateVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"variables": {},
"redemption": {
"windows": [
{
"start": "<string>",
"end": "<string>",
"maxUses": 50000
}
],
"maxUses": 50000,
"autoVoidOnExhaustion": true,
"perPeriod": {
"unit": "day",
"count": 50000,
"timezone": "<string>"
},
"minIntervalMinutes": 263520,
"activation": {
"basis": "firstScan",
"validForHours": 43920
}
},
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"revision": 123,
"templateVersion": 4503599627370495,
"latestTemplateVersion": 4503599627370495
}
],
"total": 0,
"limit": 0,
"offset": 0,
"hasMore": true,
"nextCursor": "<string>"
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}{
"errorCode": "UNAUTHORIZED",
"message": "<string>",
"correlationId": "<string>",
"details": {},
"fieldErrors": [
{
"field": "<string>",
"message": "<string>",
"code": "UNAUTHORIZED"
}
]
}Authorizations
Query Parameters
Only passes created at or after this instant (inclusive). ISO 8601.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Only passes created before this instant (exclusive). ISO 8601.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Repeatable key:value filter on stored pass variables (exact, trimmed match; value = everything after the first ":"). Same key repeated = any-of; different keys must all match. Max 5 entries. Example: variable=memberTier:gold&variable=region:EU
1 - 5 elementsStored-variable filter entry in key:value form.
3 - 2177Sort field. templateName/templateVersion/revision are computed fields: passes without a pinned template version sort last, and their cursors are offset continuations (prefer row-field sorts for long-running exports).
createdAt, updatedAt, label, status, externalPassId, templateName, templateVersion, revision "createdAt"
Response
OK