All API requests require Bearer token authentication. Include your API token in the Authorization header:
Authorization: Bearer YOUR_API_TOKEN
Obtain your API token from the customer portal after subscribing.
/license/issue
Generate a new license token for a customer.
Customer email address
Plan type: STARTER, PRO, or BUSINESS
Number of license seats
Array of authorized domains
curl -X POST https://trafficorchestrator.com/license/issue -H "Authorization: Bearer YOUR_API_TOKEN" -H "Content-Type: application/json" -d '{
"email": "customer@example.com",
"plan": "PRO",
"seats": 5,
"allowed_domains": ["example.com", "app.example.com"]
}'
{
"ok": true,
"token": "a1b2c3d4e5f6...",
"expires_at": "2026-10-16T00:00:00Z"
}
/license/validate
Validate a license token and domain combination.
License token to validate
Domain making the validation request
curl -X POST https://trafficorchestrator.com/license/validate -H "Content-Type: application/json" -d '{
"token": "a1b2c3d4e5f6...",
"domain": "example.com"
}'
{
"ok": true,
"valid": true,
"plan": "PRO",
"expires_at": "2026-10-16T00:00:00Z"
}
/license/info
Retrieve complete license information including authorized domains.
License token to query
curl -X POST https://trafficorchestrator.com/license/info -H "Content-Type: application/json" -d '{
"token": "a1b2c3d4e5f6..."
}'
{
"ok": true,
"token": "a1b2c3d4e5f6...",
"email": "customer@example.com",
"plan": "PRO",
"seats": 5,
"expires_at": "2026-10-16T00:00:00Z",
"domains": ["example.com", "app.example.com"]
}
API requests are rate limited based on your plan:
All errors return a JSON response:
{
"ok": false,
"error": "Error message description"
}
Common HTTP status codes: