> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# GET /v1/models/{model}/attestation

```text
GET https://weights.fyi/run/v1/models/<model>/attestation?nonce=<64 hex>
Authorization: Bearer <token>                    scope: read
```

**Available since:** 2026-10-21: included in this build; see [What is live](/run/docs/what-is-live.md) for deployment status.

**Answer time:** synchronous: the evidence is asked of the enclave that serves the model while you wait.

Returns live attestation evidence for a confidential enclave model. An enclave is an isolated environment whose memory the service's operators cannot read; attestation is the hardware's own signed statement that the model runs inside one. The evidence is bound to the enclave's public key and to the nonce you send, so it cannot be a recording of an earlier answer, and it names the key your requests are encrypted to.

Verify the evidence yourself before you send data: the signed report and its certificate chain, the signed tokens, that they bind the SHA-256 of `enclave_public_key_der` together with your nonce, and that `image_sha256` is the enclave image you expect. Then use one of `transport_modes`. With `sealed_envelope` your client encrypts each request to the attested key and sends only ciphertext through [POST /v1/chat/completions](/run/docs/reference/chat-completions.md) or [POST /v1/classify](/run/docs/reference/classify.md); with `enclave_tls` a local helper on your side does the same for unmodified OpenAI clients.

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and a token that holds the `read` scope. |
| `model` | path | yes | A confidential enclave model's id; it may hold `/`. |
| `nonce` | query | yes | 32 random bytes of yours as 64 lower-case hexadecimal characters; make a new one for every call. |

## Return value

**200 OK** with the evidence:

| Field | Meaning |
|---|---|
| `schema` | The evidence format's name and version. |
| `model`, `nonce` | The model and your nonce, echoed. |
| `transport_modes` | `enclave_tls` and `sealed_envelope`: how requests may reach the enclave. |
| `pk_sha256` | The SHA-256 of the enclave's public key. |
| `enclave_public_key_der` | The enclave's public key, DER, base64. |
| `tee_driver` | Which kind of enclave produced the processor's evidence. |
| `snp_report`, `snp_cert_chain_pem`, `maa_token` | A SEV-SNP enclave: its signed report (base64), the report's certificate chain and the attestation service's signed token, where the enclave has them. |
| `tdx_quote`, `tdx_cert_chain_pem` | A TDX enclave: its signed quote and certificate chain. |
| `nvattest_token` | The accelerator's signed attestation token. |
| `image_sha256`, `image_signature` | The enclave image's digest, and the enclave's signature binding that image to your nonce. |

Further fields depend on the enclave's kind.

## Errors

| Status | Code | When it happens | What to do |
|---|---|---|---|
| `400` | `invalid_attestation_nonce` | `nonce` is missing or is not 64 lower-case hexadecimal characters. | Send 32 random bytes as lower-case hex. |
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work (any more). | Use a valid token. |
| `403` | `scope_required`, `account_suspended` | The token lacks `read`, or the account is suspended. | Use a token with `read`. |
| `404` | `attestation_not_available` | The model is not a confidential enclave model your workspace can reach, or its enclave gave no evidence now. | Check the model's id in [GET /v1/models](/run/docs/reference/models.md); attestation exists only for confidential enclave models. |

## Examples

With a confidential enclave model's id in place of `MODEL`; the long values are cut here and `schema` is left out:

```sh
curl -s "https://weights.fyi/run/v1/models/MODEL/attestation?nonce=abababababababababababababababababababababababababababababababab" -H "Authorization: Bearer $WEIGHTS_API_KEY"
```

```json
{
  "model": "confidential-vlm",
  "nonce": "abababababababababababababababababababababababababababababababab",
  "transport_modes": ["enclave_tls", "sealed_envelope"],
  "pk_sha256": "0e9d03893cf9b487b46c69b99a496bc5859890f184509f4a97d5cc1f3bb3cb8f",
  "enclave_public_key_der": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
  "snp_report": "AgAAAAAAAAAfAAMAAAAAAAEAAAAAAAAA...",
  "snp_cert_chain_pem": ["-----BEGIN CERTIFICATE-----\nMIIFQzCCAvegAwIBAgIBADBBBgkq...\n-----END CERTIFICATE-----\n"],
  "maa_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6...",
  "nvattest_token": "eyJhbGciOiJFUzM4NCJ9..."
}
```

## History

- 2026-10-21: built.
- 2026-11-16: this page added.

## See also

- [POST /v1/workspaces](/run/docs/reference/workspaces-post.md), where a workspace's confidential mode is set.
- [POST /v1/chat/completions](/run/docs/reference/chat-completions.md) and [POST /v1/classify](/run/docs/reference/classify.md), the calls that carry the encrypted requests.
- [Models](/run/docs/models.md), the topic.
