---
title: "Create Tpm Attestation"
method: POST
path: "/v1/cvm/tpm-attestations"
tags: ["CVM Attestation"]
---

# Create Tpm Attestation

`POST /v1/cvm/tpm-attestations`

Store a TPM quote attestation (PCR evidence).

## Headers

- `authorization` string, nullable

## Request body

- CreateTpmAttestationRequest — Request schema for creating TPM attestation.
  - `federation_id` string, required
  - `node_id` string, required
  - `app_id` string, nullable
  - `app_version` string, nullable
  - `pcr_bank` 'sha256'
  - `pcrs` integer[], required
  - `ak_public_pem` string, nullable
  - `quote_msg_b64` string, nullable
  - `quote_sig_b64` string, nullable
  - `sig_alg` 'rsassa' | 'ecdsa', nullable
  - `pcr_values` object, nullable

## Response `201`

Successful Response

- TpmAttestationCreateResponse — Response schema for creating TPM attestation.
  - `node_id` string, required
  - `app_id` string, nullable
  - `app_version` string, nullable
  - `status` string, required
  - `verification_error` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/flower/apis/superlink-api.md) · [All operations](https://skmtc.dev/flower/apis/superlink-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flower/superlink-api/revisions/58e8351486b3/schema)
