Prerequisites
Before you begin, make sure you have:- A Voyant account with workspace access
- Your API key (generate from workspace settings)
- Basic understanding of REST APIs
- A tool to make HTTP requests (cURL, Postman, or code)
Get your API key
1
Log in to your dashboard
Navigate to https://dash.voyantcloud.com and sign in to your workspace.
2
Open settings
Click on your workspace settings icon in the sidebar navigation.
3
Generate API key
Under the API Keys section, click Generate New Key. Copy the key immediately as it will only be shown once.
Store your API key securely in environment variables or a secrets manager.
Make your first request
Let’s fetch your product catalog to verify authentication works.If you see a list of products, your API key is working correctly! 🎉
Get product details
Now let’s fetch detailed information about a specific product:Calculate a price
Use the pricing endpoint to get real-time price calculations with taxes and rules applied:Error handling
The API uses standard HTTP status codes and returns detailed error messages:Response headers
Every API response includes helpful headers:- X-Request-ID: Unique identifier for the request (include when reporting issues)
- X-RateLimit-*: Rate limiting information
- Content-Type: Always
application/json
Next steps
Now that you’ve made your first requests, explore more advanced features:Authentication
Learn about API key management and security best practices
Products API
Explore the complete product catalog endpoints
Bookings API
Create and manage travel bookings programmatically
Error handling
Handle errors gracefully in your integration
Common patterns
Environment variables
Store your API key in environment variables:- .env file
- Shell export
Base request function
Create a reusable function for API requests:You’re now ready to build your travel booking integration with Voyant! 🚀