Developers
API Documentation
Integrate METASONIC into your applications with our powerful API. Build custom solutions and automate your workflow.
API Overview
RESTful API endpoints for developers to build on top of METASONIC.
Authentication
Secure API key authentication for all endpoints. Generate your API key from the dashboard.
POST /api/authProducts
List, search, and manage products programmatically. Filter by category, price, and more.
GET /api/productsPayments
Process payments, create invoices, and manage subscriptions with our payment API.
POST /api/paymentsUsers
Manage user accounts, profiles, and permissions. Create, update, and delete users.
GET /api/usersAnalytics
Access sales data, user metrics, and business intelligence through our analytics API.
GET /api/analyticsWebhooks
Receive real-time notifications for events like payments, user signups, and product updates.
POST /api/webhooksAPI Endpoints
Complete reference for all available API endpoints.
| Method | Endpoint | Description | Auth |
|---|---|---|---|
| GET | /api/products |
List all products | Optional |
| GET | /api/products/{id} |
Get product by ID | Optional |
| POST | /api/products |
Create a new product | Required |
| PUT | /api/products/{id} |
Update a product | Required |
| DELETE | /api/products/{id} |
Delete a product | Required |
| GET | /api/categories |
List all categories | Optional |
| POST | /api/orders |
Create an order | Required |
| GET | /api/orders/{id} |
Get order details | Required |
| GET | /api/users |
List users | Required |
| POST | /api/webhooks |
Register webhook | Required |
Example Code
Quick start examples for integrating with our API.
PHP
$client = new ApiClient('YOUR_API_KEY');
// Get all products
$products = $client->get('/api/products');
// Create a new product
$product = $client->post('/api/products', [
'name' => 'New Product',
'price' => 29.99,
'category' => 'software'
]);
JavaScript
fetch('https://api.example.com/api/products', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));
// Create product
fetch('https://api.example.com/api/products', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'New Product',
price: 29.99
})
});
cURL
curl -X GET https://api.example.com/api/products \
-H "Authorization: Bearer YOUR_API_KEY"
# Create product
curl -X POST https://api.example.com/api/products \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"New Product","price":29.99}'