Skip to main content
Prerequisites You must have a valid sandbox secret and publishable key to follow this guide. Existing Terminal customers can get their sandbox keys from the Sandbox Dashboard. If you’re not a Terminal customer yet, you can connect with us here.

Overview

Getting data flowing takes three parts: a customer authenticates through Terminal Link, you exchange the token Link returns for a connection token, then you pull that connection’s data once its first sync finishes. The steps below run all three against the Sandbox provider, so you can test without a real telematics account.

Instructions

  1. Download our Postman collection and import it into Postman.
  2. Make a test connection.
    1. Launch Link to create a new connection. Replace {PUBLISHABLE_KEY} with your sandbox publishable key and open the Link URL below.
    2. Select the Sandbox provider.
    3. Enter any value as the API Key to create a connection.
      Any value works here, since this is a test connection in the sandbox environment and Link doesn’t check the API Key against a real telematics account. Enter invalid or permissions instead if you want to simulate a failed connection. See the Sandbox Environment guide for details.
    4. Wait to be redirected to the redirect_url with a token appended to the URL.
  3. Pull the connection’s data.
    1. Copy the public token from the redirected page.
    2. Exchange the public token for a long lived connection token. Call POST /public-token/exchange:
      Save the token from the response. It’s your connection token, and every request you make for this connection needs it in a Connection-Token header.
    3. Poll until the initial sync completes. Call GET /connections/current and check lastSync.status:
      Polling works fine for a quickstart, but for production traffic subscribe to sync.completed (and connection.created) webhooks instead so you’re not left waiting on a request.
    4. List the synced vehicles. Call GET /vehicles:
Congrats, you’ve completed the quickstart! You have a working connection in Sandbox and pulled its data.