Importing Trackpac API into Postman
This guide will walk you through the process of importing Trackpac's OpenAPI specification into Postman. This allows you to easily test and explore Trackpac's API endpoints.
Prerequisites
- A working installation of Postman
- A Trackpac API key
Step-by-Step Guide
Step 1: Locate the OpenAPI Specification
The OpenAPI spec for Trackpac's API is available at: https://api.trackpac.io/openapi.json
Step 2: Import the OpenAPI Specification into Postman
Option 1: Direct URL Import
- Open Postman and click on the "Import" button located in the top-left corner of the application.
- Navigate to the "Link" tab.
- Paste the OpenAPI URL (
https://api.trackpac.io/openapi.json) in the provided field. - Click "Continue" and then "Import" to complete the process.
Option 2: File Import
- Download the OpenAPI JSON file from https://api.trackpac.io/openapi.json.
- Open Postman and click on "Import" in the top-left corner.
- Drag and drop the downloaded JSON file or browse to select it.
- Click "Import."
Step 3: Configure Authorization with an API Key
- In Postman, find the collection that has been imported.
- Right-click on the collection and choose "Edit."
- Navigate to the "Authorization" tab.
- Leave collection-level authorization unset unless a specific request requires bearer auth.
- Add an
X-API-Keyheader to the requests you want to run and set the value to your Trackpac API key.
Step 4: Configure the Base URL
- Still in the "Edit Collection" window, navigate to the "Variables" tab.
- Find the variable named
baseUrl. - Set the "Initial Value" and "Current Value" to
https://api.trackpac.io. - Save your changes.
You can now test Trackpac API endpoints in Postman using your X-API-Key header. Bearer-token auth is still available for older integrations, but API keys are the preferred option for new setups.