Postman Collection
Use our official Postman collection to quickly test and explore the Vantage API. The collection includes pre-configured requests for all major endpoints with example data.
Download Collection
Method 1: Direct Download
Download the collection file and import it into Postman:
📥 Download Vantage API Collection
Method 2: Import Link
Copy this URL and import it directly in Postman:
https://api.vantage.omnivector.solutions/postman/collection.json
Method 3: Postman Button
Setup Instructions
1. Import the Collection
- Open Postman
- Click Import in the top left
- Choose Link tab
- Paste the collection URL:
https://api.vantage.omnivector.solutions/postman/collection.json - Click Continue and then Import
2. Set Environment Variables
The collection uses environment variables for easy configuration:
- Click the Environment dropdown (top right)
- Create a new environment called "Vantage API"
- Add these variables:
| Variable | Description | Example Value |
|---|---|---|
base_url | API base URL | https://api.vantage.omnivector.solutions/v1 |
api_key | Your API key | vantage_sk_abc123... |
cluster_id | Default cluster ID | cluster_abc123 |
job_id | Sample job ID | job_xyz789 |
file_id | Sample file ID | file_def456 |
3. Configure Authentication
The collection automatically includes your API key in requests:
- Select a request from the collection
- Go to the Authorization tab
- Verify Type is set to Bearer Token
- Verify Token field shows
{{api_key}}
Collection Structure
The collection is organized into the following folders:
🔐 Authentication
- Test authentication
- Get current user info
- Validate API key
💼 Jobs
- List jobs (with filters)
- Create new job
- Get job details
- Update job
- Delete job
- Get job output
- Get job logs
- Cancel job
🖥️ Clusters
- List clusters
- Get cluster details
- Get cluster usage
- List cluster nodes
- Get cluster metrics
📁 Storage
- List files
- Upload file
- Download file
- Get file metadata
- Delete file
- Create folder
- List folder contents
👥 Teams
- List teams
- Get team details
- List team members
- Add team member
- Remove team member
- Update team member role
👤 Users
- Get user profile
- Update user profile
- List user jobs
- Get user usage statistics
💰 Billing
- Get usage summary
- List invoices
- Get invoice details
- Download invoice PDF
📊 Monitoring
- Get job metrics
- Get cluster metrics
- Get system status
🔗 Webhooks
- List webhooks
- Create webhook
- Update webhook
- Delete webhook
- Test webhook
Example Requests
Create a Job
POST {{base_url}}/jobs
{
"name": "hello-world",
"cluster_id": "{{cluster_id}}",
"command": "echo 'Hello from Vantage!'",
"resources": {
"cpus": 1,
"memory": "1GB"
}
}
Upload a File
POST {{base_url}}/storage/files
Content-Type: multipart/form-data
file: [binary file data]
path: /scripts/my-script.py
overwrite: false
List Jobs with Filters
GET {{base_url}}/jobs?status=running&limit=10&cluster_id={{cluster_id}}
Pre-request Scripts
The collection includes helpful pre-request scripts:
Auto-generate Request IDs
pm.environment.set("request_id", pm.variables.replaceIn("{{$randomUUID}}"));
Set Timestamps
pm.environment.set("timestamp", new Date().toISOString());
Generate Test Data
pm.environment.set("test_job_name", "test-job-" + Math.floor(Math.random() * 1000));
Test Scripts
Example test scripts included in requests:
Verify Response Status
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
Validate Response Schema
pm.test("Response has required fields", function () {
var jsonData = pm.response.json();
pm.expect(jsonData).to.have.property("id");
pm.expect(jsonData).to.have.property("status");
});
Save Response Data
pm.test("Save job ID for later use", function () {
var jsonData = pm.response.json();
pm.environment.set("job_id", jsonData.id);
});
Environment Templates
Development Environment
{
"name": "Vantage API - Development",
"values": [
{
"key": "base_url",
"value": "https://api-dev.vantage.omnivector.solutions/v1"
},
{
"key": "api_key",
"value": "your_dev_api_key_here"
}
]
}
Production Environment
{
"name": "Vantage API - Production",
"values": [
{
"key": "base_url",
"value": "https://api.vantage.omnivector.solutions/v1"
},
{
"key": "api_key",
"value": "your_prod_api_key_here"
}
]
}
Running Collections
Manual Testing
- Select any request
- Ensure environment is set
- Click Send
- Review response
Automated Testing
- Right-click collection name
- Select Run collection
- Configure test settings
- Click Run Vantage API
Newman (CLI)
Run collections from command line:
# Install Newman
npm install -g newman
# Run collection
newman run vantage-api-collection.json \
--environment vantage-environment.json \
--reporters cli,json \
--export-globals globals.json
Troubleshooting
Authentication Issues
- Verify API key is correctly set in environment
- Check that Bearer token format is correct
- Ensure API key has required scopes
Environment Variables
- Make sure environment is selected (top right)
- Verify all required variables are set
- Check for typos in variable names
SSL/TLS Issues
- Disable SSL verification in Postman settings (development only)
- Check certificate validity
- Verify network connectivity
Updates and Versioning
The Postman collection is updated regularly:
- Auto-sync: Enable auto-sync in Postman for latest updates
- Version tags: Each release is tagged with API version
- Changelog: Check collection description for recent changes