Integrate with ASANSL to manage vouchers, customers, transactions, and subscriptions programmatically. The API follows RESTful conventions and uses JWT Bearer tokens for authentication.
All API requests require a valid JWT Bearer token.
Base URL
https://znsyrdtlycrpbteykxqf.supabase.coOption 1: API Key (Recommended for integrations)
Generate an API key from Account → API Keys, then use it with the public API endpoint:
curl 'https://znsyrdtlycrpbteykxqf.supabase.co/functions/v1/public-api/packages' \
-H 'X-API-Key: ask_YOUR_API_KEY'Option 2: JWT Bearer Token
curl -X POST 'https://znsyrdtlycrpbteykxqf.supabase.co/auth/v1/token?grant_type=password' \
-H 'apikey: YOUR_ANON_KEY' \
-H 'Content-Type: application/json' \
-d '{
"email": "user@example.com",
"password": "your-password"
}'Then use the token:
curl 'https://znsyrdtlycrpbteykxqf.supabase.co/rest/v1/packages?select=*&is_active=eq.true' \
-H 'apikey: YOUR_ANON_KEY' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'⚠️ Security Note
API keys are scoped to your account and only expose data for sites you own. Rotate keys regularly and revoke any you no longer need.
100
Requests / minute
1,000
Rows per query
2 MB
Max request body