List Link Provider Guides
curl --request GET \
--url https://api.withterminal.com/link/guides \
--header 'publishable-key: <api-key>'import requests
url = "https://api.withterminal.com/link/guides"
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', 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",
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"
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")
.header("publishable-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withterminal.com/link/guides")
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{
"results": [
{
"heading": "How do I find my API key?",
"markdown": "1. First item in a numbered list",
"code": "geotab",
"locale": "en",
"presentation": {
"size": "expanded"
}
}
],
"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw"
}{
"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
List Link Provider Guides
List the credential guides Link shows for each provider, so your own connect screen can show the same instructions.
GET
/
link
/
guides
List Link Provider Guides
curl --request GET \
--url https://api.withterminal.com/link/guides \
--header 'publishable-key: <api-key>'import requests
url = "https://api.withterminal.com/link/guides"
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', 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",
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"
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")
.header("publishable-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withterminal.com/link/guides")
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{
"results": [
{
"heading": "How do I find my API key?",
"markdown": "1. First item in a numbered list",
"code": "geotab",
"locale": "en",
"presentation": {
"size": "expanded"
}
}
],
"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw"
}{
"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. Guides are returned in one locale and ordered by provider code.
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.
Pass providers to return a subset. Codes that are unknown, not shown in Link, or have no guide are left out instead of failing the request.
Pages hold up to limit guides. Pass next back as cursor until it is omitted.Authorizations
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.