curl --request GET \
--url https://api.getlurk.com/v1/trusted-issuers/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/trusted-issuers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/trusted-issuers/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"profile": {
"provider": "supabase",
"project_ref": "<string>",
"audiences": [
"authenticated"
],
"algorithms": [
"RS256",
"ES256"
],
"max_token_lifetime_seconds": 3600
},
"issuer": "<string>",
"jwks_url": "<string>",
"revision": 123,
"status": "paused",
"created_at": "2023-11-07T05:31:56Z",
"checked_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"key_origin_differs": true,
"key_count": 10,
"key_ids_hash": "<string>",
"algorithms": [
"RS256"
],
"problem": "unavailable",
"can_activate": true
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Get a trusted issuer
One trusted issuer: profile, addresses, revision, status and the health of its signing keys. can_activate says whether it could be activated now.
curl --request GET \
--url https://api.getlurk.com/v1/trusted-issuers/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/trusted-issuers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/trusted-issuers/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"profile": {
"provider": "supabase",
"project_ref": "<string>",
"audiences": [
"authenticated"
],
"algorithms": [
"RS256",
"ES256"
],
"max_token_lifetime_seconds": 3600
},
"issuer": "<string>",
"jwks_url": "<string>",
"revision": 123,
"status": "paused",
"created_at": "2023-11-07T05:31:56Z",
"checked_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"key_origin_differs": true,
"key_count": 10,
"key_ids_hash": "<string>",
"algorithms": [
"RS256"
],
"problem": "unavailable",
"can_activate": true
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Authorizations
Response
Get a trusted issuer
What the last check found, as a fingerprint of the key ids (kid) of the key_count usable keys: the first 12 hex characters of the SHA-256 of the ids, sorted, as a JSON array (["a","b"]). Key ids are public. It changes when one key is swapped for another, which key_count and algorithms do not show, so compare it before and after a rotation. Null with no usable key, and for a check made before Lurk recorded it.
^[0-9a-f]{12}$What the last check found wrong, or null. unavailable: the key address could not be reached. invalid_keys: it answered, but not with a usable key set. no_supported_key: it holds no RS256 or ES256 key.
unavailable, invalid_keys, no_supported_key, configuration_changed, null