Check a certificate
GET
/verify/{code}
const url = 'https://qsafe.sh/verify/example?json=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://qsafe.sh/verify/example?json=example'Checks the verification code printed on a qsafe.sh certificate. Add ?json for JSON;
without it you get the HTML page.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”code
required
string
The scan id printed on the certificate.
Query Parameters
Section titled “Query Parameters”json
required
string
Responses
Section titled “Responses”Certificate status.
Media typeapplication/json
object
code
string
domain
string
status
string
detail
string
score
integer
scanned_at
string format: date-time
Example
{ "status": "valid"}Unknown code (HTML page).