Backend Documentation
Complete backend API reference, database schemas, and administrative setup guides for Never Busy platform.
REST API
Complete REST API reference with authentication, endpoints, and examples.
35 endpoints
Database Schema
PostgreSQL database schemas with relationships and indexes.
5 tables
Webhooks
Real-time webhook events and payload specifications.
10 events
Setup Guide
Infrastructure setup and deployment instructions.
Production ready
API Authentication
All API requests require authentication using JWT tokens or API keys.
Authentication Methods
Bearer Token (JWT)
User session authentication
Authorization: Bearer <token>API Key
Server-to-server authentication
X-API-Key: <api_key>Base URL
https://api.neverbusy.com/v1Authentication
POST
/api/auth/loginAuthenticate user with email/password
POST
/api/auth/oauthOAuth authentication (Google/Microsoft)
POST
/api/auth/refreshRefresh access token
POST
/api/auth/logoutLogout and invalidate tokens
Users & Companies
GET
/api/usersList users (admin only)
POST
/api/usersCreate new user
GET
/api/users/{id}Get user details
PUT
/api/users/{id}Update user
GET
/api/companiesList companies
POST
/api/companiesCreate company
Messaging
GET
/api/messagesList messages with pagination
POST
/api/messagesSend new message
GET
/api/messages/{id}Get message details
GET
/api/conversationsList conversations
POST
/api/conversations/{id}/assignAssign conversation
Team Inbox
GET
/api/team-inbox/statsGet team inbox statistics
GET
/api/team-inbox/conversationsList team conversations
POST
/api/team-inbox/assignAssign conversation to team member
GET
/api/team-inbox/ai-insightsGet AI-powered insights
Phone Numbers
GET
/api/phone-numbersList phone numbers
POST
/api/phone-numbersPurchase new phone number
PUT
/api/phone-numbers/{id}Update phone number settings
DELETE
/api/phone-numbers/{id}Release phone number
Integrations
GET
/api/integrationsList available integrations
POST
/api/integrations/bandwidthConfigure Bandwidth integration
POST
/api/integrations/teamsConfigure Microsoft Teams
GET
/api/integrations/{id}/statusCheck integration health
Webhooks
GET
/api/webhooksList webhook configurations
POST
/api/webhooksCreate webhook endpoint
PUT
/api/webhooks/{id}Update webhook configuration
DELETE
/api/webhooks/{id}Delete webhook
Admin
GET
/api/admin/statsPlatform statistics
GET
/api/admin/usersAll users management
GET
/api/admin/companiesAll companies management
GET
/api/admin/system-healthSystem health metrics