Developers

Servers API Reference

This section covers all endpoints related to servers.

Get Nonce

Generate a nonce for boot attestation.

This endpoint is called by VMs during boot before any registration. No authentication required as the VM doesn't exist in the system yet.

Endpoint:

Responses

Status CodeDescription
200Successful Response

Verify Boot Attestation

Verify boot attestation and return LUKS passphrase.

This endpoint verifies the TDX quote against expected boot measurements and returns the LUKS passphrase for disk decryption if valid.

Endpoint:

Parameters

ParameterTypeRequiredDescription
X-Chutes-Noncestring | nullNo

Request Body

FieldTypeRequiredDescription
quotestringYesBase64 encoded TDX quote

Responses

Status CodeDescription
200Successful Response
422Validation Error

Create Server

Register a new server.

This is called via CLI after the server has booted and decrypted its disk. Links the server to any existing boot attestation history via server ip.

Endpoint:

Parameters

ParameterTypeRequiredDescription
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Request Body

FieldTypeRequiredDescription
idstringYesServer ID, should come from the k8s node uid.
hoststringYes
gpusNodeArgs[]YesGPU info for this server

Responses

Status CodeDescription
201Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


List User Servers

List all servers for the authenticated miner.

Endpoint:

Parameters

ParameterTypeRequiredDescription
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Get Server Details

Get details for a specific server.

Endpoint:

Parameters

ParameterTypeRequiredDescription
server_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Remove Server

Remove a server.

Endpoint:

Parameters

ParameterTypeRequiredDescription
server_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Get Runtime Nonce

Generate a nonce for runtime attestation.

Endpoint:

Parameters

ParameterTypeRequiredDescription
server_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Verify Runtime Attestation

Verify runtime attestation with full measurement validation.

Endpoint:

Parameters

ParameterTypeRequiredDescription
server_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Request Body

FieldTypeRequiredDescription
quotestringYesBase64 encoded TDX quote

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Get Attestation Status

Get current attestation status for a server.

Endpoint:

Parameters

ParameterTypeRequiredDescription
server_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.