Get Intel Trust Authority attestation token
curl --request GET \
--url https://cloud-api.near.ai/v1/attestation/ita-tokenimport requests
url = "https://cloud-api.near.ai/v1/attestation/ita-token"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cloud-api.near.ai/v1/attestation/ita-token', 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/ita-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/ita-token"
req, _ := http.NewRequest("GET", url, nil)
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/ita-token")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud-api.near.ai/v1/attestation/ita-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"gateway": {
"attestation_type": "<string>",
"token": "<string>",
"token_signing_alg": "<string>",
"token_type": "<string>",
"ita_request_id": "<string>"
},
"jwks_url": "<string>",
"models": [
{
"attestation_type": "<string>",
"model": "<string>",
"token": "<string>",
"token_signing_alg": "<string>",
"token_type": "<string>",
"ita_request_id": "<string>"
}
],
"nonce": "<string>",
"policy_ids": [
"<string>"
],
"policy_must_match": true,
"model_alias_resolved": {
"canonical": "<string>",
"requested": "<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>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}Attestation
Get Intel Trust Authority attestation token
Get Intel Trust Authority signed attestation JWTs for the gateway and, when
requested, compatible model provider evidence. Public endpoint — this is an
explicit, documented decision (nearai/infra#193): the response carries only
ITA-signed TEE evidence (no customer or key-scoped data), public access lets
third parties verify the platform without an account, and upstream ITA rate
limits bound abuse (propagated as 429). See
build_public_attestation_routes in routes/attestation.rs.
GET
/
v1
/
attestation
/
ita-token
Get Intel Trust Authority attestation token
curl --request GET \
--url https://cloud-api.near.ai/v1/attestation/ita-tokenimport requests
url = "https://cloud-api.near.ai/v1/attestation/ita-token"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cloud-api.near.ai/v1/attestation/ita-token', 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/ita-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/ita-token"
req, _ := http.NewRequest("GET", url, nil)
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/ita-token")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud-api.near.ai/v1/attestation/ita-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"gateway": {
"attestation_type": "<string>",
"token": "<string>",
"token_signing_alg": "<string>",
"token_type": "<string>",
"ita_request_id": "<string>"
},
"jwks_url": "<string>",
"models": [
{
"attestation_type": "<string>",
"model": "<string>",
"token": "<string>",
"token_signing_alg": "<string>",
"token_type": "<string>",
"ita_request_id": "<string>"
}
],
"nonce": "<string>",
"policy_ids": [
"<string>"
],
"policy_must_match": true,
"model_alias_resolved": {
"canonical": "<string>",
"requested": "<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>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}