API Reference
The Case AI API provides programmatic access to browse wine products, place orders, and manage your account.Base URL
Endpoints
Products
| Method | Endpoint | Description |
|---|---|---|
| GET | /products | List all products with filtering |
| GET | /products/{id} | Get a specific product |
Suppliers
| Method | Endpoint | Description |
|---|---|---|
| GET | /suppliers | List all verified suppliers |
| GET | /suppliers/{id} | Get supplier details |
| GET | /suppliers/{id}/products | Get supplier’s products |
Orders
| Method | Endpoint | Description |
|---|---|---|
| POST | /orders | Create a new order |
| GET | /orders | List your orders |
| GET | /orders/{id} | Get order details |
| POST | /orders/{id}/cancel | Cancel an order |
Webhooks
| Method | Endpoint | Description |
|---|---|---|
| POST | /webhooks | Register a webhook |
| GET | /webhooks | List your webhooks |
| DELETE | /webhooks/{id} | Delete a webhook |
Account
| Method | Endpoint | Description |
|---|---|---|
| GET | /account | Get your account info |