Postman Collection
Official Postman collection for interactive API exploration and testing.
Format: Postman Collection v2.1.0 Status: Complete (20+ endpoints) Repository: github.com/torvus-security/torvus
Quick Startโ
1. Download Collection Filesโ
Download these two files from the repository:
- Collection:
Torvus-API.postman_collection.json - Environment:
Torvus-API.postman_environment.json
2. Import into Postmanโ
Import Collectionโ
- Open Postman
- Click Import button (top left)
- Select or drag
Torvus-API.postman_collection.json - Collection appears in your sidebar under "Collections"
Import Environmentโ
- Click Environments icon in the sidebar
- Click Import
- Select
Torvus-API.postman_environment.json - Click Torvus API - Production to activate
3. Configure API Keyโ
- Click Environments โ Torvus API - Production
- Set
API_KEYto your actual API key - Get your key from: app.torvussecurity.com/settings/api-keys
- Click Save
4. Test Your Setupโ
- Open Utilities folder in the collection
- Run Get Feature Flags (Public) (no auth required)
- Run Authentication โ Get Current User (whoami) (requires API key)
If both succeed, you're ready to go! โ
Collection Structureโ
The collection includes 20+ endpoints organized into logical folders:
๐ Authentication (5 endpoints)โ
WebAuthn passwordless authentication and user identity:
- Get Current User (whoami) - Returns authenticated user's profile
- Generate WebAuthn Registration Options - Start credential registration
- Verify WebAuthn Registration - Complete credential registration
- Generate WebAuthn Authentication Options - Start authentication flow
- Verify WebAuthn Authentication - Complete authentication flow
๐ Vaults (8 endpoints)โ
Secure vault management and operations:
- List Vaults - Get all vaults with pagination
- Create Vault - Create a new secure vault
- Get Vault - Retrieve vault details by ID
- Update Vault - Modify vault properties
- Delete Vault - Permanently delete vault
- Check In to Vault - Record proof-of-life check-in
- List Vault Documents - Get documents in vault
- Initiate Document Upload - Start multipart upload
๐ Documents (4 endpoints)โ
Document upload, download, and management:
- Finalize Document Upload - Complete upload after file transfer
- Get Document Metadata - Retrieve document details
- Delete Document - Permanently delete document
- Download Document - Get signed download URL
๐ Recipients (4 endpoints)โ
Release recipient management and verification:
- List Recipients - Get all recipients
- Add Recipient - Create new recipient
- Send Verification Email - Send verification to recipient
- Get Verification Status - Check recipient verification
๐ Utilities (2 endpoints)โ
Public utilities and system information:
- Get Feature Flags (Public) - Public feature flags (no auth)
- Get User Statistics - User account statistics
Environment Variablesโ
The environment includes the following variables:
| Variable | Description | Example |
|---|---|---|
baseUrl | API base URL | https://api.torvussecurity.com/v1 |
API_KEY | Your API key (required) | sk_live_abc123... |
user_id | User UUID (auto-populated) | 123e4567-... |
vault_id | Vault UUID (auto-populated) | 123e4567-... |
document_id | Document UUID (auto-populated) | 123e4567-... |
recipient_id | Recipient UUID (auto-populated) | 123e4567-... |
Note: Resource IDs (vault_id, document_id, etc.) are automatically populated from responses. You can also set them manually.
Authenticationโ
All requests (except /v1/flags) require authentication via API key:
- Header:
X-API-Key: sk_live_your_api_key_here - Location: Set in environment variable
API_KEY - Scope: Collection-level auth (automatically applied to all requests)
The collection is pre-configured with collection-level authentication, so you only need to set your API key in the environment.
Example Workflowโ
Here's a typical workflow using the collection:
Step 1: Create a Vaultโ
POST /vaults
{
"name": "My Vault",
"vault_type": "personal"
}
Response: Copy the id field
Step 2: Save Vault IDโ
- Copy
idfrom response - Go to Environments โ Torvus API - Production
- Set
vault_idto the copied value - Click Save
Step 3: Upload a Documentโ
POST /vaults/{{vault_id}}/documents/initiate
{
"filename": "document.pdf",
"content_type": "application/pdf",
"size": 1048576
}
Response: Note the upload_url for file upload
Step 4: Upload File to Signed URLโ
Use the upload_url from step 3 to upload your file (external to Postman, or use a new request).
Step 5: Finalize Uploadโ
POST /documents/finalize
{
"document_id": "{{document_id}}"
}
Step 6: Check Inโ
POST /vaults/{{vault_id}}/checkin
Advanced Featuresโ
Pre-request Scriptsโ
Add scripts to automatically extract and save response values:
// Save vault_id from response
pm.test("Save vault ID", function () {
const response = pm.response.json();
pm.environment.set("vault_id", response.id);
});
Testsโ
Add test assertions to validate responses:
// Test: Verify successful response
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
pm.test("Response has data field", function () {
const jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('data');
});
Collection Runnerโ
Run multiple requests in sequence:
- Click Collections โ Torvus Security Platform API
- Click Run (top right)
- Select requests to run
- Click Run Torvus Security Platform API
Rate Limitingโ
Be aware of rate limits based on your tier:
| Tier | Requests/Day | Requests/Minute |
|---|---|---|
| Free | 1,000 | 10 |
| Professional | 100,000 | 100 |
| Enterprise | 1,000,000 | 1,000 |
Rate limit information is included in response headers:
X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Requests remainingX-RateLimit-Reset: Unix timestamp when limit resets
Troubleshootingโ
401 Unauthorizedโ
Problem: API key not recognized
Solutions:
- Verify API key is correct (check for extra spaces)
- Check API key hasn't expired
- Ensure key is set in Environments โ Torvus API - Production โ
API_KEY - Verify environment is activated (dropdown in top right)
404 Not Foundโ
Problem: Resource doesn't exist
Solutions:
- Check that the vault_id/document_id/recipient_id is correct
- Verify you're using the correct base URL
- Ensure the resource belongs to your account
- Check for typos in the request URL
429 Rate Limit Exceededโ
Problem: Too many requests
Solutions:
- Wait for the rate limit to reset (check
X-RateLimit-Resetheader) - Reduce request frequency
- Consider upgrading your tier
- Use Collection Runner delay feature (Settings โ Delay between requests)
500 Internal Server Errorโ
Problem: Server error
Solutions:
- Check API status: status.torvussecurity.com
- Retry the request (may be temporary)
- Contact support with request ID from error response
- Check request body for malformed data
Tips & Best Practicesโ
1. Use Pre-request Scriptsโ
Automatically set environment variables from responses:
// Extract and save IDs from responses
pm.test("Save response IDs", function () {
const response = pm.response.json();
if (response.vault_id) {
pm.environment.set("vault_id", response.vault_id);
}
if (response.document_id) {
pm.environment.set("document_id", response.document_id);
}
});
2. Create Testsโ
Add test scripts to validate responses automatically:
pm.test("Status code is 2xx", function () {
pm.expect(pm.response.code).to.be.oneOf([200, 201, 202, 204]);
});
pm.test("Response time is acceptable", function () {
pm.expect(pm.response.responseTime).to.be.below(2000);
});
3. Fork the Collectionโ
Create a personal copy to customize without losing updates:
- Hover over collection name
- Click ยทยทยท (three dots)
- Select Create a fork
- Customize your fork freely
4. Create Multiple Environmentsโ
Set up separate environments for different scenarios:
- Development: Point to sandbox API
- Staging: Pre-production testing
- Production: Live API with production keys
5. Use Collection Variablesโ
For values that don't change between requests:
- Right-click collection name
- Select Edit
- Go to Variables tab
- Add collection-level variables
6. Monitor with Postman Monitorโ
Set up automated monitoring:
- Click collection ยทยทยท menu
- Select Monitor collection
- Configure schedule and notifications
- Get alerts if API changes or fails
Creating Custom Requestsโ
Adding a New Requestโ
- Right-click on folder
- Select Add request
- Configure request details:
- Method: GET, POST, PATCH, DELETE, PUT
- URL:
{{baseUrl}}/your-endpoint - Headers: Auto-inherited from collection
- Body: JSON data for POST/PATCH/PUT
Example: Custom Vault Queryโ
GET {{baseUrl}}/vaults?limit=5&status=active
Headers:
- X-API-Key: {{API_KEY}} (auto-inherited)
Exporting and Sharingโ
Export Collectionโ
- Right-click collection name
- Select Export
- Choose Collection v2.1 (recommended)
- Save file
Share with Teamโ
- Public link: Click Share โ Get public link
- Workspace: Move to shared workspace
- Export/Import: Share JSON file via email/Slack
Additional Resourcesโ
- API Documentation: docs.torvussecurity.com
- OpenAPI Spec: docs.torvussecurity.com/openapi.yaml
- JavaScript SDK:
npm install @torvus/api-client - Python SDK:
pip install torvus-sdk - Support: support@torvussecurity.com
Contributingโ
Found an issue with the collection? Please open an issue on GitHub: github.com/torvus-security/torvus/issues
Licenseโ
MIT ยฉ Torvus Security
Last Updated: October 13, 2025