Fetch the credential status list token
curl --request GET \
--url https://api.baselayer.com/statuslists/{list_id}import requests
url = "https://api.baselayer.com/statuslists/{list_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.baselayer.com/statuslists/{list_id}', 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.baselayer.com/statuslists/{list_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.baselayer.com/statuslists/{list_id}"
req, _ := http.NewRequest("GET", url, nil)
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.baselayer.com/statuslists/{list_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.baselayer.com/statuslists/{list_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"type": "invalid_host_header",
"code": 6317,
"message": "The request's Host header is missing, repeated or malformed; send exactly one Host of the form host[:port].",
"metadata": {}
}{
"type": "resource_not_found",
"code": 1,
"message": "Could not locate the resource for the given URI.",
"metadata": {}
}{
"type": "validation_failed",
"code": 7112,
"message": "The request is invalid.",
"metadata": {}
}Public keys and status lists
Fetch the credential status list token
The OAuth Token Status List list_id of the issuer whose registry host the request names; production and sandbox each serve their own. An issuer fills list 1, then list 2, and so on; a list it has not allocated is 404. Each credential’s status claim names its own list URI on its issuer’s host and a bit index; bit set means revoked. Returned as a signed statuslist+jwt verifiable against the issuer’s published JWKS. Unauthenticated; cacheable for at most the token’s ttl claim, which this response’s max-age mirrors.
GET
/
statuslists
/
{list_id}
Fetch the credential status list token
curl --request GET \
--url https://api.baselayer.com/statuslists/{list_id}import requests
url = "https://api.baselayer.com/statuslists/{list_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.baselayer.com/statuslists/{list_id}', 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.baselayer.com/statuslists/{list_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.baselayer.com/statuslists/{list_id}"
req, _ := http.NewRequest("GET", url, nil)
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.baselayer.com/statuslists/{list_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.baselayer.com/statuslists/{list_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"type": "invalid_host_header",
"code": 6317,
"message": "The request's Host header is missing, repeated or malformed; send exactly one Host of the form host[:port].",
"metadata": {}
}{
"type": "resource_not_found",
"code": 1,
"message": "Could not locate the resource for the given URI.",
"metadata": {}
}{
"type": "validation_failed",
"code": 7112,
"message": "The request is invalid.",
"metadata": {}
}Path Parameters
Response
The signed status list token.