Organizations
Organization dashboard endpoint for account-level rollups.
GET/v1/organizations/:id/dashboard
Request
curl "https://api.oilpriceapi.com/v1/organizations/org_123/dashboard" \
-H "Authorization: Token YOUR_API_KEY"
Response
{
"status": "success",
"data": {
"organization_id": "org_123",
"name": "Acme Energy",
"plan": "enterprise",
"usage": {
"monthly_limit": 1000000,
"used": 425000,
"remaining": 575000
},
"members": 8,
"api_keys": 3
}
}
Error Cases
| Status | When |
|---|---|
401 | Missing or invalid API key |
403 | Key is not authorized for the organization |
404 | Organization id not found |