Postman Collection
🚀 Ready-to-use Postman Collection for all Single Trigger APIs We’ve created a complete Postman collection with all 3 Single Trigger APIs pre-configured and ready to test. This collection includes proper authentication, sample request bodies, and environment variables for seamless testing.📥 Download Options
Option 1: Direct Download
Right-click and save: postman-collection.jsonOption 2: Copy & Save
Copy the JSON collection below and save it asRevRag_Single_Trigger_APIs.postman_collection.json:
📖 How to Import to Postman
Step-by-Step Instructions:
- Download or copy the collection JSON above
- Open Postman application on your computer
- Click “Import” button (located in the top left corner)
- Select the JSON file you downloaded, or paste the JSON content directly
- Click “Import” to add the collection to your workspace
- Update API Key:
- Go to the collection variables tab
- Replace
YOUR_API_KEYwith your actual RevRag API key
- Select environment: Make sure the staging environment variables are active
- Start testing all 3 APIs instantly! 🎉
Environment Setup:
The collection includes these environment variables:{{base_url}}: Set tohttps://staging-api.revrag.aifor staging environment{{api_key}}: Replace with your actual API key{{call_id}}: Used for testing the Get Call Status endpoint
✅ What’s Included
- ✅ All 3 Single Trigger APIs pre-configured with proper endpoints
- ✅ Environment variables for easy base URL and API key management
- ✅ Sample request bodies with realistic test data and proper formatting
- ✅ Proper headers including
X-API-Keyauthentication and content types - ✅ Path variables configured for dynamic call ID usage
- ✅ Descriptions for each API endpoint explaining their purpose
- ✅ Ready for staging environment pointing to
staging-api.revrag.ai
🎯 API Endpoints Included
1. Get All Agents
- Method: GET
- Endpoint:
/v1/campaigns/agents - Purpose: Retrieve all workspace agents with variables
- Headers: X-API-Key authentication
2. Trigger Single Call
- Method: POST
- Endpoint:
/v1/campaigns/trigger/single - Purpose: Trigger a single AI call for testing
- Headers: X-API-Key authentication, Content-Type: application/json
- Body: JSON with agent_id, phone number, and variable fields
3. Get Call Status
- Method: GET
- Endpoint:
/v1/campaigns/trigger/status/{call_id} - Purpose: Get detailed status of a specific call
- Headers: X-API-Key authentication
- Variables: Dynamic call_id from previous responses
💡 Testing Workflow
Recommended Testing Order:
-
Start with “Get All Agents”
- Verify your API key works
- Get available agent IDs for testing
- Copy an agent ID for the next step
-
Use “Trigger Single Call”
- Update the
agent_idwith a real agent ID from step 1 - Modify phone number if needed (for testing)
- Execute the call and save the returned
call_id
- Update the
-
Check “Get Call Status”
- Replace the
call_idvariable with the actual ID from step 2 - Monitor the call status and get detailed information
- Replace the
Pro Tips:
- Save responses: Copy important values like
call_idfrom responses for use in subsequent requests - Environment switching: Create separate environments for staging vs production testing
- Variables usage: Leverage Postman variables to automatically pass data between requests
- Collection runner: Use Postman’s collection runner to test all APIs in sequence
- Test scripts: Add test scripts to automatically validate responses and extract values
🔧 Troubleshooting
Common Issues:
❌ 401 Unauthorized- Check that your API key is correctly set in the collection variables
- Ensure the API key has proper permissions for the endpoints
- Verify the base URL is correct (
https://staging-api.revrag.ai) - Check that endpoint paths match the API documentation
- Ensure request body format matches the expected schema
- Validate phone number format and agent ID values
Getting Help:
If you encounter issues with the Postman collection:- Check the API Documentation for detailed endpoint specifications
- Verify your API key permissions and validity
- Contact support at contact@revrag.ai for technical assistance
Ready to start testing? Download the collection and import it to Postman to begin exploring the RevRag AI Voice Calling APIs! 🚀