curl --request POST \
--url https://api.getlurk.com/v1/trusted-issuers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "<string>",
"profile": {
"provider": "supabase",
"project_ref": "<string>",
"audiences": [
"authenticated"
],
"algorithms": [
"RS256",
"ES256"
],
"max_token_lifetime_seconds": 3600
}
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
profile: {
provider: 'supabase',
project_ref: '<string>',
audiences: ['authenticated'],
algorithms: ['RS256', 'ES256'],
max_token_lifetime_seconds: 3600
}
})
};
fetch('https://api.getlurk.com/v1/trusted-issuers', 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"
payload = {
"name": "<string>",
"profile": {
"provider": "supabase",
"project_ref": "<string>",
"audiences": ["authenticated"],
"algorithms": ["RS256", "ES256"],
"max_token_lifetime_seconds": 3600
}
}
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>"
}
}Add a trusted issuer
Saves a paused trusted issuer. Owner or admin in person. A project key or agent key can save it when agent go-live is on for the project and the project does not require approval. Otherwise, keys get approval_required. A member’s assistant signed in with OAuth always gets approval_required.
curl --request POST \
--url https://api.getlurk.com/v1/trusted-issuers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "<string>",
"profile": {
"provider": "supabase",
"project_ref": "<string>",
"audiences": [
"authenticated"
],
"algorithms": [
"RS256",
"ES256"
],
"max_token_lifetime_seconds": 3600
}
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
profile: {
provider: 'supabase',
project_ref: '<string>',
audiences: ['authenticated'],
algorithms: ['RS256', 'ES256'],
max_token_lifetime_seconds: 3600
}
})
};
fetch('https://api.getlurk.com/v1/trusted-issuers', 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"
payload = {
"name": "<string>",
"profile": {
"provider": "supabase",
"project_ref": "<string>",
"audiences": ["authenticated"],
"algorithms": ["RS256", "ES256"],
"max_token_lifetime_seconds": 3600
}
}
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
Owner or admin only. An API key or an agent gets approval_required: a person saves it in Lurk. Saved paused.
Response
Add 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