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/v1
Authentication
POST
/api/auth/login
Authenticate user with email/password
POST
/api/auth/oauth
OAuth authentication (Google/Microsoft)
POST
/api/auth/refresh
Refresh access token
POST
/api/auth/logout
Logout and invalidate tokens
Users & Companies
GET
/api/users
List users (admin only)
POST
/api/users
Create new user
GET
/api/users/{id}
Get user details
PUT
/api/users/{id}
Update user
GET
/api/companies
List companies
POST
/api/companies
Create company
Messaging
GET
/api/messages
List messages with pagination
POST
/api/messages
Send new message
GET
/api/messages/{id}
Get message details
GET
/api/conversations
List conversations
POST
/api/conversations/{id}/assign
Assign conversation
Team Inbox
GET
/api/team-inbox/stats
Get team inbox statistics
GET
/api/team-inbox/conversations
List team conversations
POST
/api/team-inbox/assign
Assign conversation to team member
GET
/api/team-inbox/ai-insights
Get AI-powered insights
Phone Numbers
GET
/api/phone-numbers
List phone numbers
POST
/api/phone-numbers
Purchase new phone number
PUT
/api/phone-numbers/{id}
Update phone number settings
DELETE
/api/phone-numbers/{id}
Release phone number
Integrations
GET
/api/integrations
List available integrations
POST
/api/integrations/bandwidth
Configure Bandwidth integration
POST
/api/integrations/teams
Configure Microsoft Teams
GET
/api/integrations/{id}/status
Check integration health
Webhooks
GET
/api/webhooks
List webhook configurations
POST
/api/webhooks
Create webhook endpoint
PUT
/api/webhooks/{id}
Update webhook configuration
DELETE
/api/webhooks/{id}
Delete webhook
Admin
GET
/api/admin/stats
Platform statistics
GET
/api/admin/users
All users management
GET
/api/admin/companies
All companies management
GET
/api/admin/system-health
System health metrics