curl --request GET \
--url https://cloud-api.near.ai/v1/attestation/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://cloud-api.near.ai/v1/attestation/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloud-api.near.ai/v1/attestation/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud-api.near.ai/v1/attestation/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cloud-api.near.ai/v1/attestation/report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cloud-api.near.ai/v1/attestation/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud-api.near.ai/v1/attestation/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"gateway_attestation": {
"event_log": "<string>",
"info": "<unknown>",
"intel_quote": "<string>",
"report_data": "<string>",
"request_nonce": "<string>",
"signing_address": "<string>",
"signing_algo": "<string>",
"tls_cert_fingerprint": "<string>",
"vpc": {
"vpc_hostname": "<string>",
"vpc_server_app_id": "<string>"
}
},
"model_attestations": [
{}
],
"ohttp_attestation": {
"key_config": "<string>",
"signature": "<string>",
"signing_algo": "<string>",
"signing_key": "<string>"
},
"ohttp_key_config": "<string>",
"tls_certificate": "<string>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}Get attestation report
Get hardware attestation report for TEE verification. The API key is optional, so a client can verify the gateway before it sends any credential. Without a key, listed models only; with one, also the unlisted models the key’s organization may use. A key that is sent must be valid. Report retrieval is non-billable — no usage or billing records are created.
With model=...&provider=chutes, the Chutes entry in model_attestations includes
quote_b64, certificate_b64, e2e_pubkey, nonce, and gpu_evidence for
the selected verified instance. gpu_evidence preserves every GPU’s arch,
certificate (base64 device certificate chain), and evidence (base64 SPDM
evidence) from the same evidence request as the CPU quote and certificate.
gpu_verdict remains available as verification metadata.
The GPU challenge is SHA256(UTF8(nonce + e2e_pubkey)), using the returned
nonce’s hex text and public key’s base64 text without decoding either input.
Pass the hex-encoded digest as the NVIDIA verification nonce; it is also bound
into the CPU quote’s report_data[0:32]. The raw client nonce is not the GPU
challenge.
curl --request GET \
--url https://cloud-api.near.ai/v1/attestation/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://cloud-api.near.ai/v1/attestation/report"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloud-api.near.ai/v1/attestation/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud-api.near.ai/v1/attestation/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cloud-api.near.ai/v1/attestation/report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cloud-api.near.ai/v1/attestation/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud-api.near.ai/v1/attestation/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"gateway_attestation": {
"event_log": "<string>",
"info": "<unknown>",
"intel_quote": "<string>",
"report_data": "<string>",
"request_nonce": "<string>",
"signing_address": "<string>",
"signing_algo": "<string>",
"tls_cert_fingerprint": "<string>",
"vpc": {
"vpc_hostname": "<string>",
"vpc_server_app_id": "<string>"
}
},
"model_attestations": [
{}
],
"ohttp_attestation": {
"key_config": "<string>",
"signature": "<string>",
"signing_algo": "<string>",
"signing_key": "<string>"
},
"ohttp_key_config": "<string>",
"tls_certificate": "<string>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}Authorizations
Query Parameters
Response
Attestation report retrieved