POST
/
connections

For most use cases we recommend using the Link UI to create connections.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
credentials
object
required
provider
enum<string>
required
Available options:
geotab
agreements
object[]

The agreements to link the connection to.

backfill
object

Optional backfill to be requested upon successful connection. Will start from NOW if not provided.

company
object
externalId
string
syncMode
enum<string>
default:
automatic

Enum values:

  • automatic: Terminal will keep this connections data up to date
  • manual: Terminal will only sync data upon request
Available options:
automatic,
manual
tags
string[]

Response

201 - application/json

The connection your application has with your customer's TSP.

company
object
required
createdAt
string
required
id
string
required
provider
object
required
status
enum<string>
required

Enum values:

  • connected: active and authenticated connection
  • disconnected: connection is no longer authenticated - please ask your user to link the account again
  • archived: connection has been archived from view - attempts to re-connect will cause us to check the connection status again
Available options:
connected,
disconnected,
archived,
pending_deletion
syncMode
enum<string>
default:
automatic
required

Enum values:

  • automatic: Terminal will keep this connections data up to date
  • manual: Terminal will only sync data upon request
Available options:
automatic,
manual
token
string
required

This token is used when interacting with a connections' data.

updatedAt
string
required
externalId
string

An optional ID from your system that can be used to reference connections.

The URL to send your user to in order to have them re-authenticate the connection.

sourceId
string

The ID used in the source system to represent the account this connection has access to.

This may be an organizationId or accountId.

Note: not all systems expose this information, in which case it may be undefined.

tags
string[]

An optional list of tags from your system that can be used to reference connections.