Postman Collection
Get started quickly with our pre-configured Postman collection. Includes example requests for all scenarios and coverage types.
What's Included
Organized Folders
Requests organized into logical folders: Tax Calculations, Special Coverage Types, and Error Examples.
Pre-Built Examples
Ready-to-use examples for all 52 jurisdictions and special coverage scenarios like wet marine and fire insurance.
Environment Variables
Pre-configured variables for base URL and API key - just add your credentials and start testing.
Error Scenarios
Example requests that trigger common errors so you can test your error handling logic.
Quick Start Guide
-
Download the Collection
Click the download button above to get the
postman_collection.jsonfile. -
Open Postman
Launch Postman and click Import in the top left corner.
-
Import the Collection
Drag the downloaded file into Postman or click Upload Files and select it.
-
Set Your API Key
Edit the collection variables and replace
your_api_key_herewith your actual API key from app.surpluslinesapi.com. -
Start Testing
Open any request, click Send, and see the results!
Environment Variables
The collection uses these variables that you can customize:
| Variable | Default Value | Description |
|---|---|---|
baseUrl |
https://api.surpluslinesapi.com/v1 |
API base URL (production server) |
apiKey |
your_api_key_here |
Your API key from the dashboard |
Setting Variables
Click on the collection name, go to the Variables tab, and update the apiKey current value with your key.
Available Requests
Tax Calculations
4Special Coverage Types
7Error Examples
4Alternative Import Methods
Import via URL
You can also import directly from a URL in Postman:
https://surpluslinesapi.com/docs/postman/postman_collection.json
Import from OpenAPI
Alternatively, import the OpenAPI specification to auto-generate a collection:
- Go to Import in Postman
- Select Link tab
- Enter:
https://surpluslinesapi.com/docs/openapi/surpluslines-openapi.json - Click Continue and Import
Note
The pre-built Postman collection includes more example scenarios than the OpenAPI import. We recommend using the dedicated collection for the best experience.