Connecting to Freightview's API with Postman (v2)

Connecting to Freightview's API with Postman (v2)

Want to connect Freightview to your existing software? With Freightview’s v2 API, customers can access quotes, book shipments, and track freight directly from their own systems—including ERPs, e-commerce platforms, shopping carts, and custom-built tools.

If you’re not a developer, don’t worry. Postman makes it easy to test API requests visually without writing a line of code. In this guide, we’ll walk through how to authenticate with Freightview’s API and make your first API request using Postman.

About Freightview’s API

Freightview’s v2 API is RESTful and uses standard JSON payloads, making it straightforward to integrate with most modern applications and development environments.

Our Developer Documentation provides detailed information about available endpoints, request parameters, response formats, and more.

For this guide, we’ll focus on the basics:

  • Obtaining your Freightview API credentials
  • Generating an access token
  • Authenticating API requests
  • Testing an API request in Postman
  • Getting started with Freightview Webhooks

Getting Started: API Authentication

Freightview’s v2 API uses the OAuth 2.0 Client Credentials authentication workflow.

The process is simple:

  1. Generate your client_id and client_secret in Freightview.
  2. Send those credentials to the /v2.0/auth/token endpoint.
  3. Receive a Bearer access token that is valid for 24 hours.
  4. Include that Bearer token with your subsequent API requests.

If authentication is missing or invalid, the API will return a 401 Unauthorized response.

Keep your credentials secure: Your client_secret should never be exposed in client-side applications, public repositories, or shared with unauthorized users.

Step 1: Obtain Your API Credentials

Before you can make API requests, you’ll need your Freightview v2 API credentials.

  1. Log in to Freightview.
  2. Go to Settings using the gear icon.
  3. Select API Integration.
  4. Open the API Credentials for v2 tab.
  5. Copy your client_id.
  6. Generate and copy your client_secret.

Important: Treat your client_secret like a password. Store it securely and don't include it in screenshots, documentation, or publicly accessible code.


Step 2: Generate an Access Token

Once you have your credentials, you’ll use them to request an access token from Freightview.

The authentication endpoint is:

POST https://api.freightview.com/v2.0/auth/token

The request requires three pieces of information:

{
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET",
  "grant_type": "client_credentials"
}

Optional: Test with cURL

If you’re comfortable using a terminal, you can quickly test your credentials with cURL:

curl -X POST https://api.freightview.com/v2.0/auth/token \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "grant_type": "client_credentials"
  }'

A successful request will return a JSON response containing your access_token.


Step 3: Generate an Access Token in Postman

If you prefer a visual interface, Postman is a popular tool for testing APIs.

Create the authentication request

  1. Open Postman and create a new request.
  2. Set the HTTP method to POST.
  3. Enter the following URL:https://api.freightview.com/v2.0/auth/token
  4. Open the Headers tab and make sure the following header is included:Content-Type: application/json
  5. Open the Body tab.
  6. Select raw and choose JSON from the format dropdown.
  7. Enter your API credentials:
{
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET",
  "grant_type": "client_credentials"
}
  1. Click Send.

A successful request will return a 200 OK response containing your access_token.

Keep your token handy

Your access token is valid for 24 hours.

The /v2.0/auth/token endpoint is also limited to 5 requests per minute, so production applications should cache and reuse the access token rather than requesting a new token with every API call.


Step 4: Make an Authenticated API Request

Now that you have an access token, you can use it to authenticate requests to Freightview’s v2 API.

For this example, we'll use the LTL shipment endpoint.

Set up your request

  1. Open a new request in Postman.
  2. Set the HTTP method to POST.
  3. Enter:https://api.freightview.com/v2.0/shipments/ltl
  4. Open the Authorization tab.
  5. Set Auth Type to Bearer Token.
  6. Paste your access_token into the Token field.

Postman will automatically add the appropriate authorization header to your request.

Alternatively, you can add the header manually under the Headers tab:

Authorization: Bearer YOUR_ACCESS_TOKEN

  1. Under Headers, make sure the following is included:Accept: application/json
  2. Open the Body tab.
  3. Select rawJSON.
  4. Enter the request payload required for the endpoint you're using. You can find the required fields and examples in the Freightview Developer Documentation.
  5. Click Send.

A successful request will return a 200 OK response along with the appropriate shipment, quote, or other API response data.

What's Next?

Once you've successfully authenticated and made an API request, you can begin exploring the rest of Freightview's v2 API.

Depending on your integration, you can use the API to:

  • Retrieve freight quotes
  • Create shipments
  • Edit shipments
  • Cancel shipments
  • Track shipments
  • Work with LTL, parcel, and truckload functionality
  • Connect Freightview with your ERP, e-commerce platform, or other business systems

For a complete list of available endpoints and request requirements, visit the Freightview Developer Documentation.


API Webhooks: Get Real-Time Updates

API requests aren't the only way to connect Freightview with your systems. Freightview Webhooks provide real-time updates.

For example, you can use webhooks to trigger downstream workflows when a shipment is:

  • Booked
  • Picked up
  • Delivered
  • Updated

Setting up Webhooks

To configure a webhook:

  1. Navigate to Settings > API Integration > Webhooks in Freightview.
  2. Enter the listener URL where you want Freightview to send event notifications.
  3. Configure your webhook according to your integration requirements.

Freightview signs each webhook payload using a unique signing secret. The signature is sent in the x-freightview-signature header, allowing your system to verify that the request originated from Freightview and hasn't been altered in transit.

For more information about available webhook events, payloads, and implementation details, visit the Freightview Developer Documentation.


Ready to Connect?

Whether you're building a custom integration or connecting Freightview to an existing business system, the v2 API gives you the flexibility to bring freight quoting, shipping, and tracking directly into your workflow.

Have questions about getting started? Check out the Freightview Developer Documentation for technical details and API reference information.

Contact our Support Team for further questions & assistance.