A collection of practical examples and scripts demonstrating how to interact with the Outseta Admin REST API and other relevant server-side operations.
⚠️ Important Security Note: The code in these demos is intended to be used only in secure server-side environments (for example, Zapier, Make, or your own custom server). Do not run this code in client-side contexts (such as websites, web apps or mobile apps) as it could expose sensitive operations and compromise your security.
These demos showcase common Outseta API operations and patterns, making it easier for developers to:
- Understand Outseta's API structure and capabilities
- Implement common business logic with Outseta
- Learn best practices for API integration
- Build reliable automation workflows
Before you begin, ensure you have:
- Node.js 18.0.0 or higher
- Outseta API credentials (API Key and Secret)
- Basic understanding of JavaScript/Node.js
- Git for cloning the repository
git clone <your-repo-url>
cd outseta-scriptsnpm installCreate a .env file in the root directory:
cp .env.example .envEdit the .env file with your Outseta credentials:
OUTSETA_API_KEY=your_api_key_here
OUTSETA_API_SECRET=your_api_secret_here
OUTSETA_SUBDOMAIN=your_subdomain_hereEach demo has specific usage instructions. See the Available Demos section below.
Example:
node track-usage.js L9nqkRXQ j9bpnkmn 3| Demo | Guide | Source | Usage |
|---|---|---|---|
| Register User | Guide | Source | npm run register-account |
| Generate JWT Token | Guide | Source | npm run generate-jwt |
| Verify JWT Token | Guide | Source | npm run verify-jwt |
| Create Plan | Guide | Source | npm run create-plan |
| Change Plan | Guide | Source | npm run change-plan |
| Track Usage | Guide | Source | npm run track-usage |
All scripts require the following environment variables:
| Variable | Description | Required | Example |
|---|---|---|---|
OUTSETA_API_KEY |
Your Outseta API key | ✅ Yes | abc123def456 |
OUTSETA_API_SECRET |
Your Outseta API secret | ✅ Yes | xyz789uvw012 |
OUTSETA_SUBDOMAIN |
Your Outseta subdomain | ✅ Yes | mycompany |
- Log into your Outseta account Navigate to Settings → Integrations → API Keys
- Locate the Add API Key button to generate a new API Key and Secret
- Add the API Key and Secret to your
.envfile
⚠️ Important Security Note: These API credentials should only be used in secure server-side environments. Never expose your API Key and Secret in client-side code or public repositories, as this could compromise your account security.
Want to add a new demo or improve existing ones? Check out our Contributing Guide for detailed development guidelines, code patterns, and contribution instructions.
This project is licensed under the ISC License - see package.json for details.
- Outseta Documentation - Official Outseta help
- Outseta API Documentation - Complete API reference
- GitHub Issues - Report bugs or request features
- Email Support - Direct support from Outseta
- Educational Purpose: These demos are for educational purposes
- Test First: Always test thoroughly in a development environment before using in production
- API Limits: Be mindful of Outseta's API rate limits
- Security: Never commit your
.envfile or expose API credentials