5 minute setup
Quick Start Guide
Get up and running with the Regen Therapy API in just a few minutes. This guide will walk you through creating your first API key, making your first request, and setting up webhooks.
Prerequisites
You need a Regen Therapy partner account with API access enabled. If you do not have an account yet,sign up here.
1
Create Your API Key
Navigate to your dashboard and create a new API key. Store it securely - you will only see it once.
API Key Settings
- Go to Dashboard > Settings > API Keys
- Click Create New API Key
- Enter a descriptive name (e.g., “Production Integration”)
- Select the required scopes for your integration
- Click Create and copy your key
Keep Your Key Secret
Treat your API key like a password. Never commit it to version control or expose it in client-side code.
Recommended Scopes
read:ordersView orders
write:ordersCreate/update orders
read:productsView product catalog
read:inventoryCheck stock levels
2
Make Your First API Request
Test your API key by fetching your product catalog. Choose your preferred language below.
curl -X GET "https://gateway.regentherapy.com/api/v1/products" \
-H "X-API-Key: rg_your_api_key_here" \
-H "Content-Type: application/json" Expected Response
{
"success": true,
"data": {
"data": [
{
"id": "prod_abc123",
"name": "Premium CBD Oil 1000mg",
"sku": "CBD-OIL-1000",
"basePrice": 99.99,
"isActive": true,
"inventory": {
"total": 250,
"available": 218
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 45,
"pages": 3
}
},
"meta": {
"timestamp": "2024-04-17T10:30:00Z",
"requestId": "req_xyz789"
}
}3
Create Your First Order
Now let us create an order programmatically. This demonstrates the full order creation flow.
curl -X POST "https://gateway.regentherapy.com/api/v1/orders" \
-H "X-API-Key: rg_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"customerId": "cus_abc123",
"items": [
{
"productId": "prod_xyz789",
"quantity": 2
}
],
"shippingAddress": {
"line1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"postalCode": "94102",
"country": "US"
}
}'4
Set Up Webhooks (Recommended)
Webhooks allow you to receive real-time notifications about events in your account, such as order status changes or inventory updates.
Register a Webhook Endpoint
curl -X POST "https://gateway.regentherapy.com/api/v1/webhooks" \
-H "X-API-Key: rg_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "My Integration Webhook",
"url": "https://your-server.com/webhooks/regentherapy",
"subscribedEvents": [
"order.created",
"order.shipped",
"order.delivered",
"inventory.low_stock"
]
}'Webhook Security
When you create a webhook, you will receive a signing secret. Use this to verify that incoming webhooks are genuinely from Regen Therapy.Learn more about webhook verification
5
Explore the Full API
You are now ready to explore the full Regen Therapy API. Here are some next steps:
API Reference
Complete documentation for all endpoints
SDK Libraries
Official SDKs for JavaScript, Python, and PHP
Webhooks Guide
Complete webhook events catalog
Interactive Explorer
Try API calls directly in your browser
Need Help?
Our developer support team is here to help you succeed