ProbesController_report
POST
/probes/report
const url = 'https://api.krakenkey.io/probes/report';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"probeId":"example","mode":"standalone","region":"us-east-1","timestamp":"example","results":[{"endpoint":{"host":"example.com","port":443,"sni":"example.com"},"connection":{"success":true,"error":"example","latencyMs":42,"tlsVersion":"TLS 1.3","cipherSuite":"TLS_AES_256_GCM_SHA384","ocspStapled":true},"certificate":{"subject":"CN=example.com","sans":["example.com","www.example.com"],"issuer":"CN=Let\'s Encrypt Authority X3","serialNumber":"example","notBefore":"example","notAfter":"example","daysUntilExpiry":243,"keyType":"RSA","keySize":2048,"signatureAlgorithm":"sha256WithRSAEncryption","fingerprint":"example","chainDepth":3,"chainComplete":true,"trusted":true}}]}'};
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/probes/report \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "probeId": "example", "mode": "standalone", "region": "us-east-1", "timestamp": "example", "results": [ { "endpoint": { "host": "example.com", "port": 443, "sni": "example.com" }, "connection": { "success": true, "error": "example", "latencyMs": 42, "tlsVersion": "TLS 1.3", "cipherSuite": "TLS_AES_256_GCM_SHA384", "ocspStapled": true }, "certificate": { "subject": "CN=example.com", "sans": [ "example.com", "www.example.com" ], "issuer": "CN=Let'\''s Encrypt Authority X3", "serialNumber": "example", "notBefore": "example", "notAfter": "example", "daysUntilExpiry": 243, "keyType": "RSA", "keySize": 2048, "signatureAlgorithm": "sha256WithRSAEncryption", "fingerprint": "example", "chainDepth": 3, "chainComplete": true, "trusted": true } } ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
probeId
required
string
mode
required
string
region
string
Example
us-east-1timestamp
required
string
results
required
Array<object>
object
endpoint
required
object
host
required
string
Example
example.comport
required
number
Example
443sni
string
Example
example.comconnection
required
object
success
required
boolean
error
string
latencyMs
number
Example
42tlsVersion
string
Example
TLS 1.3cipherSuite
string
Example
TLS_AES_256_GCM_SHA384ocspStapled
boolean
certificate
object
subject
string
Example
CN=example.comsans
Array<string>
Example
[ "example.com", "www.example.com"]issuer
string
Example
CN=Let's Encrypt Authority X3serialNumber
string
notBefore
string
notAfter
string
daysUntilExpiry
number
Example
243keyType
string
Example
RSAkeySize
number
Example
2048signatureAlgorithm
string
Example
sha256WithRSAEncryptionfingerprint
string
chainDepth
number
Example
3chainComplete
boolean
trusted
boolean