Get attestation information
const url = 'https://api.saygm.com/attestation/info?nonce=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://api.saygm.com/attestation/info?nonce=example'Public, unauthenticated endpoint. Supply a fresh base64 nonce of 16–64 decoded bytes; the response echoes it in a nonce-bound attestation record.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Fresh base64-encoded nonce; decoded length must be 16–64 bytes.
Responses
Section titled “Responses”The attestation record for the supplied nonce.
object
object
Example
{ "schema_version": "2", "tee_platform": "intel-tdx", "tcb_info": { "status": null }, "verification_status": "not_checked"}Headers
Section titled “Headers”The response is not stored.
Allowed browser origin for this public read endpoint.
Methods advertised by the response.
Missing or malformed query fields return text; invalid decoded nonce values return JSON.
object
object
Examplegenerated
{ "error": { "code": "example" }}Attestation request capacity or frequency limit reached.
object
object
Examplegenerated
{ "error": { "code": "example" }}Headers
Section titled “Headers”The response is not stored.
Allowed browser origin for this public read endpoint.
Methods advertised by the response.
The attestation record could not be validated.
object
object
Examplegenerated
{ "error": { "code": "example" }}Headers
Section titled “Headers”The response is not stored.
Allowed browser origin for this public read endpoint.
Methods advertised by the response.
The attestation provider is unavailable or timed out.
object
object
Examplegenerated
{ "error": { "code": "example" }}Headers
Section titled “Headers”The response is not stored.
Allowed browser origin for this public read endpoint.
Methods advertised by the response.