Register a new monitored endpoint
POST
/endpoints
const url = 'https://api.krakenkey.io/endpoints';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"host":"example.com","port":443,"sni":"example.com","label":"Production API","probeIds":["probe-uuid-1"],"hostedRegions":["us-east-1"]}'};
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://api.krakenkey.io/endpoints \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "host": "example.com", "port": 443, "sni": "example.com", "label": "Production API", "probeIds": [ "probe-uuid-1" ], "hostedRegions": [ "us-east-1" ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
host
required
Hostname to monitor
string
Example
example.comport
Port to connect to (default: 443)
number
Example
443sni
SNI override (defaults to host)
string
Example
example.comlabel
User-friendly label
string
Example
Production APIprobeIds
IDs of connected probes to assign for scanning
Array<string>
Example
[ "probe-uuid-1"]hostedRegions
Hosted probe regions to enable for scanning (Team tier+)
Array<string>
Example
[ "us-east-1"]Responses
Section titled “Responses”Endpoint created
Plan limit exceeded