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
- Your Trackpac API bearer token for authentication
Step-by-Step Guide
Step 1: Locate the OpenAPI Specification
The OpenAPI spec for Trackpac's API is available at the following URL: https://v2-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://v2-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://v2-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 a Bearer Token
- In Postman, find the collection that has been imported.
- Right-click on the collection and choose "Edit."
- Navigate to the "Authorization" tab.
- In the "Type" dropdown menu, select "Bearer Token."
- Paste your Trackpac API bearer token in the "Token" field.
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://v2-api.trackpac.io
. - Save your changes.
Congratulations! You have successfully imported Trackpac's API into Postman and configured it for authenticated requests. You can now proceed to test the API endpoints directly from Postman.