Caddie and Contracts
Use Caddie workflow chat and smart contract generation, testing, deployment, and verification endpoints.
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/ai/workflow/chat/history | Get chat history for a workflow or session |
GET | /v1/ai/workflow/chat/sessions | List chat sessions for the current organization |
POST | /v1/ai/workflow/chat/stream | Stream AI chat for workflow generation and updates via SSE |
POST | /v1/contract | Create a new contract project |
DELETE | /v1/contract/{id} | Delete a contract project by ID |
GET | /v1/contract/{id} | Get a contract project by ID |
PUT | /v1/contract/{id} | Update a contract project |
POST | /v1/contract/{id}/audit | Run audit for a contract project |
POST | /v1/contract/{id}/deploy/approve | Approve and initiate contract deployment to testnet or mainnet |
GET | /v1/contract/{id}/download | Download contract project as Foundry ZIP |
POST | /v1/contract/{id}/fix | Trigger AI auto-fix for a contract with failed tests |
POST | /v1/contract/{id}/plan/approve | Approve a contract plan to proceed with code generation |
POST | /v1/contract/{id}/test | Run tests for a contract project |
GET | /v1/contract/{id}/verification-status | Check verification status for all deployments of a contract project |
POST | /v1/contract/chat/stream | Stream AI chat for smart contract development via SSE |
GET | /v1/contract/projects/{id}/stream | Stream contract project events |
GET | /v1/contract/session/{sessionId} | Get a contract project by session ID |
GET | /v1/contracts | List contract projects for the organization |
POST | /v1/contracts/{id}/verify | Verify a deployed contract's source code on block explorer (Etherscan, Basescan, etc.) |
