API Documentation
Welcome to the #divisions API. This reference covers all available endpoints, authentication methods, and response formats for integrating with our platform.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Authentication
The #divisions API uses Bearer Token authentication. You can generate API keys from your dashboard settings.
Authorization: Bearer your_api_key_here
Token Types
- Read-only: Can fetch data but cannot modify resources
- Admin: Full access to all endpoints and configurations
- Service: For server-to-server integrations (expires after 24h)
Rate Limits
To ensure platform stability, API requests are rate-limited. Limits vary by subscription tier:
| Plan | Requests/Min | Burst Limit |
|---|---|---|
| Starter | 60 | 100 |
| Professional | 1,000 | 1,500 |
| Enterprise | 10,000 | 15,000 |
Rate limit headers are included in every response:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 942
X-RateLimit-Reset: 1698765432
Projects
Returns a paginated list of all projects associated with your account.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number (default: 1) |
| limit | integer | Items per page (default: 20, max: 100) |
| status | string | Filter by: active, archived, draft |
Example Response
{
"data": [
{
"id": "proj_8x72k91",
"name": "Analytics Dashboard v2",
"status": "active",
"created_at": "2024-11-15T08:30:00Z"
}
],
"meta": {
"total": 42,
"page": 1
}
}
Creates a new project. Returns the project object upon success.
Request Body
{
"name": "Mobile App Integration", // required
"description": "Cross-platform sync module",
"tier": "professional",
"team_ids": ["team_123", "team_456"]
}
Analytics
Retrieves real-time and historical analytics for a specific project.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| project_id | string | The unique identifier of the project |
Example Response
{
"project_id": "proj_8x72k91",
"period": "last_30_days",
"metrics": {
"requests_total": 142857,
"avg_latency_ms": 42,
"error_rate": 0.012,
"uptime_percent": 99.98
}
}
Workflows
Updates an existing workflow configuration. Partial updates are supported.
Permanently deletes a workflow. This action cannot be undone.
Error Codes
#divisions uses standard HTTP status codes to indicate success or failure of requests.
| Code | Meaning | Description |
|---|---|---|
| 400 | Bad Request | Your request is invalid or missing required parameters. |
| 401 | Unauthorized | Missing or invalid API key. |
| 403 | Forbidden | Your API key lacks permission for this action. |
| 404 | Not Found | The requested resource does not exist. |
| 429 | Too Many Requests | Rate limit exceeded. Wait before retrying. |
| 500 | Internal Error | Something went wrong on our end. |
{
"error": {
"code": "invalid_request",
"message": "Missing required field: name",
"status": 400
}
}
SDKs & Libraries
Official client libraries are available for popular languages. Community-maintained packages are also listed.
npm install @divisions/sdk
pip install divisions-python