Terminal provides a hosted ‘Link’ that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.
Adding Your Logo
Link shows your logo to every fleet that connects. Manage it yourself in the Dashboard.
Choose Upload Logo and pick a PNG, JPEG, or WebP up to 3 MB. The Dashboard trims empty space around the artwork and shows a preview before you upload.
Use it as your default logo. Link shows the default unless a Consent Template chooses its own.
Your logo library keeps every logo you upload. You can replace a logo’s image, change which one is the default, or delete one you no longer use. A logo that is still in use can only be deleted once the templates that chose it switch to another logo, which the Dashboard offers to do for you.Members, developers, and admins can manage logos. Viewers can see them but not change them.
Accessing Terminal Link
Terminal Link is a user-friendly, hosted page designed to facilitate authentication with any telematics provider. It provides a simple, self-serve flow for customers or partners to connect their telematics accounts.You have two options to integrate Terminal Link into your application:
Directly link to the hosted page.
Embed it within your application using one of our SDKs.
React SDK
JS SDK
Hosted Page
Terminal provides a React hook that makes it easy to embed the link in your application.View the package on NPM here: @terminal-api/link-react
Installation
npm install @terminal-api/link-react
Cross-Origin-Opener-Policy Header
If your application sends a Cross-Origin-Opener-Policy (COOP) header, set it
to:
This setting allows Terminal Link to communicate with provider OAuth popups
during authentication.
Usage
Creating a Connection
Terminal handles capturing, validating and securely storing customer’s credentials to ensure that each TSP integration is as consistent as possible.Here’s an overview of the steps involved when using the React hook:Steps
Initialize auth link with desired options (see available options below)
Open link and wait for user to complete authentication
In certain scenarios, connections may become disconnected. This can occur when customers modify their password or withdraw access.In such cases, Terminal updates the Connection status to disconnected and prompts you to reauthenticate the customer’s TSP to continue syncing.The reauthentication process mirrors the link flow, but requires the connectionId parameter to specify which connection needs to be updated.
Examples
import { useCallback } from 'react';import { useTerminalLink } from '@terminal-api/link-react';const MyComponent = () => { const api = useYourBackendApi(); // if you are defining the function inside the component // make sure to wrap it in useCallback const exchangeToken = useCallback( async ({ publicToken }: { publicToken: string }) => { // Send the public token to your backend to exchange for a connection token // and store it in your database. return await api.post('/api/terminal', { publicToken }); }, [api], ); const terminal = useTerminalLink({ // production or sandbox publishable key from the Terminal dashboard publishableKey: process.env.REACT_APP_TERMINAL_PUBLISHABLE_KEY, onSuccess: exchangeToken, params: { // optional parameters externalId: 'my-external-id', }, }); return ( <div> <button onClick={() => terminal.open()} disabled={terminal.isOpen}> Setup Telematics Integration </button> <button onClick={() => terminal.close()} disabled={!terminal.isOpen}> Close Terminal Link </button> <button onClick={() => terminal.open({ params: { provider: 'geotab' } })}> Setup Geotab Integration </button> <button onClick={() => terminal.open({ params: { externalId: '1234' } })}> Setup Integration with Custom Parameters </button> </div> );};export default MyComponent;
import React from 'react';import { useTerminalLink } from '@terminal-api/link-react';const MyComponent = ({ onSuccess }: { onSuccess: () => void }) => { const terminal = useTerminalLink({ // production or sandbox publishable key from the Terminal dashboard publishableKey: process.env.REACT_APP_TERMINAL_PUBLISHABLE_KEY, connectionId: 'conn_01GSKTHCD24NRZ2SBJTPZBCQ1R', onSuccess, // token exchange is optional for re-authentication }); return ( <button onClick={() => terminal.open()} disabled={terminal.isOpen}> Setup Telematics Integration </button> );};export default MyComponent;
Available Options
The link SDK provides a number of options to customize the behavior of the link.
string
required
Your publishable key.
string
Optional connection ID to update. If not provided, a new connection will be
created.
string
Base URL for the link. Defaults based on the publishable key (production or
sandbox).
(data: { publicToken: string }) => void
Called when link is successfully completed.
() => void
Called when the link is exited by the user.
() => void
Called when the link is opened.
() => void
Called when the link is closed.
Link Parameters
Show params
'automatic' | 'manual'
Optional override for the sync mode. Defaults to account’s default sync mode.
Company
Show company
string
Name of the company to associate with the connection.
string
Optional external ID to associate with the connection (e.g., your organization ID). You can learn more about External IDs here.
string[]
A list of tags that can be used to associate searchable references or categories to your connections. (e.g., ['organizationId', 'Business Unit A']). You can learn more about tags here.
string
Filters the providers shown in Link to the specified provider code (e.g., geotab). Must be a supported provider code.
string[]
Moves the specified providers to the top of Link’s provider selection list. Each value must be a supported provider code (e.g., geotab).
Backfill Config
Show backfill
number
Number of days for backfill. Defaults to 0.
string
Date to start backfilling from. Defaults to current date.
string
Optional template ID to apply to the connection. If provided, the template’s
settings will be used for branding, custom agreements, and default values.
Learn more in the Consent Templates guide.
Terminal provides a javascript SDK that makes it easy to embed the link in your application.View the package on NPM here: @terminal-api/link-sdk
This setting allows Terminal Link to communicate with provider OAuth popups
during authentication.
Usage
Creating a Connection
Terminal handles capturing, validating and securely storing customer’s credentials to ensure that each TSP integration is as consistent as possible.Here’s an overview of the steps involved when using the JS SDK:Steps
Initialize auth link with desired options (see available options below)
Open link and wait for user to complete authentication
In certain scenarios, connections may become disconnected. This can occur when customers modify their password or withdraw access.In such cases, Terminal updates the Connection status to disconnected and prompts you to reauthenticate the customer’s TSP to continue syncing.The reauthentication process mirrors the link flow, but requires the connectionId parameter to specify which connection needs to be updated.
Examples
// import if using package or will be globally available if installed via script tagimport { TerminalLink } from '@terminal-api/link-sdk';async function exchangePublicToken(publicToken) { // provide the public token to your backend to exchange for a Terminal connection token // store the Terminal connection token in your database to use for future Terminal API requests const response = await fetch('/api/create-terminal-connection', { method: 'POST', body: JSON.stringify({ publicToken }), }); return response.json();}const link = TerminalLink.initialize({ // production or sandbox publishable key from the Terminal dashboard publishableKey: process.env.TERMINAL_PUBLISHABLE_KEY, onSuccess: (result) => exchangePublicToken(result.publicToken),});link.open();
// import if using package or will be globally available if installed via script tagimport { TerminalLink } from '@terminal-api/link-sdk';async function exchangePublicToken(publicToken) { // provide the public token to your backend to exchange for a Terminal connection token // store the Terminal connection token in your database to use for future Terminal API requests const response = await fetch('/api/create-terminal-connection', { method: 'POST', body: JSON.stringify({ publicToken, }), }); return response.json();}const link = TerminalLink.initialize({ // production or sandbox publishable key from the Terminal dashboard publishableKey: process.env.TERMINAL_PUBLISHABLE_KEY, connectionId: 'conn_01GSKTHCD24NRZ2SBJTPZBCQ1R', onSuccess: (result) => exchangePublicToken(result.publicToken),});link.open();
Available Options
The link SDK provides a number of options to customize the behavior of the link.
string
required
Your publishable key.
string
Optional connection ID to update. If not provided, a new connection will be
created.
string
Base URL for the link. Defaults based on the publishable key (production or
sandbox).
(data: { publicToken: string }) => void
Called when link is successfully completed.
() => void
Called when the link is exited by the user.
() => void
Called when the link is opened.
() => void
Called when the link is closed.
Link Parameters
Show params
'automatic' | 'manual'
Optional override for the sync mode. Defaults to account’s default sync mode.
Company
Show company
string
Name of the company to associate with the connection.
string
Optional external ID to associate with the connection (e.g., your organization ID). You can learn more about External IDs here.
string[]
A list of tags that can be used to associate searchable references or categories to your connections. (e.g., ['organizationId', 'Business Unit A']). You can learn more about tags here.
string
Filters the providers shown in Link to the specified provider code (e.g., geotab). Must be a supported provider code.
string[]
Moves the specified providers to the top of Link’s provider selection list. Each value must be a supported provider code (e.g., geotab).
Backfill Config
Show backfill
number
Number of days for backfill. Defaults to 0.
string
Date to start backfilling from. Defaults to current date.
string
Optional template ID to apply to the connection. If provided, the template’s
settings will be used for branding, custom agreements, and default values.
Learn more in the Consent Templates guide.
The easiest way to get started with Terminal is to redirect your users to our hosted link. This is a great option if you don’t want to embed the link in your application or if you are using a language that we don’t have an SDK for.We will handle the entire authentication flow and redirect the user back to your application when they are done.
Usage
Creating a Connection
Terminal handles capturing, validating and securely storing customer’s credentials to ensure that each TSP integration is as consistent as possible. Here’s an overview of the steps involved in that flow.Steps
Create auth link with desired options (see available options below)
Ask user to login to their TSP and direct to link
User is redirected back to the redirect_url with the following paramaters:
result: Indicates the outcome of the authentication process. It will be either:
success: The user successfully authenticated.
exit: The user exited the authentication process without completing it.
token: A public token that is provided when result === success. This token is used to exchange for a connection token on your backend.
state: An opaque value that you can set in the link params for additional security:
If provided in the initial request, it will be returned unchanged.
You should compare the returned state with the one you initially set.
If they don’t match, it may indicate a potential security issue (e.g., a CSRF attack), and you should abort the authentication process.
Pass public token to your backend and exchange public token for a connection token
Wait for initial sync to complete by either:
Polling /connections/current until sync is complete
There are rare times where connections may get disconnected. Common reasons for this include when customers change their password or revoke access.When this happens - Terminal will update the status of the Connection to disconnected and prompt you to reauthenticate the customer’s TSP in order to resume syncing.Reauthentication is similar to the link flow but includes the connectionId in the URL path to denote which connection you would like to update.Steps
Get re-auth link for disconnected connection (see example below)
Explain to user they need to enter their credentials again and direct them to link to perform authentication
Resume ingesting data after catch up sync completes
Example Link
Here’s an example of a Link URL for re-authenticating existing connections:
Special NoteDuring re-auth, you must link the same TSP account. Should your customer want to change accounts then they will need to create a new connection
Available Options
You can use the following options when directing customers to the link in order to control behaviour. Please note these settings do not apply to the re-authentication flow.
Base URL
The base URL for the link is determined by the environment you are using. You can use the following table to determine which environment you should use.Our SDKs automatically determine the correct base URL based on the publishable key you provide.
The following options can be appended as query parameters to the link URL in order to modify the settings of the resulting connection.
string
required
Your application’s publishable keyExample: pk_prod_SDFsdflokjsdfloiLKDNF
string<uri>
Where you want to direct users after they succesfully complete or exit the link flow. This is required for initial authentication in order to exchange the public token but is optional during re-authentication.Example: https://app.example.com/telematics-success
string
Optional state parameter for maintaining application state and preventing CSRF
attacks. This opaque value is returned unchanged, allowing verification of the
request source. It should be unique for each flow initiation.
string
A friendly name to give the resulting connection - if not provided, we will
attempt to pull this from the TSP
string
ID field to reference an identifier from your system with the resulting
connection. You can learn more about External IDs
here.
string
A list of tags that can be used to associate searchable references or
categories to your connections. Tags can be passed as a string of
comma-separated values. You can learn more about tags
here.
string
Filters the providers shown in Link to the specified provider code (e.g., geotab). Must be a supported provider code.Example: geotab
string
Moves the specified providers to the top of Link’s provider selection list. Each value must be a supported provider code (e.g., geotab).Example: isaac
string
default:"automatic"
Whether to automatically schedule future syncing after the initial syncAllowed values: automaticmanual
number
default:"0"
Number of days of historical data to backfill (can not use alongside
backfill_start_from)
string<date-time>
ISO8601 date to start backfilling from (can not use alongside backfill_days)
string
default:"default"
Link template ID to use for the hosted Link flow. If omitted, Terminal uses
your application’s default template. Templates can configure branding, custom
agreements, redirect defaults, sync mode defaults, backfill defaults, required
external IDs, and default tags.Learn more in the Consent Templates guide.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Terminal","colors":{"primary":"#0C5DFF","light":"#4684FF","dark":"#0C5DFF"},"logo":{"light":"https://mintcdn.com/terminal-docs/Pfa4hlnVUUtjY2OJ/logo/light.svg?fit=max\u0026auto=format\u0026n=Pfa4hlnVUUtjY2OJ\u0026q=85\u0026s=9cef1cf6544af4b9a6af143a7ca8a7b8","dark":"https://mintcdn.com/terminal-docs/Pfa4hlnVUUtjY2OJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=Pfa4hlnVUUtjY2OJ\u0026q=85\u0026s=9eb834794ce0fccc722a09696c1c47a0"},"favicon":"https://mintcdn.com/terminal-docs/XMROIdknlI2ksy8J/favicon.png?fit=max\u0026auto=format\u0026n=XMROIdknlI2ksy8J\u0026q=85\u0026s=aa609b3517927b87b7f41bde9523eba8","api":{"openapi":"terminal.openapi.json","playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.withterminal.com/tsp/v1"}},"appearance":{"default":"system"},"background":{"color":{"light":"#FFFFFF","dark":"#00173E"}},"navbar":{"primary":{"type":"button","label":"Book a Demo","href":"https://calendly.com/d/d2tk-y35-kb2/discovery-call"}},"footer":{"socials":{"website":"https://www.withterminal.com/","linkedin":"https://www.linkedin.com/company/terminal-api"}},"fonts":{"heading":{"family":"Britti Sans","weight":600,"source":"fonts/britti-sans-semibold.woff2","format":"woff2"},"body":{"family":"Inter"}},"integrations":{"posthog":{"apiKey":"phc_DOA2tdBw0QwwhIudbHy0FjnOESXJoSsnqgZbJ4hFK4j"},"cookies":{"key":"TERMINAL_COOKIE_CONSENT_STATUS","value":"CONSENTED"}},"contextual":{"options":["copy","chatgpt","claude","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"terminal-docs","hasAudioNarration":false,"actualSubdomain":"terminal-docs","customDomains":["docs.withterminal.com"],"gitSource":{"type":"github","owner":"terminal-api","repo":"terminal","deployBranch":"main","contentDirectory":"packages/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afe197c6423287f36ac02c9","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"Supported Providers","count":355},{"language":"default","tag":"Provider Details","count":353},{"language":"default","tag":"API Reference","count":87},{"language":"default","tag":"Common Models","count":48},{"language":"default","tag":"Documentation","count":40},{"language":"default","tag":"Webhook Events","count":33},{"language":"default","tag":"Working With Data","count":13},{"language":"default","tag":"Time Series Data","count":11},{"language":"default","tag":"Connect Your Customers","count":10},{"language":"default","tag":"Data Management","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":":root{--terminal-primary: rgb(var(--primary));--terminal-primary-text: rgb(var(--primary));--terminal-primary-hover: #0050f0;--terminal-destructive: #d91f1f;--terminal-error-foreground: #a81818;--terminal-destructive-hover: var(\n --terminal-error-foreground\n );--terminal-error-background: #fff1f1;--terminal-navy: #00173e;--terminal-border: #00173e14;--terminal-border-dark: #ffffff1f;--terminal-radius: 0.25rem}.dark{--terminal-primary-text: rgb(var(--primary-light));--terminal-destructive: #ff2929;--terminal-destructive-hover: #ff5c5c}@font-face{font-family:'Britti Sans Fallback';src:local('Arial'), local('Liberation Sans');ascent-override:78.01%;descent-override:19.5%;line-gap-override:0%;size-adjust:102.55%}body{color:var(--terminal-navy);font-family:Inter, ui-sans-serif, system-ui, sans-serif}h1,h2,h3,h4,h5,h6{color:var(--terminal-navy)!important;font-family:'Britti Sans', 'Britti Sans Fallback', Inter, ui-sans-serif, system-ui,\n sans-serif}a[class*=\"focus:outline-primary\"]:focus-visible{outline-offset:-2px!important}button,input,select,textarea,[role=\"button\"],[class*=\"button\"],[class*=\"Button\"],[class*=\"card\"],[class*=\"Card\"],[class*=\"callout\"],[class*=\"Callout\"]{border-radius:var(--terminal-radius)!important}[role=\"group\"]>button:not(:only-child),[role=\"group\"]>[role=\"button\"]:not(:only-child),[class*=\"button-group\"]>button:not(:only-child),[class*=\"ButtonGroup\"]>button:not(:only-child){border-radius:0!important}[role=\"group\"]>button:first-child:not(:only-child),[role=\"group\"]>[role=\"button\"]:first-child:not(:only-child),[class*=\"button-group\"]>button:first-child:not(:only-child),[class*=\"ButtonGroup\"]>button:first-child:not(:only-child){border-top-left-radius:var(--terminal-radius)!important;border-bottom-left-radius:var(--terminal-radius)!important}[role=\"group\"]>button:last-child:not(:only-child),[role=\"group\"]>[role=\"button\"]:last-child:not(:only-child),[class*=\"button-group\"]>button:last-child:not(:only-child),[class*=\"ButtonGroup\"]>button:last-child:not(:only-child){border-top-right-radius:var(--terminal-radius)!important;border-bottom-right-radius:var(--terminal-radius)!important}button[class*=\"border-r-0\"]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}button[class*=\"border-r-0\"]+button{border-top-left-radius:0!important;border-bottom-left-radius:0!important}[class*=\"card\"],[class*=\"Card\"],[class*=\"callout\"],[class*=\"Callout\"],[class*=\"step\"],[class*=\"Step\"]{border-color:var(--terminal-border)!important}.dark [class*=\"card\"],.dark [class*=\"Card\"],.dark [class*=\"callout\"],.dark [class*=\"Callout\"],.dark [class*=\"step\"],.dark [class*=\"Step\"]{border-color:var(--terminal-border-dark)!important}.dark body,.dark h1,.dark h2,.dark h3,.dark h4,.dark h5,.dark h6,.dark #navigation-items a[aria-current=\"page\"],.dark div.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"],.dark a.nav-anchor[aria-current=\"location\"],.dark .eyebrow,.dark ul.toc li.toc-item[data-active]>a,.dark [data-component-part=\"code-group-tab-bar\"] [role=\"tab\"][aria-selected=\"true\"],.dark [data-component-part=\"update-label\"],.dark [data-component-part=\"tabs-list\"] [data-component-part=\"tab-button\"][data-active=\"true\"]{color:#fff!important}.dark [data-component-part=\"tabs-list\"] [data-component-part=\"tab-button\"][data-active=\"true\"]{border-bottom-color:rgb(var(--primary-light))}.dark [data-component-part=\"tabs-list\"] [data-component-part=\"tab-button\"][data-active=\"false\"]{color:#9fa1a6}.dark #navigation-items a[aria-current=\"page\"]{box-shadow:inset 2px 0 0 rgb(var(--primary-light))}html:not(.dark) [data-component-part=\"field-required-pill\"]{background-color:var(--terminal-error-background);color:var(--terminal-error-foreground)}.dark #navigation-items a[aria-current=\"page\"] .bg-\\[\\#2AB673\\]{background-color:#18804f}.dark #navigation-items a[aria-current=\"page\"] .bg-\\[\\#DA622B\\]{background-color:#b8521d}@layer utilities{.dark div.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"] a{color:#93c5fd!important}}.dark details.accordion{background-color:var(--terminal-navy)!important}.dark details.accordion>summary:hover{background-color:rgba(255, 255, 255, 0.06)!important}#topbar-cta-button a{border-radius:var(--terminal-radius)!important}#topbar-cta-button a span.rounded-xl{border-radius:var(--terminal-radius)!important}.provider-explorer{margin-bottom:2rem}.provider-explorer-sticky{position:sticky;top:120px;z-index:20;background:#fff;padding-top:8px;padding-bottom:4px;margin:0 -2px;padding-left:2px;padding-right:2px}@media (min-width: 1024px){.provider-explorer-sticky{top:64px}}.dark .provider-explorer-sticky{background:rgb(var(--background-dark))}.provider-explorer-toggle{display:flex;align-items:center;gap:4px;width:100%;padding:8px 0;margin-top:8px;background:none;border:none;border-top:1px solid #e5e7eb;cursor:pointer;color:#374151;font-size:14px;font-weight:600;transition:color 0.15s}.dark .provider-explorer-toggle{border-top-color:#374151;color:#d1d5db}.provider-explorer-toggle:hover{color:var(--terminal-primary-text)}.provider-explorer-toggle-label{display:flex;align-items:center;gap:8px}.provider-explorer-toggle-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:600;border-radius:var(--terminal-radius);background:var(--terminal-primary);color:#fff;line-height:1}.provider-explorer-toggle-chevron{transition:transform 0.2s;color:#9ca3af;flex-shrink:0}.provider-explorer-toggle-chevron.open{transform:rotate(90deg)}.provider-explorer-collapsible{padding-bottom:4px}.provider-explorer-input-wrapper{position:relative;display:flex;align-items:center}.provider-explorer-icon{position:absolute;left:12px;width:20px;height:20px;color:#9ca3af;pointer-events:none}.provider-explorer-input{width:100%;padding:12px 40px 12px 44px;font-size:16px;border:1px solid var(--terminal-border);border-radius:var(--terminal-radius);outline:none;transition:border-color 0.15s,\n box-shadow 0.15s;background-color:#fff}.dark .provider-explorer-input{background-color:rgb(var(--background-dark));border-color:#374151;color:#f9fafb}.provider-explorer-input:focus{border-color:var(--terminal-primary);box-shadow:0 0 0 3px rgb(var(--primary) / 0.15)}.provider-explorer-input::placeholder{color:#9ca3af}.provider-explorer-clear{position:absolute;right:8px;padding:4px;background:none;border:none;cursor:pointer;color:#9ca3af;display:flex;align-items:center;justify-content:center;border-radius:var(--terminal-radius);transition:color 0.15s,\n background-color 0.15s}.provider-explorer-clear:hover{color:#6b7280;background-color:#f3f4f6}.dark .provider-explorer-clear:hover{color:#d1d5db;background-color:#374151}.provider-explorer-clear svg{width:20px;height:20px}.provider-explorer-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.provider-explorer-filters-label{font-size:13px;color:#6b7280;margin-right:4px}.dark .provider-explorer-filters-label{color:#9ca3af}.provider-explorer-filter-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.provider-explorer-chip-group{display:contents}.provider-explorer-chip-divider{width:1px;height:16px;background:#d1d5db;margin:0 2px;flex-shrink:0}.dark .provider-explorer-chip-divider{background:#4b5563}.provider-explorer-chip{padding:4px 10px;font-size:12px;font-weight:500;border:1px solid #bfdbfe;border-radius:var(--terminal-radius);background:#eff6ff;color:#1e40af;cursor:pointer;transition:all 0.15s}.dark .provider-explorer-chip{background:rgba(59, 130, 246, 0.15);border-color:#3b82f6;color:#93c5fd}.provider-explorer-chip:hover{border-color:var(--terminal-primary);color:var(--terminal-primary-text)}.provider-explorer-chip.active{background:var(--terminal-primary);border-color:var(--terminal-primary);color:#fff}.provider-explorer-chip-special{border-style:dashed;background:#fef3c7;border-color:#d97706;color:#92400e}.dark .provider-explorer-chip-special{background:rgba(217, 119, 6, 0.15);border-color:#d97706;color:#fbbf24}.provider-explorer-chip-special:hover{border-color:#b45309;color:#b45309}.provider-explorer-chip-special.active{background:#d97706;border-color:#d97706;border-style:solid;color:#fff}.provider-explorer-clear-all{padding:4px 10px;font-size:12px;color:var(--terminal-destructive);background:none;border:none;cursor:pointer;transition:color 0.15s}.provider-explorer-clear-all:hover{color:var(--terminal-destructive-hover);text-decoration:underline}.provider-explorer-select{padding:4px 24px 4px 8px;font-size:12px;font-weight:500;border:1px solid #e5e7eb;border-radius:var(--terminal-radius);background:#fff;color:#374151;cursor:pointer;outline:none;appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 5l3 3 3-3'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right 6px center;transition:border-color 0.15s,\n box-shadow 0.15s}.dark .provider-explorer-select{background-color:rgb(var(--background-dark));border-color:#374151;color:#d1d5db;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M3 5l3 3 3-3'/%3E%3C/svg%3E\")}.provider-explorer-select:focus{border-color:var(--terminal-primary);box-shadow:0 0 0 2px rgb(var(--primary) / 0.15)}.provider-explorer-select.active{border-color:var(--terminal-primary);background-color:#eff6ff;color:#1e40af}.dark .provider-explorer-select.active{background-color:rgba(59, 130, 246, 0.15);border-color:#3b82f6;color:#93c5fd}.provider-explorer-results-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0 8px}.provider-explorer-count{font-size:14px;color:#6b7280}.dark .provider-explorer-count{color:#9ca3af}.provider-explorer-count-number{font-size:20px;font-weight:700;color:#111827}.dark .provider-explorer-count-number{color:#f9fafb}.provider-explorer-empty{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:48px 24px;color:#6b7280}.dark .provider-explorer-empty{color:#9ca3af}.provider-explorer-empty p{margin:0}.provider-explorer-empty-button{padding:8px 16px;font-size:14px;color:var(--terminal-primary-text);background:none;border:1px solid var(--terminal-primary);border-radius:var(--terminal-radius);cursor:pointer;transition:background-color 0.15s,\n color 0.15s}.provider-explorer-empty-button:hover{background-color:var(--terminal-primary);color:#fff}.ps-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));gap:8px}.ps-tile{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--terminal-border);border-radius:var(--terminal-radius);color:inherit;cursor:pointer;text-decoration:none!important;transition:border-color 0.15s,\n box-shadow 0.15s}.dark .ps-tile{border-color:#374151}.ps-tile *{margin:0;padding:0}.ps-tile img{margin:0!important}.ps-tile:hover{border-color:var(--terminal-primary);box-shadow:0 1px 4px rgb(var(--primary) / 0.12)}.dark .ps-tile:hover{box-shadow:0 1px 4px rgb(var(--primary) / 0.2)}.ps-tile:hover .ps-tile-name{color:var(--terminal-primary-text)}.ps-tile-icon{width:22px;height:22px;object-fit:contain;flex-shrink:0}.ps-tile-name{font-weight:500;font-size:14px;line-height:1.3;transition:color 0.15s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ps-tile-unsupported{border-style:dashed;opacity:0.55}.ps-tile-unsupported:hover{opacity:1}.ps-search{margin-bottom:12px}.ps-scrollable{display:flex;flex-direction:column}.ps-scrollable .ps-search{flex-shrink:0}.ps-scroll-list{max-height:22rem;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}.ps-group-label{margin:16px 0 8px;font-size:12px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;color:#6b7280}.ps-search-empty{margin:0;font-size:14px;color:#6b7280}.dark .ps-group-label,.dark .ps-search-empty{color:#9ca3af}.chat-assistant-floating-input{display:none!important;pointer-events:none!important}"},{"filePath":"cookies/cc.css","content":"#cc-main{background:transparent;color:var(--cc-primary-color);font-family:var(--cc-font-family);font-size:16px;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.15;position:relative;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;position:fixed;z-index:var(--cc-z-index)}#cc-main :after,#cc-main :before,#cc-main a,#cc-main button,#cc-main div,#cc-main h2,#cc-main input,#cc-main p,#cc-main span{all:unset;box-sizing:border-box}#cc-main .pm__badge,#cc-main button{all:initial;box-sizing:border-box;color:unset;visibility:unset}#cc-main .pm__badge,#cc-main a,#cc-main button,#cc-main input{-webkit-appearance:none;appearance:none;cursor:pointer;font-family:inherit;font-size:100%;line-height:normal;margin:0;outline:revert;outline-offset:2px;overflow:hidden}#cc-main table,#cc-main tbody,#cc-main td,#cc-main th,#cc-main thead,#cc-main tr{all:revert;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit}:root{--cc-font-family:\n -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,\n sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';--cc-modal-border-radius: 0.5rem;--cc-btn-border-radius: 0.4rem;--cc-modal-transition-duration: 0.25s;--cc-link-color: var(--cc-btn-primary-bg);--cc-modal-margin: 1rem;--cc-z-index: 2147483647;--cc-bg: #fff;--cc-primary-color: #2c2f31;--cc-secondary-color: #5e6266;--cc-btn-primary-bg: #30363c;--cc-btn-primary-color: #fff;--cc-btn-primary-border-color: var(--cc-btn-primary-bg);--cc-btn-primary-hover-bg: #000;--cc-btn-primary-hover-color: #fff;--cc-btn-primary-hover-border-color: var(--cc-btn-primary-hover-bg);--cc-btn-secondary-bg: #eaeff2;--cc-btn-secondary-color: var(--cc-primary-color);--cc-btn-secondary-border-color: var(--cc-btn-secondary-bg);--cc-btn-secondary-hover-bg: #d4dae0;--cc-btn-secondary-hover-color: #000;--cc-btn-secondary-hover-border-color: #d4dae0;--cc-separator-border-color: #f0f4f7;--cc-toggle-on-bg: var(--cc-btn-primary-bg);--cc-toggle-off-bg: #667481;--cc-toggle-on-knob-bg: #fff;--cc-toggle-off-knob-bg: var(--cc-toggle-on-knob-bg);--cc-toggle-enabled-icon-color: var(--cc-bg);--cc-toggle-disabled-icon-color: var(--cc-bg);--cc-toggle-readonly-bg: #d5dee2;--cc-toggle-readonly-knob-bg: #fff;--cc-toggle-readonly-knob-icon-color: var(--cc-toggle-readonly-bg);--cc-section-category-border: var(--cc-cookie-category-block-bg);--cc-cookie-category-block-bg: #f0f4f7;--cc-cookie-category-block-border: #f0f4f7;--cc-cookie-category-block-hover-bg: #e9eff4;--cc-cookie-category-block-hover-border: #e9eff4;--cc-cookie-category-expanded-block-bg: transparent;--cc-cookie-category-expanded-block-hover-bg: #dee4e9;--cc-overlay-bg: rgba(0, 0, 0, 0.65);--cc-webkit-scrollbar-bg: var(--cc-section-category-border);--cc-webkit-scrollbar-hover-bg: var(--cc-btn-primary-hover-bg);--cc-footer-bg: var(--cc-btn-secondary-bg);--cc-footer-color: var(--cc-secondary-color);--cc-footer-border-color: #e4eaed;--cc-pm-toggle-border-radius: 4em}#cc-main.cc--rtl{direction:rtl}#cc-main .cm__title,#cc-main a,#cc-main b,#cc-main em,#cc-main strong{font-weight:600}#cc-main button>span{pointer-events:none}#cc-main .cc__link,#cc-main a{background-image:linear-gradient(currentColor, currentColor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;font-weight:600;position:relative;transition:background-size 0.25s,\n color 0.25s ease}#cc-main .cc__link:hover,#cc-main a:hover{background-size:100% 1px;color:var(--cc-primary-color)}#cc-main .cc__link{color:var(--cc-link-color)}#cc-main .cm__desc,#cc-main .pm__body{overscroll-behavior:auto contain;scrollbar-width:thin}@media screen and (min-width: 640px){#cc-main ::-webkit-scrollbar,#cc-main ::-webkit-scrollbar-thumb,#cc-main ::-webkit-scrollbar-track{all:revert}#cc-main ::-webkit-scrollbar-thumb{-webkit-background-clip:padding-box;background-clip:padding-box;background:var(--cc-toggle-readonly-bg);border:0.25rem solid var(--cc-bg);border-radius:1rem}#cc-main ::-webkit-scrollbar-thumb:hover{background:var(--cc-toggle-off-bg)}#cc-main ::-webkit-scrollbar{background:transparent;width:12px}}html.disable--interaction.show--consent,html.disable--interaction.show--consent body{height:auto!important;overflow:hidden!important}@media (prefers-reduced-motion){#cc-main{--cc-modal-transition-duration: 0s}}.cc--darkmode{--cc-bg: #161a1c;--cc-primary-color: #ebf3f6;--cc-secondary-color: #aebbc5;--cc-btn-primary-bg: #c2d0e0;--cc-btn-primary-color: var(--cc-bg);--cc-btn-primary-border-color: var(--cc-btn-primary-bg);--cc-btn-primary-hover-bg: #98a7b6;--cc-btn-primary-hover-color: #000;--cc-btn-primary-hover-border-color: var(--cc-btn-primary-hover-bg);--cc-btn-secondary-bg: #242c31;--cc-btn-secondary-color: var(--cc-primary-color);--cc-btn-secondary-border-color: var(--cc-btn-secondary-bg);--cc-btn-secondary-hover-bg: #353d43;--cc-btn-secondary-hover-color: #fff;--cc-btn-secondary-hover-border-color: var(--cc-btn-secondary-hover-bg);--cc-separator-border-color: #222a30;--cc-toggle-on-bg: var(--cc-btn-primary-bg);--cc-toggle-off-bg: #525f6b;--cc-toggle-on-knob-bg: var(--cc-btn-primary-color);--cc-toggle-off-knob-bg: var(--cc-btn-primary-color);--cc-toggle-enabled-icon-color: var(--cc-btn-primary-color);--cc-toggle-disabled-icon-color: var(--cc-btn-primary-color);--cc-toggle-readonly-bg: #343e45;--cc-toggle-readonly-knob-bg: #5f6b72;--cc-toggle-readonly-knob-icon-color: var(--cc-toggle-readonly-bg);--cc-section-category-border: #1e2428;--cc-cookie-category-block-bg: #1e2428;--cc-cookie-category-block-border: var(--cc-section-category-border);--cc-cookie-category-block-hover-bg: #242c31;--cc-cookie-category-block-hover-border: #232a2f;--cc-cookie-category-expanded-block-bg: transparent;--cc-cookie-category-expanded-block-hover-bg: var(--cc-toggle-readonly-bg);--cc-overlay-bg: rgba(0, 0, 0, 0.65);--cc-webkit-scrollbar-bg: var(--cc-section-category-border);--cc-webkit-scrollbar-hover-bg: var(--cc-btn-primary-hover-bg);--cc-footer-bg: #0c0e0f;--cc-footer-color: var(--cc-secondary-color);--cc-footer-border-color: #060809}.cc--darkmode #cc-main{color-scheme:dark}#cc-main .cm{background:var(--cc-bg);border-radius:var(--cc-modal-border-radius);box-shadow:0 0.625em 1.875em rgba(0, 0, 2, 0.3);display:flex;flex-direction:column;max-width:24rem;opacity:0;overflow:hidden;position:fixed;transform:translateY(1.6em);visibility:hidden;z-index:1}#cc-main .cm--top{top:var(--cc-modal-margin)}#cc-main .cm--middle{top:50%;transform:translateY(calc(-50% + 1.6em))}#cc-main .cm--bottom{bottom:var(--cc-modal-margin)}#cc-main .cm--center{left:var(--cc-modal-margin);margin:0 auto;right:var(--cc-modal-margin);width:unset}#cc-main .cm--left{left:var(--cc-modal-margin);margin-right:var(--cc-modal-margin)}#cc-main .cm--right{margin-left:var(--cc-modal-margin);right:var(--cc-modal-margin)}#cc-main .cm__body{display:flex;flex-direction:column;justify-content:space-between;position:relative}#cc-main .cm__btns,#cc-main .cm__links{padding:1rem 1.3rem;width:unset}#cc-main .cm__texts{display:flex;flex:1;flex-direction:column;justify-content:center;padding:1rem 0 0}#cc-main .cm__desc,#cc-main .cm__title{padding:0 1.3rem}#cc-main .cm__title{font-size:1.05em}#cc-main .cm__title+.cm__desc{margin-top:1.1em}#cc-main .cm__desc{color:var(--cc-secondary-color);font-size:0.9em;line-height:1.5;max-height:40vh;overflow-x:visible;overflow-y:auto;padding-bottom:1em}#cc-main .cm__btns{border-top:1px solid var(--cc-separator-border-color);display:flex;flex-direction:column;justify-content:center}#cc-main .cm__btn-group{display:grid;grid-auto-columns:minmax(0, 1fr)}#cc-main .cm__btn+.cm__btn,#cc-main .cm__btn-group+.cm__btn-group{margin-top:0.375rem}#cc-main .cm--flip .cm__btn+.cm__btn,#cc-main .cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:0.375rem;margin-top:0}#cc-main .cm--inline .cm__btn+.cm__btn{margin-left:0.375rem;margin-top:0}#cc-main .cm--inline.cm--flip .cm__btn+.cm__btn{margin-bottom:0;margin-left:0;margin-right:0.375rem}#cc-main .cm--inline.cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:0.375rem;margin-right:0}#cc-main .cm--wide .cm__btn+.cm__btn,#cc-main .cm--wide .cm__btn-group+.cm__btn-group{margin-left:0.375rem;margin-top:0}#cc-main .cm--wide.cm--flip .cm__btn+.cm__btn,#cc-main .cm--wide.cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:0;margin-right:0.375rem}#cc-main .cm--bar:not(.cm--inline) .cm__btn-group--uneven,#cc-main .cm--wide .cm__btn-group--uneven{display:flex;flex:1;justify-content:space-between}#cc-main .cm--bar:not(.cm--inline).cm--flip .cm__btn-group--uneven,#cc-main .cm--wide.cm--flip .cm__btn-group--uneven{flex-direction:row-reverse}#cc-main .cm__btn{background:var(--cc-btn-primary-bg);border:1px solid var(--cc-btn-primary-border-color);border-radius:var(--cc-btn-border-radius);color:var(--cc-btn-primary-color);font-size:0.82em;font-weight:600;min-height:42px;padding:0.5em 1em;text-align:center}#cc-main .cm__btn:hover{background:var(--cc-btn-primary-hover-bg);border-color:var(--cc-btn-primary-hover-border-color);color:var(--cc-btn-primary-hover-color)}#cc-main .cm__btn--secondary{background:var(--cc-btn-secondary-bg);border-color:var(--cc-btn-secondary-border-color);color:var(--cc-btn-secondary-color)}#cc-main .cm__btn--secondary:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color);color:var(--cc-btn-secondary-hover-color)}#cc-main .cm__btn--close{border-radius:0;border-bottom-left-radius:var(--cc-btn-border-radius);border-right:none;border-top:none;display:none;font-size:1em;height:42px;min-width:auto!important;overflow:hidden;padding:0!important;position:absolute;right:0;top:0;width:42px}#cc-main .cm__btn--close svg{stroke:var(--cc-btn-primary-color);transform:scale(0.5);transition:stroke 0.15s ease}#cc-main .cm__btn--close:hover svg{stroke:var(--cc-btn-primary-hover-color)}#cc-main .cm__btn--close.cm__btn--secondary svg{stroke:var(--cc-btn-secondary-color)}#cc-main .cm__btn--close.cm__btn--secondary:hover svg{stroke:var(--cc-btn-secondary-hover-color)}#cc-main .cm__btn--close+.cm__texts .cm__title{padding-right:3rem}#cc-main .cm--inline .cm__btn-group{grid-auto-flow:column}#cc-main .cm__footer{background:var(--cc-footer-bg);border-top:1px solid var(--cc-footer-border-color);color:var(--cc-footer-color);padding:0.4em 0 0.5em}#cc-main .cm__links{display:flex;flex-direction:row;padding-bottom:0;padding-top:0}#cc-main .cm__link-group{display:flex;flex-direction:row;font-size:0.8em;width:100%}#cc-main .cm__link-group>*+*{margin-left:1.3rem}#cc-main .cm--flip .cm__btn:last-child{grid-row:1}#cc-main .cm--inline.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--box .cm__btn--close{display:block}#cc-main .cm--box.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cm--box.cm--wide{max-width:36em}#cc-main .cm--box.cm--wide .cm__btns{flex-direction:row;justify-content:space-between}#cc-main .cm--box.cm--wide .cm__btn-group{grid-auto-flow:column}#cc-main .cm--box.cm--wide .cm__btn{min-width:120px;padding-left:1.8em;padding-right:1.8em}#cc-main .cm--box.cm--wide.cm--flip .cm__btns{flex-direction:row-reverse}#cc-main .cm--box.cm--wide.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--cloud{max-width:54em;width:unset}#cc-main .cm--cloud .cm__body{flex-direction:row}#cc-main .cm--cloud .cm__texts{flex:1}#cc-main .cm--cloud .cm__desc{max-height:9.4em}#cc-main .cm--cloud .cm__btns{border-left:1px solid var(--cc-separator-border-color);border-top:none;max-width:23em}#cc-main .cm--cloud .cm__btn-group{flex-direction:column}#cc-main .cm--cloud .cm__btn{min-width:19em}#cc-main .cm--cloud.cm--flip .cm__btn-group,#cc-main .cm--cloud.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cm--cloud.cm--inline .cm__btn-group{flex-direction:row}#cc-main .cm--cloud.cm--inline .cm__btn{min-width:10em}#cc-main .cm--cloud.cm--inline.cm--flip .cm__btn-group{flex-direction:row-reverse}#cc-main .cm--bar{border-radius:0;left:0;margin:0;max-width:unset;opacity:1;right:0;transform:translateY(0);width:100vw;--cc-modal-transition-duration: 0.35s}#cc-main .cm--bar.cm--top{top:0;transform:translateY(-100%)}#cc-main .cm--bar.cm--bottom{bottom:0;transform:translateY(100%)}#cc-main .cm--bar .cm__body,#cc-main .cm--bar .cm__links{margin:0 auto;max-width:55em;width:100%}#cc-main .cm--bar .cm__body{padding:0.5em 0 0.9em}#cc-main .cm--bar .cm__btns{border-top:none;flex-direction:row;justify-content:space-between}#cc-main .cm--bar .cm__btn-group{grid-auto-flow:column}#cc-main .cm--bar:not(.cm--inline) .cm__btn+.cm__btn,#cc-main .cm--bar:not(.cm--inline) .cm__btn-group+.cm__btn-group{margin-left:0.375rem;margin-top:0}#cc-main .cm--bar .cm__btn{min-width:120px;padding-left:2em;padding-right:2em}#cc-main .cm--bar.cm--flip:not(.cm--inline) .cm__btn+.cm__btn,#cc-main .cm--bar.cm--flip:not(.cm--inline) .cm__btn-group+.cm__btn-group{margin-bottom:0;margin-left:0;margin-right:0.375rem}#cc-main .cm--bar.cm--flip .cm__btns{flex-direction:row-reverse}#cc-main .cm--bar.cm--flip .cm__btn:last-child{grid-column:1}#cc-main .cm--bar.cm--inline .cm__body,#cc-main .cm--bar.cm--inline .cm__links{max-width:74em}#cc-main .cm--bar.cm--inline .cm__body{flex-direction:row;padding:0}#cc-main .cm--bar.cm--inline .cm__btns{flex-direction:column;justify-content:center;max-width:23em}#cc-main .cm--bar.cm--inline.cm--flip .cm__btns{flex-direction:column-reverse}#cc-main .cc--anim .cm,#cc-main .cc--anim.cm-wrapper:before{transition:opacity var(--cc-modal-transition-duration) ease,\n visibility var(--cc-modal-transition-duration) ease,\n transform var(--cc-modal-transition-duration) ease}#cc-main .cc--anim .cm__btn,#cc-main .cc--anim .cm__close{transition:background-color 0.15s ease,\n border-color 0.15s ease,\n color 0.15s ease}.disable--interaction #cc-main .cm-wrapper:before{background:var(--cc-overlay-bg);bottom:0;content:'';left:0;opacity:0;position:fixed;right:0;top:0;visibility:hidden;z-index:0}.show--consent #cc-main .cc--anim .cm{opacity:1;transform:translateY(0);visibility:visible!important}.show--consent #cc-main .cc--anim .cm--middle{transform:translateY(-50%)}.show--consent #cc-main .cc--anim .cm--bar{transform:translateY(0)}.show--consent #cc-main .cc--anim.cm-wrapper:before{opacity:1;visibility:visible}#cc-main.cc--rtl .cm__btn--close{border-bottom-left-radius:unset;border-bottom-right-radius:var(--cc-btn-border-radius);left:0;right:unset}#cc-main.cc--rtl .cm__btn--close+.cm__texts .cm__title{padding-left:3rem!important;padding-right:1.3rem}#cc-main.cc--rtl .cm--inline .cm__btn+.cm__btn{margin-left:0;margin-right:0.375rem}#cc-main.cc--rtl .cm--inline.cm--flip .cm__btn+.cm__btn{margin-left:0.375rem;margin-right:0}#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar .cm__btn-group+.cm__btn-group,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide .cm__btn-group+.cm__btn-group{margin-left:0;margin-right:0.375rem}#cc-main.cc--rtl .cm:not(.cm--inline).cm--bar.cm--flip .cm__btn+.cm__btn,#cc-main.cc--rtl .cm:not(.cm--inline).cm--wide.cm--flip .cm__btn+.cm__btn{margin-left:0.375rem;margin-right:0}#cc-main.cc--rtl .cm__link-group>*+*{margin-left:0;margin-right:1.3rem}@media screen and (max-width: 640px){#cc-main{--cc-modal-margin: 0.5em}#cc-main .cm{max-width:none!important;width:auto!important}#cc-main .cm__body{flex-direction:column!important;padding:0!important}#cc-main .cm__btns,#cc-main .cm__desc,#cc-main .cm__links,#cc-main .cm__title{padding-left:1.1rem!important;padding-right:1.1rem!important}#cc-main .cm__btns{border-left:none!important;border-top:1px solid var(--cc-separator-border-color)!important;flex-direction:column!important;max-width:none!important;min-width:auto!important}#cc-main .cm__btn+.cm__btn,#cc-main .cm__btn-group+.cm__btn-group{margin:0.375rem 0 0!important}#cc-main .cm--flip .cm__btn+.cm__btn,#cc-main .cm--flip .cm__btn-group+.cm__btn-group{margin-bottom:0.375rem!important;margin-top:0!important}#cc-main .cm__btn-group{display:flex!important;flex-direction:column!important;min-width:auto!important}#cc-main .cm__btn{flex:auto!important}#cc-main .cm__link-group{justify-content:center!important}#cc-main .cm--flip .cm__btn-group,#cc-main .cm--flip .cm__btns{flex-direction:column-reverse!important}}#cc-main .pm-wrapper{position:relative;z-index:2}#cc-main .pm{background:var(--cc-bg);border-radius:var(--cc-modal-border-radius);box-shadow:0 0.625em 1.875em rgba(0, 0, 2, 0.3);display:flex;flex-direction:column;opacity:0;overflow:hidden;position:fixed;visibility:hidden;width:100%;width:unset;z-index:1}#cc-main svg{fill:none;width:100%}#cc-main .pm__body,#cc-main .pm__footer,#cc-main .pm__header{padding:1em 1.4em}#cc-main .pm__header{align-items:center;border-bottom:1px solid var(--cc-separator-border-color);display:flex;justify-content:space-between}#cc-main .pm__title{align-items:center;display:flex;flex:1;font-weight:600;margin-right:2em}#cc-main .pm__close-btn{background:var(--cc-btn-secondary-bg);border:1px solid var(--cc-btn-secondary-border-color);border-radius:var(--cc-btn-border-radius);height:40px;position:relative;transition:all 0.15s ease;width:40px}#cc-main .pm__close-btn span{display:flex;height:100%;width:100%}#cc-main .pm__close-btn svg{stroke:var(--cc-btn-secondary-color);transform:scale(0.5);transition:stroke 0.15s ease}#cc-main .pm__close-btn:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color)}#cc-main .pm__close-btn:hover svg{stroke:var(--cc-btn-secondary-hover-color)}#cc-main .pm__body{flex:1;overflow-y:auto;overflow-y:overlay}#cc-main .pm__section,#cc-main .pm__section--toggle{border-radius:var(--cc-btn-border-radius);display:flex;flex-direction:column;margin-bottom:0.5em}#cc-main .pm__section--toggle .pm__section-desc-wrapper{border:1px solid var(--cc-cookie-category-block-border);border-radius:var(--cc-btn-border-radius);border-top:none;border-top-left-radius:0;border-top-right-radius:0;display:none;margin-top:0!important;overflow:hidden}#cc-main .pm__section{border:1px solid var(--cc-separator-border-color);padding:1em;transition:background-color 0.25s ease,\n border-color 0.25s ease}#cc-main .pm__section:first-child{border:none;margin-bottom:2em;margin-top:0;padding:0;transition:none}#cc-main .pm__section:not(:first-child):hover{background:var(--cc-cookie-category-block-bg);border-color:var(--cc-cookie-category-block-border)}#cc-main .pm__section-toggles+.pm__section{margin-top:2em}#cc-main .pm__section--toggle{background:var(--cc-cookie-category-block-bg);border-top:none;margin-bottom:0.375rem}#cc-main .pm__section--toggle .pm__section-title{align-items:center;background:var(--cc-cookie-category-block-bg);border:1px solid var(--cc-cookie-category-block-border);display:flex;justify-content:space-between;min-height:58px;padding:1.1em 5.4em 1.1em 1.2em;position:relative;transition:background-color 0.25s ease,\n border-color 0.25s ease;width:100%}#cc-main .pm__section--toggle .pm__section-title:hover{background:var(--cc-cookie-category-block-hover-bg);border-color:var(--cc-cookie-category-block-hover-border)}#cc-main .pm__section--toggle .pm__section-desc{margin-top:0;padding:1em}#cc-main .pm__section--toggle.is-expanded{--cc-cookie-category-block-bg: var(--cc-cookie-category-expanded-block-bg);--cc-cookie-category-block-border: var(\n --cc-cookie-category-expanded-block-hover-bg\n )}#cc-main .pm__section--toggle.is-expanded .pm__section-title{border-bottom-left-radius:0;border-bottom-right-radius:0}#cc-main .pm__section--toggle.is-expanded .pm__section-arrow svg{transform:scale(0.5) rotate(180deg)}#cc-main .pm__section--toggle.is-expanded .pm__section-desc-wrapper{display:flex}#cc-main .pm__section--expandable .pm__section-title{cursor:pointer;padding-left:3.4em}#cc-main .pm__section--expandable .pm__section-arrow{background:var(--cc-toggle-readonly-bg);border-radius:100%;display:flex;height:20px;justify-content:center;left:18px;pointer-events:none;position:absolute;width:20px}#cc-main .pm__section--expandable .pm__section-arrow svg{stroke:var(--cc-btn-secondary-color);transform:scale(0.5)}#cc-main .pm__section-title-wrapper{align-items:center;display:flex;position:relative}#cc-main .pm__section-title-wrapper+.pm__section-desc-wrapper{margin-top:0.85em}#cc-main .pm__section-title{border-radius:var(--cc-btn-border-radius);font-size:0.95em;font-weight:600}#cc-main .pm__badge{align-items:center;background:var(--cc-btn-secondary-bg);border-radius:5em;color:var(--cc-secondary-color);display:flex;flex:none;font-size:0.8em;font-weight:600;height:23px;justify-content:center;margin-left:1em;min-width:23px;overflow:hidden;padding:0 0.6em 1px;position:relative;text-align:center;white-space:nowrap;width:auto}#cc-main .pm__service-counter{background:var(--cc-btn-primary-bg);color:var(--cc-btn-primary-color);padding:0;width:23px}#cc-main .pm__service-counter[data-counterlabel]{padding:0 0.6em 1px;width:auto}#cc-main .section__toggle,#cc-main .section__toggle-wrapper,#cc-main .toggle__icon,#cc-main .toggle__label{border-radius:var(--cc-pm-toggle-border-radius);height:23px;transform:translateZ(0);width:50px}#cc-main .section__toggle-wrapper{cursor:pointer;position:absolute;right:18px;z-index:1}#cc-main .toggle-service{height:19px;position:relative;right:0;width:42px}#cc-main .toggle-service .section__toggle,#cc-main .toggle-service .toggle__icon,#cc-main .toggle-service .toggle__label{height:19px;width:42px}#cc-main .toggle-service .toggle__icon{position:relative}#cc-main .toggle-service .toggle__icon-circle{height:19px;width:19px}#cc-main .toggle-service .section__toggle:checked~.toggle__icon .toggle__icon-circle{transform:translateX(23px)}#cc-main .pm__section--toggle:nth-child(2) .section__toggle-wrapper:after{display:none!important}#cc-main .section__toggle{border:0;cursor:pointer;display:block;left:0;margin:0;position:absolute;top:0}#cc-main .section__toggle:disabled{cursor:not-allowed}#cc-main .toggle__icon{background:var(--cc-toggle-off-bg);box-shadow:0 0 0 1px var(--cc-toggle-off-bg);display:flex;flex-direction:row;pointer-events:none;position:absolute;transition:all 0.25s ease}#cc-main .toggle__icon-circle{background:var(--cc-toggle-off-knob-bg);border:none;border-radius:var(--cc-pm-toggle-border-radius);box-shadow:0 1px 2px rgba(24, 32, 3, 0.36);display:block;height:23px;left:0;position:absolute;top:0;transition:transform 0.25s ease,\n background-color 0.25s ease;width:23px}#cc-main .toggle__icon-off,#cc-main .toggle__icon-on{height:100%;position:absolute;transition:opacity 0.15s ease;width:100%}#cc-main .toggle__icon-on{opacity:0;transform:rotate(45deg)}#cc-main .toggle__icon-on svg{stroke:var(--cc-toggle-on-bg);transform:scale(0.55) rotate(-45deg)}#cc-main .toggle__icon-off{opacity:1}#cc-main .toggle__icon-off svg{stroke:var(--cc-toggle-off-bg);transform:scale(0.55)}#cc-main .section__toggle:checked~.toggle__icon{background:var(--cc-toggle-on-bg);box-shadow:0 0 0 1px var(--cc-toggle-on-bg)}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-circle{background-color:var(--cc-toggle-on-knob-bg);transform:translateX(27px)}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-on{opacity:1}#cc-main .section__toggle:checked~.toggle__icon .toggle__icon-off{opacity:0}#cc-main .section__toggle:checked:disabled~.toggle__icon{background:var(--cc-toggle-readonly-bg);box-shadow:0 0 0 1px var(--cc-toggle-readonly-bg)}#cc-main .section__toggle:checked:disabled~.toggle__icon .toggle__icon-circle{background:var(--cc-toggle-readonly-knob-bg);box-shadow:none}#cc-main .section__toggle:checked:disabled~.toggle__icon svg{stroke:var(--cc-toggle-readonly-knob-icon-color)}#cc-main .toggle__label{opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;z-index:-1}#cc-main .pm__section-desc-wrapper{color:var(--cc-secondary-color);display:flex;flex-direction:column;font-size:0.9em}#cc-main .pm__section-desc-wrapper>:not(:last-child){border-bottom:1px solid var(--cc-cookie-category-block-border)}#cc-main .pm__section-services{display:flex;flex-direction:column}#cc-main .pm__service{align-items:center;display:flex;justify-content:space-between;padding:0.4em 1.2em;position:relative;transition:background-color 0.15s ease}#cc-main .pm__service:hover{background-color:var(--cc-cookie-category-block-hover-bg)}#cc-main .pm__service-header{align-items:center;display:flex;margin-right:1em;width:100%}#cc-main .pm__service-icon{border:2px solid;border-radius:100%;height:8px;margin-left:6px;margin-right:20px;margin-top:1px;min-width:8px}#cc-main .pm__service-title{font-size:0.95em;width:100%;word-break:break-word}#cc-main .pm__section-desc{line-height:1.5em}#cc-main .pm__section-table{border-collapse:collapse;font-size:0.9em;margin:0;overflow:hidden;padding:0;text-align:left;width:100%}#cc-main .pm__table-caption{text-align:left}#cc-main .pm__table-caption,#cc-main .pm__table-head>tr{border-bottom:1px dashed var(--cc-separator-border-color);color:var(--cc-primary-color);font-weight:600}#cc-main .pm__table-tr{transition:background-color 0.15s ease}#cc-main .pm__table-tr:hover{background:var(--cc-cookie-category-block-hover-bg)}#cc-main .pm__table-caption,#cc-main .pm__table-td,#cc-main .pm__table-th{padding:0.625em 0.625em 0.625em 1.2em;vertical-align:top}#cc-main .pm__footer{border-top:1px solid var(--cc-separator-border-color);display:flex;justify-content:space-between}#cc-main .pm__btn-group{display:flex}#cc-main .pm__btn+.pm__btn,#cc-main .pm__btn-group+.pm__btn-group{margin-left:0.375rem}#cc-main .pm--flip .pm__btn+.pm__btn,#cc-main .pm--flip .pm__btn-group+.pm__btn-group{margin-left:0;margin-right:0.375rem}#cc-main .pm__btn{background:var(--cc-btn-primary-bg);border:1px solid var(--cc-btn-primary-border-color);border-radius:var(--cc-btn-border-radius);color:var(--cc-btn-primary-color);flex:auto;font-size:0.82em;font-weight:600;min-height:42px;min-width:110px;padding:0.5em 1.5em;text-align:center;transition:background-color 0.15s ease,\n border-color 0.15s ease,\n color 0.15s ease}#cc-main .pm__btn:hover{background:var(--cc-btn-primary-hover-bg);border-color:var(--cc-btn-primary-hover-border-color);color:var(--cc-btn-primary-hover-color)}#cc-main .pm__btn--secondary{background:var(--cc-btn-secondary-bg);border-color:var(--cc-btn-secondary-border-color);color:var(--cc-btn-secondary-color)}#cc-main .pm__btn--secondary:hover{background:var(--cc-btn-secondary-hover-bg);border-color:var(--cc-btn-secondary-hover-border-color);color:var(--cc-btn-secondary-hover-color)}#cc-main .pm--box{height:calc(100% - 2em);left:var(--cc-modal-margin);margin:0 auto;max-height:37.5em;max-width:43em;right:var(--cc-modal-margin);top:50%;transform:translateY(calc(-50% + 1.6em))}#cc-main .pm--box.pm--flip .pm__btn-group,#cc-main .pm--box.pm--flip .pm__footer{flex-direction:row-reverse}#cc-main .pm--bar{border-radius:0;bottom:0;height:100%;margin:0;max-height:none;max-width:29em;opacity:1;top:0;width:100%;--cc-modal-transition-duration: 0.35s}#cc-main .pm--bar .pm__section-table,#cc-main .pm--bar .pm__table-body,#cc-main .pm--bar .pm__table-td,#cc-main .pm--bar .pm__table-th,#cc-main .pm--bar .pm__table-tr{display:block}#cc-main .pm--bar .pm__table-head{display:none}#cc-main .pm--bar .pm__table-caption{display:block}#cc-main .pm--bar .pm__table-tr:not(:last-child){border-bottom:1px solid var(--cc-separator-border-color)}#cc-main .pm--bar .pm__table-td{display:flex;justify-content:space-between}#cc-main .pm--bar .pm__table-td:before{color:var(--cc-primary-color);content:attr(data-column);flex:1;font-weight:600;min-width:100px;overflow:hidden;padding-right:2em;text-overflow:ellipsis}#cc-main .pm--bar .pm__table-td>div{flex:3}#cc-main .pm--bar:not(.pm--wide) .pm__body,#cc-main .pm--bar:not(.pm--wide) .pm__footer,#cc-main .pm--bar:not(.pm--wide) .pm__header{padding:1em 1.3em}#cc-main .pm--bar:not(.pm--wide) .pm__btn-group,#cc-main .pm--bar:not(.pm--wide) .pm__footer{flex-direction:column}#cc-main .pm--bar:not(.pm--wide) .pm__btn+.pm__btn,#cc-main .pm--bar:not(.pm--wide) .pm__btn-group+.pm__btn-group{margin:0.375rem 0 0}#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn-group,#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__footer{flex-direction:column-reverse}#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn+.pm__btn,#cc-main .pm--bar:not(.pm--wide).pm--flip .pm__btn-group+.pm__btn-group{margin-bottom:0.375rem;margin-top:0}#cc-main .pm--bar:not(.pm--wide) .pm__badge{display:none}#cc-main .pm--bar.pm--left{left:0;transform:translateX(-100%)}#cc-main .pm--bar.pm--right{right:0;transform:translateX(100%)}#cc-main .pm--bar.pm--wide{max-width:35em}#cc-main .pm--bar.pm--wide .pm__body,#cc-main .pm--bar.pm--wide .pm__footer,#cc-main .pm--bar.pm--wide .pm__header{padding:1em 1.4em}#cc-main .pm--bar.pm--wide.pm--flip .pm__btn-group,#cc-main .pm--bar.pm--wide.pm--flip .pm__footer{flex-direction:row-reverse}#cc-main .pm-overlay{background:var(--cc-overlay-bg);bottom:0;content:'';left:0;opacity:0;position:fixed;right:0;top:0;visibility:hidden;z-index:1}#cc-main .cc--anim .pm,#cc-main .cc--anim .pm-overlay{transition:opacity var(--cc-modal-transition-duration) ease,\n visibility var(--cc-modal-transition-duration) ease,\n transform var(--cc-modal-transition-duration) ease}.show--preferences #cc-main .cc--anim .pm{opacity:1;visibility:visible!important}.show--preferences #cc-main .cc--anim .pm--box{transform:translateY(-50%)}.show--preferences #cc-main .cc--anim .pm--bar{transform:translateX(0)}.show--preferences #cc-main .cc--anim .pm-overlay{opacity:1;visibility:visible}#cc-main.cc--rtl .pm__service-header{margin-left:1em;margin-right:0}#cc-main.cc--rtl .pm__section-arrow{left:unset;right:18px}#cc-main.cc--rtl .section__toggle-wrapper{left:18px;right:unset;transform-origin:left}#cc-main.cc--rtl .toggle-service{left:0}#cc-main.cc--rtl .pm__service-icon{margin-left:20px;margin-right:5px}#cc-main.cc--rtl .pm__section--toggle .pm__section-title{padding-left:5.4em;padding-right:1.2em}#cc-main.cc--rtl .pm__section--expandable .pm__section-title{padding-right:3.4em}#cc-main.cc--rtl .pm__badge{margin-left:unset;margin-right:1em}#cc-main.cc--rtl .toggle__icon-circle{transform:translateX(27px)}#cc-main.cc--rtl .toggle-service .toggle__icon-circle{transform:translateX(23px)}#cc-main.cc--rtl .section__toggle:checked~.toggle__icon .toggle__icon-circle{transform:translateX(0)}#cc-main.cc--rtl .pm__table-td,#cc-main.cc--rtl .pm__table-th{padding-left:unset;padding-right:1.2em;text-align:right}#cc-main.cc--rtl .pm__table-td{padding-left:unset;padding-right:1.2em}#cc-main.cc--rtl .pm__table-td:before{padding-left:2em;padding-right:unset}#cc-main.cc--rtl .pm__btn+.pm__btn,#cc-main.cc--rtl .pm__btn-group+.pm__btn-group{margin-left:0;margin-right:0.375rem}#cc-main.cc--rtl .pm--flip .pm__btn+.pm__btn,#cc-main.cc--rtl .pm--flip .pm__btn-group+.pm__btn-group{margin-left:0.375rem;margin-right:0}#cc-main.cc--rtl .pm--flip.pm--bar:not(.pm--wide) .pm__btn+.pm__btn,#cc-main.cc--rtl .pm--flip.pm--bar:not(.pm--wide) .pm__btn-group+.pm__btn-group{margin-left:0}@media screen and (max-width: 640px){#cc-main .pm{border-radius:0;bottom:0;height:auto;left:0;max-height:100%;max-width:none!important;right:0;top:0;transform:translateY(1.6em)}#cc-main .pm__body,#cc-main .pm__footer,#cc-main .pm__header{padding:0.9em!important}#cc-main .pm__badge{display:none}#cc-main .pm__section-table,#cc-main .pm__table-body,#cc-main .pm__table-caption,#cc-main .pm__table-td,#cc-main .pm__table-th,#cc-main .pm__table-tr{display:block}#cc-main .pm__table-head{display:none}#cc-main .pm__table-tr:not(:last-child){border-bottom:1px solid var(--cc-separator-border-color)}#cc-main .pm__table-td{display:flex;justify-content:space-between}#cc-main .pm__table-td:before{color:var(--cc-primary-color);content:attr(data-column);flex:1;font-weight:600;min-width:100px;overflow:hidden;padding-right:2em;text-overflow:ellipsis}#cc-main .pm__table-td>div{flex:3}#cc-main .pm__btn-group,#cc-main .pm__footer{flex-direction:column!important}#cc-main .pm__btn-group{display:flex!important}#cc-main .pm__btn+.pm__btn,#cc-main .pm__btn-group+.pm__btn-group{margin:0.375rem 0 0!important}#cc-main .pm--flip .pm__btn+.pm__btn,#cc-main .pm--flip .pm__btn-group+.pm__btn-group{margin-bottom:0.375rem!important;margin-top:0!important}#cc-main .pm--flip .pm__btn-group,#cc-main .pm--flip .pm__footer{flex-direction:column-reverse!important}.show--preferences #cc-main .cc--anim .pm{transform:translateY(0)!important}}"},{"filePath":"cookies/cookies.css","content":"html #cc-main{--cc-font-family: Inter, ui-sans-serif, system-ui, sans-serif;--cc-modal-border-radius: 1rem;--cc-btn-border-radius: 0.25rem;--cc-modal-margin: 1rem;--cc-bg: #ffffff;--cc-primary-color: #00173e;--cc-secondary-color: #4b5568;--cc-btn-primary-bg: var(--terminal-primary);--cc-btn-primary-color: #ffffff;--cc-btn-primary-border-color: var(--terminal-primary);--cc-btn-primary-hover-bg: var(--terminal-primary-hover);--cc-btn-primary-hover-color: #ffffff;--cc-btn-primary-hover-border-color: var(--terminal-primary-hover);--cc-btn-secondary-bg: #ffffff;--cc-btn-secondary-color: #00173e;--cc-btn-secondary-border-color: #00173e14;--cc-btn-secondary-hover-bg: #f5f7fb;--cc-btn-secondary-hover-color: #00173e;--cc-btn-secondary-hover-border-color: #00173e29;--cc-separator-border-color: #00173e14;--cc-toggle-on-bg: var(--terminal-primary);--cc-toggle-off-bg: #9aa4b2;--cc-toggle-on-knob-bg: #ffffff;--cc-toggle-off-knob-bg: #ffffff;--cc-toggle-enabled-icon-color: #ffffff;--cc-toggle-disabled-icon-color: #ffffff;--cc-toggle-readonly-bg: #d7dde7;--cc-toggle-readonly-knob-bg: #ffffff;--cc-toggle-readonly-knob-icon-color: #d7dde7;--cc-section-category-border: #00173e14;--cc-cookie-category-block-bg: #f5f7fb;--cc-cookie-category-block-border: #00173e14;--cc-cookie-category-block-hover-bg: #eef2f8;--cc-cookie-category-block-hover-border: #00173e14;--cc-cookie-category-expanded-block-bg: transparent;--cc-cookie-category-expanded-block-hover-bg: #eef2f8;--cc-overlay-bg: rgba(0, 23, 62, 0.45);--cc-webkit-scrollbar-bg: #eef2f8;--cc-webkit-scrollbar-hover-bg: var(--terminal-primary);--cc-footer-bg: #f5f7fb;--cc-footer-color: #4b5568;--cc-footer-border-color: #00173e14}html.dark #cc-main,html.cc--darkmode #cc-main{--cc-bg: #00173e;--cc-primary-color: #ffffff;--cc-secondary-color: #a8b3c7;--cc-btn-secondary-bg: #0a2249;--cc-btn-secondary-color: #ffffff;--cc-btn-secondary-border-color: #ffffff1f;--cc-btn-secondary-hover-bg: #12305c;--cc-btn-secondary-hover-color: #ffffff;--cc-btn-secondary-hover-border-color: #ffffff33;--cc-separator-border-color: #ffffff1f;--cc-toggle-off-bg: #5b6b84;--cc-toggle-on-knob-bg: #ffffff;--cc-toggle-off-knob-bg: #ffffff;--cc-toggle-enabled-icon-color: #ffffff;--cc-toggle-disabled-icon-color: #ffffff;--cc-toggle-readonly-bg: #2a3f63;--cc-toggle-readonly-knob-bg: #a8b3c7;--cc-toggle-readonly-knob-icon-color: #2a3f63;--cc-section-category-border: #ffffff1f;--cc-cookie-category-block-bg: #0a2249;--cc-cookie-category-block-border: #ffffff1f;--cc-cookie-category-block-hover-bg: #12305c;--cc-cookie-category-block-hover-border: #ffffff1f;--cc-cookie-category-expanded-block-bg: transparent;--cc-cookie-category-expanded-block-hover-bg: #12305c;--cc-overlay-bg: rgba(0, 0, 0, 0.65);--cc-webkit-scrollbar-bg: #0a2249;--cc-webkit-scrollbar-hover-bg: var(--terminal-primary-text);--cc-footer-bg: #00122f;--cc-footer-color: #a8b3c7;--cc-footer-border-color: #ffffff1f;color-scheme:dark}html #cc-main .cm__title,html #cc-main .pm__title{font-family:'Britti Sans', 'Britti Sans Fallback', Inter, ui-sans-serif, system-ui,\n sans-serif;font-weight:600}html #cc-main .cm__btn,html #cc-main .pm__btn{font-weight:500}html #cc-main .cm--box.cm--wide{max-width:28rem}html #cc-main .cm__title{font-size:1.125rem;line-height:1.4}html #cc-main .cm__desc{font-size:0.875rem;line-height:1.5;max-height:none;padding-bottom:0.75rem}html #cc-main .cm__btns{border-top:none!important;padding-top:0.25rem}html #cc-main .cm--box.cm--wide .cm__btn{min-width:unset;padding-left:1rem;padding-right:1rem}html #cc-main .pm--box{height:auto;max-height:min(37.5em, calc(100% - 2em));max-width:28rem}html #cc-main .pm__title{font-family:'Britti Sans', 'Britti Sans Fallback', Inter, ui-sans-serif, system-ui,\n sans-serif;font-size:1.125rem;line-height:1.4}html #cc-main .pm__header{border-bottom:none!important;padding:1rem 1.25rem 0.25rem!important}html #cc-main .pm__body{padding:0.25rem 1.25rem 1rem}html #cc-main .pm__footer{border-top:none!important;gap:0.375rem;padding:0 1.25rem 1rem}html #cc-main .pm__close-btn{background:transparent!important;border:none!important;height:1.5rem;width:1.5rem}html #cc-main .pm__close-btn:hover{background:transparent!important;border:none!important}html #cc-main .pm__close-btn svg{transform:scale(0.7)}html #cc-main .pm__section:first-child{margin-bottom:1rem}html #cc-main .pm__section:first-child .pm__section-desc{font-size:0.875rem;line-height:1.5}html #cc-main .pm__section--toggle .pm__section-title{min-height:3.25rem;padding-bottom:0.875rem;padding-right:4.5rem;padding-top:0.875rem}html #cc-main .pm--box .pm__btn-group--uneven{display:flex;flex:1;justify-content:space-between}html #cc-main .pm--box .pm__btn{min-width:unset;padding-left:1rem;padding-right:1rem}html #cc-main a{color:var(--terminal-primary-text)}@media screen and (min-width: 640px){html #cc-main ::-webkit-scrollbar-thumb,html #cc-main ::-webkit-scrollbar-thumb:hover{background:var(--cc-webkit-scrollbar-hover-bg)}}html #footer .term-cookie-preferences{align-self:center;background:none;border:none;color:#9ca3af;cursor:pointer;font-family:Inter, ui-sans-serif, system-ui, sans-serif;font-size:0.875rem;line-height:1.25rem;padding:0;text-align:left}html #footer .term-cookie-preferences:hover{color:#4b5563}html.dark #footer .term-cookie-preferences{color:#6b7280}html.dark #footer .term-cookie-preferences:hover{color:#d1d5db}"}],"page":{"pagePath":"guides/terminal-link","slug":"/guides/terminal-link","pageMetadata":{"title":"Terminal Link","sidebarTitle":"Overview","description":"Terminal provides a hosted 'Link' that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.","href":"/guides/terminal-link"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Terminal provides a hosted ‘Link’ that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Frame,Heading,Info,OptimizedImage,ParamField,ResponseField,Tab,Table,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/terminal-docs/CsBNyIr4mg-Im42C/images/link-component.png?fit=max\u0026auto=format\u0026n=CsBNyIr4mg-Im42C\u0026q=85\u0026s=040c957b926803e532cf95929e06ec28`,\"data-og-width\":`4386`,width:`4386`,\"data-og-height\":`1800`,height:`1800`,\"data-path\":`images/link-component.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/terminal-docs/CsBNyIr4mg-Im42C/images/link-component.png?w=280\u0026fit=max\u0026auto=format\u0026n=CsBNyIr4mg-Im42C\u0026q=85\u0026s=ced8738ea11fbf0259f8dd1e1643ba9e 280w, https://mintcdn.com/terminal-docs/CsBNyIr4mg-Im42C/images/link-component.png?w=560\u0026fit=max\u0026auto=format\u0026n=CsBNyIr4mg-Im42C\u0026q=85\u0026s=f93a06fea7287fd27c92fde9d7b194fa 560w, https://mintcdn.com/terminal-docs/CsBNyIr4mg-Im42C/images/link-component.png?w=840\u0026fit=max\u0026auto=format\u0026n=CsBNyIr4mg-Im42C\u0026q=85\u0026s=8cc8e0b6b294f32e3604ddcdc3dfd0f7 840w, https://mintcdn.com/terminal-docs/CsBNyIr4mg-Im42C/images/link-component.png?w=1100\u0026fit=max\u0026auto=format\u0026n=CsBNyIr4mg-Im42C\u0026q=85\u0026s=9522c56cb06bd97939438373b7063b74 1100w, https://mintcdn.com/terminal-docs/CsBNyIr4mg-Im42C/images/link-component.png?w=1650\u0026fit=max\u0026auto=format\u0026n=CsBNyIr4mg-Im42C\u0026q=85\u0026s=103a53b3071520c81d28b19eecabe116 1650w, https://mintcdn.com/terminal-docs/CsBNyIr4mg-Im42C/images/link-component.png?w=2500\u0026fit=max\u0026auto=format\u0026n=CsBNyIr4mg-Im42C\u0026q=85\u0026s=a95e6fa52da9589ac78faaf7b294d9b6 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`adding-your-logo`,children:`Adding Your Logo`}),`\n`,_jsx(_components.p,{children:`Link shows your logo to every fleet that connects. Manage it yourself in the Dashboard.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.a,{href:`https://dashboard.withterminal.com/settings?category=branding`,children:`Settings > Branding`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Choose `,_jsx(_components.strong,{children:`Upload Logo`}),` and pick a PNG, JPEG, or WebP up to 3 MB. The Dashboard trims empty space around the artwork and shows a preview before you upload.`]}),`\n`,_jsxs(_components.li,{children:[`Use it as your `,_jsx(_components.strong,{children:`default logo`}),`. Link shows the default unless a `,_jsx(_components.a,{href:`/guides/consent-templates`,children:`Consent Template`}),` chooses its own.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Your logo library keeps every logo you upload. You can replace a logo’s image, change which one is the default, or delete one you no longer use. A logo that is still in use can only be deleted once the templates that chose it switch to another logo, which the Dashboard offers to do for you.`}),`\n`,_jsx(_components.p,{children:`Members, developers, and admins can manage logos. Viewers can see them but not change them.`}),`\n`,_jsx(Heading,{level:`2`,id:`accessing-terminal-link`,children:`Accessing Terminal Link`}),`\n`,_jsx(_components.p,{children:`Terminal Link is a user-friendly, hosted page designed to facilitate authentication with any telematics provider. It provides a simple, self-serve flow for customers or partners to connect their telematics accounts.`}),`\n`,_jsx(_components.p,{children:`You have two options to integrate Terminal Link into your application:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Directly link to the hosted page.`}),`\n`,_jsx(_components.li,{children:`Embed it within your application using one of our SDKs.`}),`\n`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`React SDK`,id:`react-sdk`,\"data-child-heading-ids\":`[\"installation\",\"cross-origin-opener-policy-header\",\"usage\",\"creating-a-connection\",\"re-authenticating-a-connection\",\"examples\",\"available-options\"]`,children:[_jsx(_components.p,{children:`Terminal provides a React hook that makes it easy to embed the link in your application.`}),_jsxs(_components.p,{children:[`View the package on NPM here: `,_jsx(_components.a,{href:`https://www.npmjs.com/package/@terminal-api/link-react`,children:_jsx(_components.code,{children:`@terminal-api/link-react`})})]}),_jsx(Heading,{level:`3`,id:`installation`,children:`Installation`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @terminal-api/link-react`})]}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`cross-origin-opener-policy-header`,children:`Cross-Origin-Opener-Policy Header`}),_jsxs(_components.p,{children:[`If your application sends a `,_jsx(_components.code,{children:`Cross-Origin-Opener-Policy`}),` (COOP) header, set it\nto:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Cross-Origin-Opener-Policy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` same-origin-allow-popups`})]}),`\n`]})})}),_jsx(_components.p,{children:`This setting allows Terminal Link to communicate with provider OAuth popups\nduring authentication.`}),_jsx(Heading,{level:`3`,id:`usage`,children:`Usage`}),_jsx(Heading,{level:`4`,id:`creating-a-connection`,children:`Creating a Connection`}),_jsx(_components.p,{children:`Terminal handles capturing, validating and securely storing customer’s credentials to ensure that each TSP integration is as consistent as possible.`}),_jsx(_components.p,{children:`Here’s an overview of the steps involved when using the React hook:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Steps`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Initialize auth link with desired options (see available options below)`}),`\n`,_jsx(_components.li,{children:`Open link and wait for user to complete authentication`}),`\n`,_jsxs(_components.li,{children:[`Handle `,_jsx(_components.code,{children:`onSuccess`}),` callback and exchange public token for a connection token on your backend using `,_jsx(_components.a,{href:`/api-reference/authentication/public-token-exchange`,children:_jsx(_components.code,{children:`POST /tsp/v1/public-token/exchange`})})]}),`\n`]}),_jsx(Heading,{level:`4`,id:`re-authenticating-a-connection`,children:`Re-Authenticating a Connection`}),_jsx(_components.p,{children:`In certain scenarios, connections may become disconnected. This can occur when customers modify their password or withdraw access.`}),_jsxs(_components.p,{children:[`In such cases, Terminal updates the Connection status to `,_jsx(_components.code,{children:`disconnected`}),` and prompts you to reauthenticate the customer’s TSP to continue syncing.`]}),_jsxs(_components.p,{children:[`The reauthentication process mirrors the link flow, but requires the `,_jsx(_components.code,{children:`connectionId`}),` parameter to specify which connection needs to be updated.`]}),_jsx(Heading,{level:`4`,id:`examples`,children:`Examples`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Create a Connection`,numberOfLines:`46`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`46`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useCallback`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'react'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useTerminalLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@terminal-api/link-react'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MyComponent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` api`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useYourBackendApi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // if you are defining the function inside the component`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // make sure to wrap it in useCallback`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` exchangeToken`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useCallback`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ({ `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`publicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`publicToken`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Send the public token to your backend to exchange for a connection token`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // and store it in your database.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'/api/terminal'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`publicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` terminal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useTerminalLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // production or sandbox publishable key from the Terminal dashboard`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` publishableKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`REACT_APP_TERMINAL_PUBLISHABLE_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onSuccess:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` exchangeToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // optional parameters`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'my-external-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onClick`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` terminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` disabled`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`terminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isOpen`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Setup Telematics Integration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onClick`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` terminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` disabled`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`terminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isOpen`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Close Terminal Link`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onClick`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` terminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`provider:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'geotab'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } })`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Setup Geotab Integration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onClick`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` terminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`externalId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '1234'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } })`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Setup Integration with Custom Parameters`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` default`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MyComponent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Re-authenticate a Connection`,numberOfLines:`19`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` React`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'react'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useTerminalLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@terminal-api/link-react'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MyComponent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ({ `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`onSuccess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onSuccess`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` terminal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` useTerminalLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // production or sandbox publishable key from the Terminal dashboard`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` publishableKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`REACT_APP_TERMINAL_PUBLISHABLE_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` connectionId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'conn_01GSKTHCD24NRZ2SBJTPZBCQ1R'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onSuccess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// token exchange is optional for re-authentication`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` onClick`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` terminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` disabled`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`terminal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isOpen`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Setup Telematics Integration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` default`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MyComponent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})]}),_jsx(Heading,{level:`3`,id:`available-options`,children:`Available Options`}),_jsx(_components.p,{children:`The link SDK provides a number of options to customize the behavior of the link.`}),_jsx(ResponseField,{name:`publishableKey`,type:`string`,required:true,id:`param-publishable-key`,children:_jsx(_components.p,{children:`Your publishable key.`})}),_jsx(ResponseField,{name:`connectionId`,type:`string`,id:`param-connection-id`,children:_jsx(_components.p,{children:`Optional connection ID to update. If not provided, a new connection will be\ncreated.`})}),_jsx(ResponseField,{name:`linkBaseUrl`,type:`string`,id:`param-link-base-url`,children:_jsx(_components.p,{children:`Base URL for the link. Defaults based on the publishable key (production or\nsandbox).`})}),_jsx(ResponseField,{name:`onSuccess`,type:`(data: { publicToken: string }) => void`,id:`param-on-success`,children:_jsx(_components.p,{children:`Called when link is successfully completed.`})}),_jsx(ResponseField,{name:`onExit`,type:`() => void`,id:`param-on-exit`,children:_jsx(_components.p,{children:`Called when the link is exited by the user.`})}),_jsx(ResponseField,{name:`onOpen`,type:`() => void`,id:`param-on-open`,children:_jsx(_components.p,{children:`Called when the link is opened.`})}),_jsx(ResponseField,{name:`onClose`,type:`() => void`,id:`param-on-close`,children:_jsx(_components.p,{children:`Called when the link is closed.`})}),_jsx(ResponseField,{name:`params`,type:`Link Parameters`,id:`param-params`,children:_jsxs(Expandable,{title:`params`,children:[_jsx(ResponseField,{name:`syncMode`,type:`'automatic' | 'manual'`,id:`param-sync-mode`,children:_jsx(_components.p,{children:`Optional override for the sync mode. Defaults to account’s default sync mode.`})}),_jsx(ResponseField,{name:`company`,type:`Company`,id:`param-company`,children:_jsx(Expandable,{title:`company`,children:_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Name of the company to associate with the connection.`})})})}),_jsx(ResponseField,{name:`externalId`,type:`string`,id:`param-external-id`,children:_jsxs(_components.p,{children:[`Optional external ID to associate with the connection (e.g., your organization ID). You can learn more about External IDs `,_jsx(_components.a,{href:`/guides/custom-identifiers`,children:`here`}),`.`]})}),_jsx(ResponseField,{name:`tags`,type:`string[]`,id:`param-tags`,children:_jsxs(_components.p,{children:[`A list of tags that can be used to associate searchable references or categories to your connections. (e.g., `,_jsx(_components.code,{children:`['organizationId', 'Business Unit A']`}),`). You can learn more about tags `,_jsx(_components.a,{href:`/guides/custom-identifiers`,children:`here`}),`.`]})}),_jsx(ResponseField,{name:`provider`,type:`string`,id:`param-provider`,children:_jsxs(_components.p,{children:[`Filters the providers shown in Link to the specified provider code (e.g., `,_jsx(_components.code,{children:`geotab`}),`). Must be a supported provider code.`]})}),_jsx(ResponseField,{name:`providerHints`,type:`string[]`,id:`param-provider-hints`,children:_jsxs(_components.p,{children:[`Moves the specified providers to the top of Link’s provider selection list. Each value must be a supported provider code (e.g., `,_jsx(_components.code,{children:`geotab`}),`).`]})}),_jsx(ResponseField,{name:`backfill`,type:`Backfill Config`,id:`param-backfill`,children:_jsxs(Expandable,{title:`backfill`,children:[_jsx(ResponseField,{name:`days`,type:`number`,id:`param-days`,children:_jsx(_components.p,{children:`Number of days for backfill. Defaults to 0.`})}),_jsx(ResponseField,{name:`startFrom`,type:`string`,id:`param-start-from`,children:_jsx(_components.p,{children:`Date to start backfilling from. Defaults to current date.`})})]})}),_jsx(ResponseField,{name:`template`,type:`string`,id:`param-template`,children:_jsxs(_components.p,{children:[`Optional template ID to apply to the connection. If provided, the template’s\nsettings will be used for branding, custom agreements, and default values.\nLearn more in the `,_jsx(_components.a,{href:`/guides/consent-templates`,children:`Consent Templates guide`}),`.`]})})]})})]}),_jsxs(Tab,{title:`JS SDK`,id:`js-sdk`,\"data-child-heading-ids\":`[\"installation-2\",\"cross-origin-opener-policy-header-2\",\"usage-2\",\"creating-a-connection-2\",\"re-authenticating-a-connection-2\",\"examples-2\",\"available-options-2\"]`,children:[_jsx(_components.p,{children:`Terminal provides a javascript SDK that makes it easy to embed the link in your application.`}),_jsxs(_components.p,{children:[`View the package on NPM here: `,_jsx(_components.a,{href:`https://www.npmjs.com/package/@terminal-api/link-sdk`,children:_jsx(_components.code,{children:`@terminal-api/link-sdk`})})]}),_jsx(Heading,{level:`3`,id:`installation-2`,children:`Installation`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`NPM`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @terminal-api/link-sdk`})]}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Script Tag`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.withterminal.com/js/link-sdk.min.js\"`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:` /`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`cross-origin-opener-policy-header-2`,children:`Cross-Origin-Opener-Policy Header`}),_jsxs(_components.p,{children:[`If your application sends a `,_jsx(_components.code,{children:`Cross-Origin-Opener-Policy`}),` (COOP) header, set it\nto:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Cross-Origin-Opener-Policy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` same-origin-allow-popups`})]}),`\n`]})})}),_jsx(_components.p,{children:`This setting allows Terminal Link to communicate with provider OAuth popups\nduring authentication.`}),_jsx(Heading,{level:`3`,id:`usage-2`,children:`Usage`}),_jsx(Heading,{level:`4`,id:`creating-a-connection-2`,children:`Creating a Connection`}),_jsx(_components.p,{children:`Terminal handles capturing, validating and securely storing customer’s credentials to ensure that each TSP integration is as consistent as possible.`}),_jsx(_components.p,{children:`Here’s an overview of the steps involved when using the JS SDK:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Steps`})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Initialize auth link with desired options (see available options `,_jsx(_components.a,{href:`#available-options`,children:`below`}),`)`]}),`\n`,_jsx(_components.li,{children:`Open link and wait for user to complete authentication`}),`\n`,_jsxs(_components.li,{children:[`Handle `,_jsx(_components.code,{children:`onSuccess`}),` callback and exchange public token for a connection token on your backend using `,_jsx(_components.a,{href:`/api-reference/authentication/public-token-exchange`,children:_jsx(_components.code,{children:`POST /tsp/v1/public-token/exchange`})})]}),`\n`]}),_jsx(Heading,{level:`4`,id:`re-authenticating-a-connection-2`,children:`Re-Authenticating a Connection`}),_jsx(_components.p,{children:`In certain scenarios, connections may become disconnected. This can occur when customers modify their password or withdraw access.`}),_jsxs(_components.p,{children:[`In such cases, Terminal updates the Connection status to `,_jsx(_components.code,{children:`disconnected`}),` and prompts you to reauthenticate the customer’s TSP to continue syncing.`]}),_jsxs(_components.p,{children:[`The reauthentication process mirrors the link flow, but requires the `,_jsx(_components.code,{children:`connectionId`}),` parameter to specify which connection needs to be updated.`]}),_jsx(Heading,{level:`4`,id:`examples-2`,children:`Examples`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Create a Connection`,numberOfLines:`21`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// import if using package or will be globally available if installed via script tag`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TerminalLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@terminal-api/link-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` exchangePublicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`publicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // provide the public token to your backend to exchange for a Terminal connection token`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // store the Terminal connection token in your database to use for future Terminal API requests`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'/api/create-terminal-connection'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`publicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` link`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TerminalLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // production or sandbox publishable key from the Terminal dashboard`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` publishableKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`TERMINAL_PUBLISHABLE_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onSuccess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` exchangePublicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`publicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Re-authenticate a Connection`,numberOfLines:`24`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`24`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// import if using package or will be globally available if installed via script tag`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TerminalLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@terminal-api/link-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` exchangePublicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`publicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // provide the public token to your backend to exchange for a Terminal connection token`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // store the Terminal connection token in your database to use for future Terminal API requests`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'/api/create-terminal-connection'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` publicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` link`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TerminalLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // production or sandbox publishable key from the Terminal dashboard`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` publishableKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`TERMINAL_PUBLISHABLE_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` connectionId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'conn_01GSKTHCD24NRZ2SBJTPZBCQ1R'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onSuccess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` exchangePublicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`publicToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})})]}),_jsx(Heading,{level:`3`,id:`available-options-2`,children:`Available Options`}),_jsx(_components.p,{children:`The link SDK provides a number of options to customize the behavior of the link.`}),_jsx(ResponseField,{name:`publishableKey`,type:`string`,required:true,id:`param-publishable-key-1`,children:_jsx(_components.p,{children:`Your publishable key.`})}),_jsx(ResponseField,{name:`connectionId`,type:`string`,id:`param-connection-id-1`,children:_jsx(_components.p,{children:`Optional connection ID to update. If not provided, a new connection will be\ncreated.`})}),_jsx(ResponseField,{name:`linkBaseUrl`,type:`string`,id:`param-link-base-url-1`,children:_jsx(_components.p,{children:`Base URL for the link. Defaults based on the publishable key (production or\nsandbox).`})}),_jsx(ResponseField,{name:`onSuccess`,type:`(data: { publicToken: string }) => void`,id:`param-on-success-1`,children:_jsx(_components.p,{children:`Called when link is successfully completed.`})}),_jsx(ResponseField,{name:`onExit`,type:`() => void`,id:`param-on-exit-1`,children:_jsx(_components.p,{children:`Called when the link is exited by the user.`})}),_jsx(ResponseField,{name:`onOpen`,type:`() => void`,id:`param-on-open-1`,children:_jsx(_components.p,{children:`Called when the link is opened.`})}),_jsx(ResponseField,{name:`onClose`,type:`() => void`,id:`param-on-close-1`,children:_jsx(_components.p,{children:`Called when the link is closed.`})}),_jsx(ResponseField,{name:`params`,type:`Link Parameters`,id:`param-params-1`,children:_jsxs(Expandable,{title:`params`,children:[_jsx(ResponseField,{name:`syncMode`,type:`'automatic' | 'manual'`,id:`param-sync-mode-1`,children:_jsx(_components.p,{children:`Optional override for the sync mode. Defaults to account’s default sync mode.`})}),_jsx(ResponseField,{name:`company`,type:`Company`,id:`param-company-1`,children:_jsx(Expandable,{title:`company`,children:_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`Name of the company to associate with the connection.`})})})}),_jsx(ResponseField,{name:`externalId`,type:`string`,id:`param-external-id-1`,children:_jsxs(_components.p,{children:[`Optional external ID to associate with the connection (e.g., your organization ID). You can learn more about External IDs `,_jsx(_components.a,{href:`/guides/custom-identifiers`,children:`here`}),`.`]})}),_jsx(ResponseField,{name:`tags`,type:`string[]`,id:`param-tags-1`,children:_jsxs(_components.p,{children:[`A list of tags that can be used to associate searchable references or categories to your connections. (e.g., `,_jsx(_components.code,{children:`['organizationId', 'Business Unit A']`}),`). You can learn more about tags `,_jsx(_components.a,{href:`/guides/custom-identifiers`,children:`here`}),`.`]})}),_jsx(ResponseField,{name:`provider`,type:`string`,id:`param-provider-1`,children:_jsxs(_components.p,{children:[`Filters the providers shown in Link to the specified provider code (e.g., `,_jsx(_components.code,{children:`geotab`}),`). Must be a supported provider code.`]})}),_jsx(ResponseField,{name:`providerHints`,type:`string[]`,id:`param-provider-hints-1`,children:_jsxs(_components.p,{children:[`Moves the specified providers to the top of Link’s provider selection list. Each value must be a supported provider code (e.g., `,_jsx(_components.code,{children:`geotab`}),`).`]})}),_jsx(ResponseField,{name:`backfill`,type:`Backfill Config`,id:`param-backfill-1`,children:_jsxs(Expandable,{title:`backfill`,children:[_jsx(ResponseField,{name:`days`,type:`number`,id:`param-days-1`,children:_jsx(_components.p,{children:`Number of days for backfill. Defaults to 0.`})}),_jsx(ResponseField,{name:`startFrom`,type:`string`,id:`param-start-from-1`,children:_jsx(_components.p,{children:`Date to start backfilling from. Defaults to current date.`})})]})}),_jsx(ResponseField,{name:`template`,type:`string`,id:`param-template-1`,children:_jsxs(_components.p,{children:[`Optional template ID to apply to the connection. If provided, the template’s\nsettings will be used for branding, custom agreements, and default values.\nLearn more in the `,_jsx(_components.a,{href:`/guides/consent-templates`,children:`Consent Templates guide`}),`.`]})})]})})]}),_jsxs(Tab,{title:`Hosted Page`,id:`hosted-page`,\"data-child-heading-ids\":`[\"usage-3\",\"creating-a-connection-3\",\"re-authenticating-a-connection-3\",\"available-options-3\",\"base-url\",\"query-parameters\"]`,children:[_jsx(_components.p,{children:`The easiest way to get started with Terminal is to redirect your users to our hosted link. This is a great option if you don’t want to embed the link in your application or if you are using a language that we don’t have an SDK for.`}),_jsx(_components.p,{children:`We will handle the entire authentication flow and redirect the user back to your application when they are done.`}),_jsx(Heading,{level:`3`,id:`usage-3`,children:`Usage`}),_jsx(Heading,{level:`4`,id:`creating-a-connection-3`,children:`Creating a Connection`}),_jsx(_components.p,{children:`Terminal handles capturing, validating and securely storing customer’s credentials to ensure that each TSP integration is as consistent as possible. Here’s an overview of the steps involved in that flow.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Steps`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Create auth link with desired options (see available options below)`}),`\n`,_jsx(_components.li,{children:`Ask user to login to their TSP and direct to link`}),`\n`,_jsxs(_components.li,{children:[`User is redirected back to the `,_jsx(_components.code,{children:`redirect_url`}),` with the following paramaters:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`result`}),`: Indicates the outcome of the authentication process. It will be either:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`success`}),`: The user successfully authenticated.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`exit`}),`: The user exited the authentication process without completing it.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`token`}),`: A public token that is provided when `,_jsx(_components.code,{children:`result === success`}),`. This token is used to exchange for a connection token on your backend.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`state`}),`: An opaque value that you can set in the link params for additional security:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`If provided in the initial request, it will be returned unchanged.`}),`\n`,_jsx(_components.li,{children:`You should compare the returned state with the one you initially set.`}),`\n`,_jsx(_components.li,{children:`If they don’t match, it may indicate a potential security issue (e.g., a CSRF attack), and you should abort the authentication process.`}),`\n`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.li,{children:`Pass public token to your backend and exchange public token for a connection token`}),`\n`,_jsxs(_components.li,{children:[`Wait for initial sync to complete by either:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Polling `,_jsx(_components.code,{children:`/connections/current`}),` until sync is `,_jsx(_components.code,{children:`complete`})]}),`\n`,_jsxs(_components.li,{children:[`Subscribing to `,_jsx(_components.code,{children:`sync.completed`}),` webhooks (`,_jsx(_components.a,{href:`/guides/webhooks`,children:`docs`}),`)`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.li,{children:`Ingest data from Terminal`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example Link`}),`\nHere’s an example of a Link URL for authenticating new connections:`]}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://link.sandbox.withterminal.com/?key={PUBLISHABLE_KEY}\u0026redirect_url={URL}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(Heading,{level:`4`,id:`re-authenticating-a-connection-3`,children:`Re-Authenticating a Connection`}),_jsx(_components.p,{children:`There are rare times where connections may get disconnected. Common reasons for this include when customers change their password or revoke access.`}),_jsxs(_components.p,{children:[`When this happens - Terminal will update the status of the Connection to `,_jsx(_components.code,{children:`disconnected`}),` and prompt you to reauthenticate the customer’s TSP in order to resume syncing.`]}),_jsxs(_components.p,{children:[`Reauthentication is similar to the link flow but includes the `,_jsx(_components.code,{children:`connectionId`}),` in the URL path to denote which connection you would like to update.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Steps`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Get re-auth link for disconnected connection (see example below)`}),`\n`,_jsx(_components.li,{children:`Explain to user they need to enter their credentials again and direct them to link to perform authentication`}),`\n`,_jsx(_components.li,{children:`Resume ingesting data after catch up sync completes`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example Link`}),`\nHere’s an example of a Link URL for re-authenticating existing connections:`]}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://link.sandbox.withterminal.com/connection/conn_01GSKTHCD24NRZ2SBJTPZBCQ1R?key={PUBLISHABLE_KEY}\u0026redirect_url={URL}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Special Note`})}),_jsx(_components.p,{children:`During re-auth, you must link the same TSP account. Should your customer want to change accounts then they will need to create a new connection`})]}),_jsx(Heading,{level:`3`,id:`available-options-3`,children:`Available Options`}),_jsx(_components.p,{children:`You can use the following options when directing customers to the link in order to control behaviour. Please note these settings do not apply to the re-authentication flow.`}),_jsx(Heading,{level:`4`,id:`base-url`,children:`Base URL`}),_jsx(_components.p,{children:`The base URL for the link is determined by the environment you are using. You can use the following table to determine which environment you should use.`}),_jsx(_components.p,{children:`Our SDKs automatically determine the correct base URL based on the publishable key you provide.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Environment`}),_jsx(_components.th,{children:`URL`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prod`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://link.withterminal.com/?key={PUBLISHABLE_KEY}\u0026redirect_url={REDIRECT_URL}`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sandbox`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://link.sandbox.withterminal.com/?key={PUBLISHABLE_KEY}\u0026redirect_url={REDIRECT_URL}`})})]})]})]}),_jsx(Heading,{level:`4`,id:`query-parameters`,children:`Query Parameters`}),_jsx(_components.p,{children:`The following options can be appended as query parameters to the link URL in order to modify the settings of the resulting connection.`}),_jsxs(ParamField,{query:`key`,type:`string`,required:true,id:`param-key`,children:[_jsx(_components.p,{children:`Your application’s publishable key`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`pk_prod_SDFsdflokjsdfloiLKDNF`})]})]}),_jsxs(ParamField,{query:`redirect_url`,type:`string\u003curi>`,id:`param-redirect-url`,children:[_jsx(_components.p,{children:`Where you want to direct users after they succesfully complete or exit the link flow. This is required for initial authentication in order to exchange the public token but is optional during re-authentication.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`https://app.example.com/telematics-success`})]})]}),_jsx(ParamField,{query:`state`,type:`string`,id:`param-state`,children:_jsx(_components.p,{children:`Optional state parameter for maintaining application state and preventing CSRF\nattacks. This opaque value is returned unchanged, allowing verification of the\nrequest source. It should be unique for each flow initiation.`})}),_jsx(ParamField,{query:`name`,type:`string`,id:`param-name-2`,children:_jsx(_components.p,{children:`A friendly name to give the resulting connection - if not provided, we will\nattempt to pull this from the TSP`})}),_jsx(ParamField,{query:`external_id`,type:`string`,id:`param-external-id-2`,children:_jsxs(_components.p,{children:[`ID field to reference an identifier from your system with the resulting\nconnection. You can learn more about External IDs\n`,_jsx(_components.a,{href:`/guides/custom-identifiers`,children:`here`}),`.`]})}),_jsx(ParamField,{query:`tags`,type:`string`,id:`param-tags-2`,children:_jsxs(_components.p,{children:[`A list of tags that can be used to associate searchable references or\ncategories to your connections. Tags can be passed as a string of\ncomma-separated values. You can learn more about tags\n`,_jsx(_components.a,{href:`/guides/custom-identifiers`,children:`here`}),`.`]})}),_jsxs(ParamField,{query:`provider`,type:`string`,id:`param-provider-2`,children:[_jsxs(_components.p,{children:[`Filters the providers shown in Link to the specified provider code (e.g., `,_jsx(_components.code,{children:`geotab`}),`). Must be a supported provider code.`]}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`geotab`})]})]}),_jsxs(ParamField,{query:`provider_hints`,type:`string`,id:`param-provider-hints-2`,children:[_jsxs(_components.p,{children:[`Moves the specified providers to the top of Link’s provider selection list. Each value must be a supported provider code (e.g., `,_jsx(_components.code,{children:`geotab`}),`).`]}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`isaac`})]})]}),_jsxs(ParamField,{query:`sync_mode`,type:`string`,default:`automatic`,id:`param-sync-mode-2`,children:[_jsx(_components.p,{children:`Whether to automatically schedule future syncing after the initial sync`}),_jsxs(_components.p,{children:[`Allowed values: `,_jsx(_components.code,{children:`automatic`}),` `,_jsx(_components.code,{children:`manual`})]})]}),_jsx(ParamField,{query:`backfill_days`,type:`number`,default:`0`,id:`param-backfill-days`,children:_jsxs(_components.p,{children:[`Number of days of historical data to backfill (can not use alongside\n`,_jsx(_components.code,{children:`backfill_start_from`}),`)`]})}),_jsx(ParamField,{query:`backfill_start_from`,type:`string\u003cdate-time>`,id:`param-backfill-start-from`,children:_jsxs(_components.p,{children:[`ISO8601 date to start backfilling from (can not use alongside `,_jsx(_components.code,{children:`backfill_days`}),`)`]})}),_jsxs(ParamField,{query:`template`,type:`string`,default:`default`,id:`param-template-2`,children:[_jsx(_components.p,{children:`Link template ID to use for the hosted Link flow. If omitted, Terminal uses\nyour application’s default template. Templates can configure branding, custom\nagreements, redirect defaults, sync mode defaults, backfill defaults, required\nexternal IDs, and default tags.`}),_jsxs(_components.p,{children:[`Learn more in the `,_jsx(_components.a,{href:`/guides/consent-templates`,children:`Consent Templates guide`}),`.`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Terminal Link","sidebarTitle":"Overview","description":"Terminal provides a hosted 'Link' that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.","href":"/guides/terminal-link"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Adding Your Logo","slug":"adding-your-logo","depth":2,"children":[]},{"title":"Accessing Terminal Link","slug":"accessing-terminal-link","depth":2,"children":[{"title":"Installation","slug":"installation","depth":3,"children":[],"tabId":"react-sdk"},{"title":"Cross-Origin-Opener-Policy Header","slug":"cross-origin-opener-policy-header","depth":3,"children":[],"tabId":"react-sdk"},{"title":"Usage","slug":"usage","depth":3,"children":[],"tabId":"react-sdk"},{"title":"Creating a Connection","slug":"creating-a-connection","depth":4,"children":[],"tabId":"react-sdk"},{"title":"Re-Authenticating a Connection","slug":"re-authenticating-a-connection","depth":4,"children":[],"tabId":"react-sdk"},{"title":"Examples","slug":"examples","depth":4,"children":[],"tabId":"react-sdk"},{"title":"Available Options","slug":"available-options","depth":3,"children":[],"tabId":"react-sdk"},{"title":"Installation","slug":"installation-2","depth":3,"children":[],"tabId":"js-sdk"},{"title":"Cross-Origin-Opener-Policy Header","slug":"cross-origin-opener-policy-header-2","depth":3,"children":[],"tabId":"js-sdk"},{"title":"Usage","slug":"usage-2","depth":3,"children":[],"tabId":"js-sdk"},{"title":"Creating a Connection","slug":"creating-a-connection-2","depth":4,"children":[],"tabId":"js-sdk"},{"title":"Re-Authenticating a Connection","slug":"re-authenticating-a-connection-2","depth":4,"children":[],"tabId":"js-sdk"},{"title":"Examples","slug":"examples-2","depth":4,"children":[],"tabId":"js-sdk"},{"title":"Available Options","slug":"available-options-2","depth":3,"children":[],"tabId":"js-sdk"},{"title":"Usage","slug":"usage-3","depth":3,"children":[],"tabId":"hosted-page"},{"title":"Creating a Connection","slug":"creating-a-connection-3","depth":4,"children":[],"tabId":"hosted-page"},{"title":"Re-Authenticating a Connection","slug":"re-authenticating-a-connection-3","depth":4,"children":[],"tabId":"hosted-page"},{"title":"Available Options","slug":"available-options-3","depth":3,"children":[],"tabId":"hosted-page"},{"title":"Base URL","slug":"base-url","depth":4,"children":[],"tabId":"hosted-page"},{"title":"Query Parameters","slug":"query-parameters","depth":4,"children":[],"tabId":"hosted-page"}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/terminal-docs/be37ffcd81f59acb/cookies/cc.umd.js","/_mintlify/custom/terminal-docs/815d1ec4076bcefa/cookies/cookies.js"],"subdomain":"terminal-docs","siteName":"Terminal","title":"Terminal Link - Terminal","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T13:34:22.354Z","originalFileLocation":"guides/terminal-link.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Terminal provides a hosted \u0026#x27;Link\u0026#x27; that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Terminal\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Terminal Link - Terminal\">\u003cmeta data-mint-head property=\"og:description\" content=\"Terminal provides a hosted \u0026#x27;Link\u0026#x27; that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Terminal\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.withterminal.com/guides/terminal-link\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://terminal-docs.mintlify.site/_mintlify/api/og/v2?division=Terminal+Link\u0026amp;title=Terminal+Link\u0026amp;description=Terminal+provides+a+hosted+%27Link%27+that+makes+it+easy+to+authenticate+with+any+telematics+provider.+With+only+a+few+steps+you+will+be+able+to+provide+customers%2Fp\u0026amp;theme=8bb0eec5830d42a0d926dcc9\u0026amp;signature=140c28a09c67e32599b8600fa7b5449730b12121b8756fc26fb9c263473eea3f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Terminal Link - Terminal\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Terminal provides a hosted \u0026#x27;Link\u0026#x27; that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://terminal-docs.mintlify.site/_mintlify/api/og/v2?division=Terminal+Link\u0026amp;title=Terminal+Link\u0026amp;description=Terminal+provides+a+hosted+%27Link%27+that+makes+it+easy+to+authenticate+with+any+telematics+provider.+With+only+a+few+steps+you+will+be+able+to+provide+customers%2Fp\u0026amp;theme=8bb0eec5830d42a0d926dcc9\u0026amp;signature=140c28a09c67e32599b8600fa7b5449730b12121b8756fc26fb9c263473eea3f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/terminal-docs/q_QSa4K4R3U3yGEA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Terminal\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0C5DFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.withterminal.com/guides/terminal-link\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/terminal-link.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.withterminal.com/#organization\",\"name\":\"Terminal\",\"url\":\"https://docs.withterminal.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/terminal-docs/Pfa4hlnVUUtjY2OJ/logo/light.svg?fit=max\u0026auto=format\u0026n=Pfa4hlnVUUtjY2OJ\u0026q=85\u0026s=9cef1cf6544af4b9a6af143a7ca8a7b8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.withterminal.com#website\",\"name\":\"Terminal\",\"url\":\"https://docs.withterminal.com\",\"publisher\":{\"@id\":\"https://docs.withterminal.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.withterminal.com/guides/terminal-link#webpage\",\"url\":\"https://docs.withterminal.com/guides/terminal-link\",\"name\":\"Terminal Link\",\"description\":\"Terminal provides a hosted 'Link' that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.\",\"dateModified\":\"2026-11-18T13:34:22.354Z\",\"isPartOf\":{\"@id\":\"https://docs.withterminal.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.withterminal.com/guides/terminal-link#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.withterminal.com/guides/terminal-link#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Terminal\",\"item\":\"https://docs.withterminal.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Terminal Link\",\"item\":\"https://docs.withterminal.com/guides/terminal-link\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.withterminal.com/guides/terminal-link#article\",\"headline\":\"Terminal Link\",\"name\":\"Terminal Link\",\"description\":\"Terminal provides a hosted 'Link' that makes it easy to authenticate with any telematics provider. With only a few steps you will be able to provide customers/partners an easy self-serve flow to connect their telematics account.\",\"url\":\"https://docs.withterminal.com/guides/terminal-link\",\"mainEntityOfPage\":{\"@id\":\"https://docs.withterminal.com/guides/terminal-link#webpage\"},\"dateModified\":\"2026-11-18T13:34:22.354Z\",\"publisher\":{\"@id\":\"https://docs.withterminal.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.withterminal.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Terminal\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Terminal\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/terminal-link.md","siteName":"Terminal","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Get Started","pages":[{"title":"How Terminal Works","href":"/how-terminal-works"},{"title":"Quickstart","href":"/guides/quickstart"},{"group":"Use Case Guides","pages":[{"title":"Insurance","href":"/guides/insurance"},{"title":"Fuel Cards","href":"/guides/fuel-cards"}]}]},{"group":"Development Lifecycle","pages":[{"title":"Planning Your Implementation","href":"/guides/planning-your-implementation"},{"title":"Sandbox Environment","href":"/guides/sandbox-environment"},{"title":"Migrating to Terminal","href":"/guides/migrating-to-terminal"},{"title":"Production Readiness","description":"A guide to help ensure your Terminal implementation is ready for production, covering what to have in place before going live so you can focus on the areas relevant to your use case.","href":"/guides/production-readiness"}]},{"group":"Connect Your Customers","pages":[{"group":"Terminal Link","pages":[{"title":"Terminal Link","sidebarTitle":"Overview","href":"/guides/terminal-link"},{"title":"SDKs","description":"Terminal provides SDKs to make it easy to integrate with your application.","href":"/guides/sdks"},{"title":"Consent Templates","href":"/guides/consent-templates"},{"title":"Short Links","href":"/guides/short-links"},{"title":"Link Analytics Events","href":"/guides/link-analytics-events"}]},{"group":"Provider Configuration","pages":[{"title":"Motive OAuth Configuration","href":"/guides/motive-oauth-configuration"},{"title":"Netradyne Configuration","href":"/guides/netradyne-configuration"},{"title":"Samsara OAuth Configuration","href":"/guides/samsara-oauth-configuration"}]},{"title":"Provider Access Control","href":"/guides/provider-access-control"},{"title":"Custom Identifiers","href":"/guides/custom-identifiers"}]},{"group":"Working With Data","pages":[{"group":"Data Replication","pages":[{"title":"Data Replication","sidebarTitle":"Overview","href":"/guides/data-replication"},{"title":"Syncing via the API","href":"/guides/syncing-via-the-api"},{"title":"Backfill Duration","href":"/guides/backfill-duration"},{"title":"AWS S3 Destination","href":"/guides/aws-s3-destination"},{"title":"Kafka Destination","href":"/guides/kafka-destination"},{"title":"Webhooks","href":"/guides/webhooks"}]},{"title":"Real-Time Data","href":"/guides/real-time-data"},{"title":"Managed Polling","href":"/guides/managed-polling"},{"title":"Passthrough","href":"/guides/passthrough"},{"title":"Raw Data","href":"/guides/raw-data"},{"title":"Entity Status \u0026 Visibility","href":"/guides/entity-status-visibility"},{"title":"Timestamps","href":"/guides/timestamps"},{"title":"Units of Measurement","href":"/guides/units"}]},{"group":"Managing Connections","pages":[{"title":"Connection Health Monitoring","href":"/guides/connection-health-monitoring"},{"title":"Vehicle \u0026 Driver Filtering","href":"/guides/vehicle-driver-filtering"},{"title":"Disconnected Connections","href":"/guides/disconnected-connections"},{"title":"Duplicate Connections","href":"/guides/duplicate-connections"},{"title":"Deleting Connections","href":"/guides/deleting-connections"}]},{"group":"Notifications","pages":[{"title":"Crash Reports","href":"/guides/crash-reports"},{"title":"User Notifications","href":"/guides/user-notifications"}]},{"group":"Resources","pages":[{"title":"Security","href":"/security"},{"title":"Agents","href":"/guides/agents"}]}]},{"anchor":"API Reference","icon":"rectangle-terminal","pages":[{"title":"API Reference","href":"/api-reference/environments"}]},{"anchor":"Supported Providers","icon":"satellite-dish","pages":[{"title":"Supported Providers","href":"/providers/explorer"}]},{"anchor":"Common Models","icon":"database","pages":[{"title":"Common Models","href":"/models/overview"}]},{"anchor":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog"}]},{"anchor":"Website","icon":"globe","href":"https://withterminal.com"}]},"basePath":"","title":"Terminal Link - Terminal","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DBAS9Liu.js","DynamicMarkdown-C4w9kavL.js","zoom-image-lightbox-B9O1U98p.js","lightbox-handle-r17bVUz3.js"]}