Wraith and WraithAgent classes wrap these endpoints — most developers don’t call them directly.
Authentication
All requests require an API key:Agent Endpoints
Create Agent
.wraith name.
Request:
List Agents
AgentInfo[]
Get Agent by ID
AgentInfo
Get Agent by Name
.wraith name.
Response: AgentInfo
Get Agent by Wallet
AgentInfo
Get Agent Status
Export Private Key
Chat
Send Message
Conversations
List Conversations
Conversation[]
Create Conversation
Conversation
Get Messages
Delete Conversation
Invoices
Get Invoice
Mark Invoice Paid
Notifications
List Notifications
Mark All Read
Clear All
TEE
Health Check
TEE Info
Remote Attestation
Error Responses
All errors return JSON with amessage field:
| Status Code | Meaning |
|---|---|
| 400 | Bad request (missing params, invalid signature) |
| 401 | Unauthorized (invalid API key) |
| 404 | Agent/invoice/conversation not found |
| 409 | Conflict (name already taken) |
| 500 | Server error |

