Get Link Provider Guide
curl --request GET \
--url https://api.withterminal.com/link/guides/{provider} \
--header 'publishable-key: <api-key>'import requests
url = "https://api.withterminal.com/link/guides/{provider}"
headers = {"publishable-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'publishable-key': '<api-key>'}};
fetch('https://api.withterminal.com/link/guides/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.withterminal.com/link/guides/{provider}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"publishable-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.withterminal.com/link/guides/{provider}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("publishable-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.withterminal.com/link/guides/{provider}")
.header("publishable-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withterminal.com/link/guides/{provider}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["publishable-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"heading": "How do I find my API key?",
"markdown": "1. First item in a numbered list",
"code": "geotab",
"locale": "en",
"presentation": {
"size": "expanded"
}
}{
"code": "bad_request",
"message": "Invalid request body",
"detail": [
{
"message": "'vehicleId' property must be a valid ulid",
"path": "{requestQuery}.vehicleId",
"suggestion": "Please ensure you submit a valid 'vehicleId' property",
"context": {}
}
]
}{
"code": "unauthorized",
"message": "Unauthorized Request",
"detail": "Please ensure you have a valid API key"
}{
"code": "forbidden",
"message": "Forbidden Request",
"detail": "Please ensure the connection token matches the resource you are attempting to access."
}{
"code": "not_found",
"message": "Resource not found",
"detail": "Could not find resource with ID: 2342342"
}{
"code": "internal_server_error",
"message": "Internal Server Error",
"detail": "Something went wrong"
}Link
Get Link Provider Guide
Get the credential guide Link shows for one provider, so your own connect screen can show the same instructions.
GET
/
link
/
guides
/
{provider}
Get Link Provider Guide
curl --request GET \
--url https://api.withterminal.com/link/guides/{provider} \
--header 'publishable-key: <api-key>'import requests
url = "https://api.withterminal.com/link/guides/{provider}"
headers = {"publishable-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'publishable-key': '<api-key>'}};
fetch('https://api.withterminal.com/link/guides/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.withterminal.com/link/guides/{provider}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"publishable-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.withterminal.com/link/guides/{provider}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("publishable-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.withterminal.com/link/guides/{provider}")
.header("publishable-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withterminal.com/link/guides/{provider}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["publishable-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"heading": "How do I find my API key?",
"markdown": "1. First item in a numbered list",
"code": "geotab",
"locale": "en",
"presentation": {
"size": "expanded"
}
}{
"code": "bad_request",
"message": "Invalid request body",
"detail": [
{
"message": "'vehicleId' property must be a valid ulid",
"path": "{requestQuery}.vehicleId",
"suggestion": "Please ensure you submit a valid 'vehicleId' property",
"context": {}
}
]
}{
"code": "unauthorized",
"message": "Unauthorized Request",
"detail": "Please ensure you have a valid API key"
}{
"code": "forbidden",
"message": "Forbidden Request",
"detail": "Please ensure the connection token matches the resource you are attempting to access."
}{
"code": "not_found",
"message": "Resource not found",
"detail": "Could not find resource with ID: 2342342"
}{
"code": "internal_server_error",
"message": "Internal Server Error",
"detail": "Something went wrong"
}Authenticate with your publishable key. The guide is returned in one locale.
Providers your users can’t connect still have guides, including
blocked and unconfigured providers and beta providers reported as not_supported. Check eligibility with List Link Providers before offering a provider.
An unrecognized provider code (including unsupported catalog codes) returns 400. A recognized provider that is not shown in Link or has no guide returns 404.Authorizations
Path Parameters
Provider code to load a guide for. Every provider has a unique code to identify it across Terminal's system. You can find each provider's code under provider details.
Example:
"geotab"
Query Parameters
Optional Consent Template ID. Omit it, or pass default, to use your default template. An unknown template ID returns 404. Passing a template does not filter out blocked providers.
Response
The provider guide for one locale.
One locale of a provider credential guide, for a headless connect screen.