Postman Collection
Using the Sure Send Partner API with Postman
The Sure Send Partner API Postman Collection provides a convenient way to test and explore our API endpoints directly in Postman. This collection is automatically generated from our OpenAPI specification and includes all available endpoints with example requests.
Download the Collection
You can download the latest Postman collection here:
Download Sure Send Partner API Collection
Note: This collection is automatically updated whenever changes are made to the API. Always download the latest version for the most up-to-date endpoints.
Importing into Postman
Method 1: Import from File (Recommended)
- Download the collection using the link above
- Open Postman (download from postman.com if you don't have it)
- Click Import in the top-left corner
- Drag and drop the downloaded JSON file, or click Choose Files to browse
- Click Import to add the collection to your workspace
Method 2: Import from URL
- Open Postman
- Click Import in the top-left corner
- Select the Link tab
- Paste this URL:
https://api.suresend.ai/downloads/sure-send-partner-api.postman_collection.json - Click Continue and then Import
Setting Up Your Environment
After importing the collection, you'll need to configure authentication:
1. Create a Postman Environment
- Click the Environments tab in the left sidebar
- Click + Create Environment
- Name it "Sure Send API"
- Add the following variables:
| Variable Name | Type | Description | Example Value |
|---|---|---|---|
baseUrl | default | API base URL | https://api.suresend.ai/api/partner |
apiKey | secret | Your Partner API key | your_api_key_here |
- Click Save
2. Obtain Your API Key
If you don't have an API key yet:
- Log into your Sure Send account
- Navigate to Settings → Integrations → Partner API
- Click Generate API Key
- Copy the key and paste it into your Postman environment
Security Tip: Never share your API key or commit it to version control. Use Postman's "secret" variable type to keep it secure.
3. Configure the Collection
The collection should automatically use your environment variables. To verify:
- Select the Sure Send Partner API collection
- Go to the Variables tab
- Ensure it's using
{{baseUrl}}and{{apiKey}}from your environment - Select your Sure Send API environment from the dropdown in the top-right
Using the Collection
Authentication
All requests in the collection use Bearer token authentication. The API key is automatically included in the request headers:
Authorization: Bearer {{apiKey}}
Making Your First Request
Let's test the API by fetching the current user:
- Expand the Sure Send Partner API collection
- Navigate to User → Get Current User
- Ensure your environment is selected
- Click Send
- You should see your user information in the response
Example Request Flow
Here's a typical workflow for working with people:
- List People:
GET /api/partner/people- View all people in your account - Get Person Details:
GET /api/partner/people/:id- Get details for a specific person - Create Person:
POST /api/partner/people- Add a new person - Update Person:
PUT /api/partner/people/:id- Update person information - Delete Person:
DELETE /api/partner/people/:id- Remove a person
Working with Variables
The collection uses Postman variables to make testing easier:
- Collection Variables: Shared across all requests (e.g.,
baseUrl) - Environment Variables: Specific to your environment (e.g.,
apiKey) - Request Variables: Specific to individual requests (e.g.,
personId)
After creating a resource, you can save its ID for use in subsequent requests:
// In the Tests tab of a POST request
const response = pm.response.json();
pm.environment.set("personId", response.id);Then use it in the next request:
GET {{baseUrl}}/people/{{personId}}
Collection Structure
The collection is organized by resource types:
- People: Manage contacts and leads
- Companies: Manage company records
- Events: Track interactions and activities
- Tags: Organize records with labels
- Custom Fields: Work with custom data
- Webhooks: Manage webhook subscriptions
- User: Account and user information
Each folder contains the full CRUD operations (Create, Read, Update, Delete) where applicable.
Advanced Features
Pre-request Scripts
Some requests include pre-request scripts to:
- Generate timestamps
- Create unique identifiers
- Format data automatically
Tests
Many requests include automated tests that:
- Verify response status codes
- Validate response structure
- Check for required fields
- Store values for subsequent requests
You can run these tests by clicking Send and viewing results in the Test Results tab.
Bulk Testing with Collection Runner
To test multiple endpoints at once:
- Click the Runner button at the bottom of the sidebar
- Select the Sure Send Partner API collection
- Choose your environment
- Click Run Sure Send Partner API
- View results for all requests in sequence
Troubleshooting
Common Issues
401 Unauthorized Error
- Verify your API key is correct in the environment variables
- Ensure the environment is selected in the top-right dropdown
- Check that your API key hasn't expired
404 Not Found
- Verify the
baseUrlis correct:https://api.suresend.ai/api/partner - Check that the resource ID exists (for GET/PUT/DELETE requests)
- Ensure you're using the correct endpoint path
422 Unprocessable Entity
- Review the request body - required fields may be missing
- Check the API documentation for field requirements
- Verify data types match the schema (e.g., strings, integers)
500 Internal Server Error
- Contact Sure Send support at [email protected]
- Include the request details and timestamp
Getting Help
If you encounter issues not covered here:
- Check the API Documentation for endpoint details
- Review the Authentication Guide for setup help
- Contact support at [email protected] with:
- The request you're trying to make
- The error message received
- Your account identifier (not your API key)
Keeping the Collection Updated
The Postman collection is automatically generated from our OpenAPI specification. When we add new endpoints or update existing ones:
- Re-download the collection from the link above
- Re-import into Postman (this will update existing requests)
- Your environment variables and custom scripts will be preserved
Tip: Set a reminder to check for updates monthly, or subscribe to our API Changelog for notifications.
Best Practices
- Use Environments: Keep separate environments for development, staging, and production
- Save Responses: Use Postman's "Save Response" feature for reference
- Document Custom Scripts: Add comments to any custom pre-request or test scripts
- Share with Team: Export your configured collection and environment (without secrets) for team members
- Version Control: Keep track of which collection version you're using
Additional Resources
- Partner API Documentation
- Getting Started Guide
- Authentication Guide
- Webhooks Guide
- Postman Learning Center
Support
For API-related questions or issues:
- Email: [email protected]
- Documentation: https://sure-send.readme.io
- Status Page: https://status.suresend.ai
Updated 9 days ago
