API Reference

Complete reference documentation for all API endpoints.

Base URL
Productionhttps://api.regentherapy.com/api/v1
Sandboxhttps://sandbox.regentherapy.com/api/v1

Resources

Orders
Create, retrieve, and manage orders
MethodEndpointDescription
GET/ordersList all orders
POST/ordersCreate an order
GET/orders/{id}Get order details
PUT/orders/{id}Update an order
Products
Access and manage product catalog
MethodEndpointDescription
GET/productsList all products
POST/productsCreate a product
GET/products/{id}Get product details
PUT/products/{id}Update a product
Inventory
Track and adjust inventory levels
MethodEndpointDescription
GET/inventoryList inventory levels
PUT/inventoryAdjust inventory
Commissions
View commissions and schedule payouts
MethodEndpointDescription
GET/commissionsList commissions
POST/commissionsSchedule payout
Webhooks
Configure webhook endpoints
MethodEndpointDescription
GET/webhooksList webhook endpoints
POST/webhooksCreate endpoint
DELETE/webhooks/{id}Delete endpoint
API Keys
Manage API keys and permissions
MethodEndpointDescription
GET/api-keysList API keys
POST/api-keysCreate API key
DELETE/api-keys/{id}Revoke API key
Response Format
All API responses follow a consistent JSON structure

Success Response

{
  "success": true,
  "data": { ... },
  "meta": {
    "timestamp": "2026-04-18T14:30:00Z",
    "requestId": "req_abc123"
  }
}

Error Response

{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid input",
    "details": { ... }
  },
  "meta": { ... }
}
Error Codes
Standard error codes returned by the API
CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid authentication
FORBIDDEN403Insufficient permissions for this action
NOT_FOUND404Requested resource does not exist
VALIDATION_ERROR400Invalid input data
CONFLICT409Resource conflict (e.g., duplicate)
RATE_LIMITED429Too many requests
INTERNAL_ERROR500Server error
Pagination
List endpoints support cursor-based pagination
ParameterTypeDefaultDescription
pageinteger1Page number (1-indexed)
limitinteger20Items per page (max: 100)

Pagination Response

{
  "data": [...],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 156,
    "pages": 8
  }
}