List Link Providers
curl --request GET \
--url https://api.withterminal.com/link/providers \
--header 'publishable-key: <api-key>'import requests
url = "https://api.withterminal.com/link/providers"
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/providers', 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/providers",
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/providers"
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/providers")
.header("publishable-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withterminal.com/link/providers")
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{
"providers": [
{
"code": "<string>",
"name": "<string>",
"logo": "<string>",
"icon": "<string>",
"eligibility": "supported",
"members": [
"<string>"
]
}
]
}{
"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 Providers
List every provider shown in Link with its eligibility under a Consent Template, to build your own provider picker.
GET
/
link
/
providers
List Link Providers
curl --request GET \
--url https://api.withterminal.com/link/providers \
--header 'publishable-key: <api-key>'import requests
url = "https://api.withterminal.com/link/providers"
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/providers', 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/providers",
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/providers"
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/providers")
.header("publishable-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withterminal.com/link/providers")
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{
"providers": [
{
"code": "<string>",
"name": "<string>",
"logo": "<string>",
"icon": "<string>",
"eligibility": "supported",
"members": [
"<string>"
]
}
]
}{
"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 same key you pass to Terminal Link.
Eligibility is specific to a Consent Template: pass
templateId to choose one, or omit it to use your default template. This differs from List Providers, which lists every provider Terminal supports with no template or eligibility applied.
Each provider has one eligibility:
supported: integrated, and allowed by the Consent Template.blocked: integrated, but excluded by Provider Access Control for the Consent Template.unconfigured: Terminal integrates this provider, but your application has not set it up. Your users can contact you to add support for it.not_supported: Terminal has no integration for this provider, or the integration is in beta and not enabled for your application.
verizon, includes members: the provider codes it stands in for. Those providers are not listed as their own entries.
Pass eligibility to return a subset, such as supported or supported,blocked. Omit it to return every provider.Authorizations
Query Parameters
The Consent Template to evaluate against. Omit it, or pass default, to use your default template. An unknown template ID returns 404.