curl -X POST https://anythingtopass.com/api/v1/passes \
-H "Content-Type: application/json" \
-H "X-API-Key: ho_sandbox_demo" \
-d '{
"title": "VIP Summit Pass",
"subtitle": "HighOrder Tech Summit",
"description": "All-Access pass for stages and networking lounges",
"barcode": "SUMMIT-2026-VIP-99482",
"barcodeFormat": "QR",
"eventDate": "2026-09-15",
"eventLocation": "San Francisco, CA",
"organizationName": "highorder.io",
"bgColor": "#1a103c",
"fgColor": "#ffffff",
"labelColor": "#c4b5fd"
}'
import fetch from 'node-fetch';
const response = await fetch('https://anythingtopass.com/api/v1/passes', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'ho_sandbox_demo'
},
body: JSON.stringify({
title: 'VIP Summit Pass',
subtitle: 'HighOrder Tech Summit',
description: 'All-Access pass for stages and networking lounges',
barcode: 'SUMMIT-2026-VIP-99482',
barcodeFormat: 'QR',
eventDate: '2026-09-15',
eventLocation: 'San Francisco, CA',
organizationName: 'highorder.io',
bgColor: '#1a103c'
})
});
const data = await response.json();
console.log('Pass ID:', data.passId);
console.log('Apple Wallet Download URL:', data.links.appleDownloadUrl);
console.log('Google Wallet Save URL:', data.links.googleSaveUrl);
import requests
payload = {
'title': 'VIP Summit Pass',
'subtitle': 'HighOrder Tech Summit',
'description': 'All-Access pass for stages and networking lounges',
'barcode': 'SUMMIT-2026-VIP-99482',
'barcodeFormat': 'QR',
'eventDate': '2026-09-15',
'eventLocation': 'San Francisco, CA',
'organizationName': 'highorder.io',
'bgColor': '#1a103c'
}
response = requests.post(
'https://anythingtopass.com/api/v1/passes',
headers={'X-API-Key': 'ho_sandbox_demo'},
json=payload
)
result = response.json()
print('Pass ID:', result['passId'])
print('Apple Wallet Download:', result['links']['appleDownloadUrl'])
print('Google Wallet Link:', result['links']['googleSaveUrl'])
{
"success": true,
"passId": "pass_cmvg7eaui00002camlj9f1ibr",
"pass": {
"id": "pass_cmvg7eaui00002camlj9f1ibr",
"title": "VIP Summit Pass",
"subtitle": "HighOrder Tech Summit",
"organizationName": "highorder.io",
"barcode": "SUMMIT-2026-VIP-99482",
"barcodeFormat": "QR",
"eventDate": "2026-09-15",
"eventLocation": "San Francisco, CA",
"bgColor": "#1a103c"
},
"links": {
"appleDownloadUrl": "https://anythingtopass.com/api/v1/passes/pass_cmvg7eaui00002camlj9f1ibr/apple",
"googleSaveUrl": "https://pay.google.com/gp/v/save/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"passDetailsUrl": "https://anythingtopass.com/api/v1/passes/pass_cmvg7eaui00002camlj9f1ibr"
}
}