API Documentation
HiveForge API
Powerful REST API to integrate with your applications. Manage users, organizations, billing, and more with our comprehensive API endpoints.
Quick Start
Get started with the HiveForge API in minutes
1
Get your API key
Generate an API key from your dashboard settings
2
Make your first request
Use your API key to authenticate requests
3
Start building
Explore our endpoints and build amazing integrations
Base URL
https://api.hiveforge.dev
Authentication
Include your API key in the Authorization header:
Bearer YOUR_API_TOKEN
Example Request
curl -X GET "https://api.hiveforge.dev/auth/me" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"Get current user information
API Endpoints
Authentication
POST
/auth/loginAuthenticate user and return access tokenPOST
/auth/logoutInvalidate user session and tokenAuth Required
POST
/auth/refreshRefresh access token using refresh tokenGET
/auth/meGet current user profile informationAuth Required
Organizations
GET
/organizationsList user's organizationsAuth Required
POST
/organizationsCreate a new organizationAuth Required
GET
/organizations/{id}Get organization detailsAuth Required
PUT
/organizations/{id}Update organization settingsAuth Required
DELETE
/organizations/{id}Delete organizationAuth Required
Users
GET
/organizations/{id}/usersList organization usersAuth Required
POST
/organizations/{id}/usersInvite user to organizationAuth Required
PUT
/organizations/{id}/users/{userId}Update user role and permissionsAuth Required
DELETE
/organizations/{id}/users/{userId}Remove user from organizationAuth Required
Billing
GET
/billing/subscriptionGet current subscription detailsAuth Required
POST
/billing/subscriptionCreate or update subscriptionAuth Required
GET
/billing/usageGet usage metrics for billing periodAuth Required
GET
/billing/invoicesList billing invoicesAuth Required
Response Format
Standard Response Structure
All API responses follow a consistent structure
Success Response
{
"success": true,
"data": {
"id": "usr_123",
"email": "user@example.com",
"name": "John Doe"
},
"message": "User retrieved successfully"
}Error Response
{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key"
},
"details": {
"timestamp": "2024-09-16T10:30:00Z"
}
}HTTP Status Codes
200OK201Created400Bad Request401Unauthorized403Forbidden404Not Found429Rate Limited500Server ErrorRate Limiting
Request Limits
API rate limits to ensure fair usage and system stability
1,000
Free Plan
requests per hour
10,000
Pro Plan
requests per hour
100,000
Enterprise
requests per hour
Rate limit headers included in all responses
Automatic retry with exponential backoff recommended
Higher limits available for enterprise customers
SDKs & Libraries
Official and community-maintained libraries
JavaScript/TypeScriptnpm install @producthacker/hiveforge-sdk
Pythonpip install hiveforge
GoComing Soon
PHPComing Soon
Need Help?
Get support and connect with the community