SDKs & Tools
Postman Collection
Import Samva API collection into Postman
Test and explore Samva APIs using our official Postman collection.
Import Collection
Option 1: Import from URL
- Open Postman
- Click Import in the top left
- Select the Link tab
- Enter:
https://samva.app/api/v1/openapi.json - Click Continue and then Import
Option 2: Import from OpenAPI Spec
- Visit samva.app/api/v1/openapi.json
- Save the file locally
- In Postman, click Import → Upload Files
- Select the saved JSON file
Configure Authentication
After importing, set up your API key:
- Click on the collection name in the sidebar
- Go to the Variables tab
- Add a variable named
apiKey - Set the value to your API key (e.g.,
sk_live_your_api_key) - Click Save
Then update the collection's authorization:
- Go to the Authorization tab
- Select API Key as the type
- Set Key to
X-API-Key - Set Value to
{{apiKey}} - Set Add to to
Header
Collection Features
- All API endpoints - Complete coverage of Samva API
- Pre-configured examples - Ready-to-use request bodies
- Environment variables - Easy switching between environments
- Response examples - Sample responses for each endpoint
Environment Setup
Create environments for different stages:
Production
{
"baseUrl": "https://samva.app/api/v1",
"apiKey": "sk_live_your_production_key"
}Development
{
"baseUrl": "https://samva.app/api/v1",
"apiKey": "sk_test_your_test_key"
}Quick Test
After setup, try sending a test request:
- Expand Email → Send Email
- Click Send
- Check the response