Skip to content

terminal-api/postman

Repository files navigation

Terminal Postman Collection

Usage 🚀

  1. Install Postman if you haven't already
  2. Download the generated collection here
  3. Import the collection into Postman
  4. Setup a Postman environment for both Sandbox + Production (learn more):
    • Sandbox:
      • Download the template sandbox environment here
      • Import environment into Postman
      • Set secretKey to your Terminal Sandbox Secret key
    • Production:
      • Download the template production environment here
      • Import environment into Postman
      • Set secretKey to your Terminal Production Secret key
  5. Select the environment you want to use in the top right corner of Postman
  6. Make requests!

Getting Started Video 🎥

Here's a video that shows you how you can get started with Terminal

Variables

This collection uses the following variables to make it easy to chain requests together:

  • baseUrl
  • secretKey
  • connectionToken
  • vehicleId
  • driverId
  • syncId

Note: You can set these variables in your environment or collection. Some will be set automatically for you based on the response of previous requests.

Connection Tokens

Terminal uses connection tokens to authenticate requests targeting a specific connection. Please set a connectionToken variable in your environment variables if you'd like to act on a specific connection. You can retrieve connection tokens in the dashboard or by calling GET /connections.

Note: When calling POST /public-token/exchange the connection token is set automatically for you upon successful exchange.

Development ⚒️

Setup Project

Setup the project if you haven't already:

git clone [email protected]:terminal-api/postman.git
npm install

Generate Collection

Generate the collection using the following command:

npm run generate

About

Postman workspace for Terminal's API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •