curl --request POST \
--url https://api.getlurk.com/v1/trusted-issuers/{id}/archive \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"expected_revision": 123
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({expected_revision: 123})
};
fetch('https://api.getlurk.com/v1/trusted-issuers/{id}/archive', 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}/archive"
payload = { "expected_revision": 123 }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, 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>"
}
}Archive a trusted issuer
Retires an issuer for good: no credential can use it; bindings and receipts stay, and its address can be set up again as a new issuer. Cannot be undone. Owner or admin in person; a key or agent gets approval_required.
curl --request POST \
--url https://api.getlurk.com/v1/trusted-issuers/{id}/archive \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"expected_revision": 123
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({expected_revision: 123})
};
fetch('https://api.getlurk.com/v1/trusted-issuers/{id}/archive', 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}/archive"
payload = { "expected_revision": 123 }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, 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
Headers
Body
Response
Archive 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