Skip to main content
The TEE server exposes a REST API. The SDK’s Wraith and WraithAgent classes wrap these endpoints — most developers don’t call them directly.

Authentication

All requests require an API key:
Optional BYOM headers:

Agent Endpoints

Create Agent

Create a new agent with a .wraith name. Request:
Response:

List Agents

Returns all agents for the authenticated API key. Response: AgentInfo[]

Get Agent by ID

Response: AgentInfo

Get Agent by Name

Look up an agent by .wraith name. Response: AgentInfo

Get Agent by Wallet

Look up an agent by owner wallet address. Response: AgentInfo

Get Agent Status

Returns balance, pending invoices, and other stats. Response:

Export Private Key

Export the agent’s private key. Requires a fresh wallet signature. Request:
Response:

Chat

Send Message

Send a natural language message to the AI agent. Request:
Response:

Conversations

List Conversations

Response: Conversation[]

Create Conversation

Response: Conversation

Get Messages

Response:

Delete Conversation


Invoices

Get Invoice

Response:

Mark Invoice Paid

Idempotent — calling multiple times doesn’t create duplicate notifications.

Notifications

List Notifications

Response:

Mark All Read

Clear All


TEE

Health Check

Response:

TEE Info

Returns TEE environment information.

Remote Attestation

Returns cryptographic proof that the TEE is running authentic code and the agent’s keys were derived correctly.

Error Responses

All errors return JSON with a message field:

Example