API Reference
Decisio API
Build integrations and automate decisions with our RESTful API.
Base URL
api.decisio.ai/v1
Auth
Bearer Token
Format
JSON
Rate Limit
1000/min
Authentication
All API requests require authentication using a Bearer token. Get your API key from the dashboard under Settings → API Keys.
Authorization: Bearer YOUR_API_KEY
API keys are scoped per tenant. Never share your API key publicly.
Endpoints
Authentication
POST
/auth/loginPOST
/auth/refreshPOST
/auth/logoutAgents
GET
/agentsGET
/agents/{agent_id}POST
/agents/{agent_id}/runGET
/agents/{agent_id}/runsDecisions
GET
/decisionsGET
/decisions/{id}POST
/decisions/{id}/approvePOST
/decisions/{id}/rejectProducts
GET
/productsGET
/products/{sku}PATCH
/products/{sku}GET
/products/{sku}/historyIntegrations
GET
/integrationsPOST
/integrationsPOST
/integrations/{id}/syncGET
/integrations/{id}/historyAnalytics
GET
/analytics/dashboardGET
/analytics/revenueGET
/analytics/forecastsGET
/analytics/agent-performanceCode Examples
Run Pricing Agent
bash
curl -X POST https://api.decisio.ai/v1/agents/astra/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tenant_id": "tenant-001",
"sku": "PROD-001",
"context": {
"competitor_prices": [999, 1049, 975],
"current_inventory": 150
}
}'Get Decisions
javascript
const response = await fetch('https://api.decisio.ai/v1/decisions', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const decisions = await response.json();
console.log(decisions);Approve Decision
python
import requests
response = requests.post(
'https://api.decisio.ai/v1/decisions/dec-123/approve',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={'notes': 'Approved after review'}
)
print(response.json())SDKs & Libraries
JavaScript/Node.js
Available
Python
Available
PHP
Coming Soon
Ruby
Coming Soon
Rate Limits
Starter
100 req/min
Burst: 20 req/sec
Professional
1,000 req/min
Burst: 100 req/sec
Enterprise
Custom
Burst: Custom
Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset