Fetch the host-encrypted (ECIES) KRL envelope; host_id is in the body
POST
/external/ssh/krl
const url = 'https://pki.example.com/api/v1/external/ssh/krl';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"host_id":"example","zone":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://pki.example.com/api/v1/external/ssh/krl \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "host_id": "example", "zone": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
host_id
Target host FQDN
string
zone
Zone id or slug — required only when the FQDN exists in more than one zone (decision-017 A2)
string
key
additional properties
any
Example generated
{ "host_id": "example", "zone": "example"}Responses
Section titled “Responses”Default Response