First Login
After installing OPBX, you either log in with the seeded owner account or register a new organization. This guide walks you through both.
The Seeded Owner Account
On a fresh database, the app container seeds one organization and one owner:
| Item | Value |
|---|---|
| Organization | Default Organization (slug default-org, timezone UTC) |
| Name | Admin User |
admin@example.com | |
| Password | password |
| Role | Owner |
Seeding runs only when the organizations table is empty. Sign in with this account and change the password immediately (see Change your password), or remove the account once you have your own owner.
Sign in
Who can do this: any active user of an active organization.
- Open
http://localhost/ui/login(use your own host andAPP_PORTif you changed them). - Enter your Email and Password.
- Optionally check Remember me to stay signed in on this browser.
- Click Log In.
The toast "Login successful!" appears and the Dashboard opens.
| Remember me | Session lasts | Closing the browser |
|---|---|---|
| Unchecked (default) | 24 hours | Signs you out (the session belongs to this browser tab) |
| Checked | 30 days | Keeps you signed in |
Signing in again with your email and password ends your earlier sessions on every device.
| Message | Meaning |
|---|---|
| Invalid credentials. | Wrong email or password |
| Your account is not active. Please contact support. | The user is inactive or still pending |
| Your organization is not active. Please contact support. | The organization is suspended |
| Too many login attempts. Please try again later. | More than 5 attempts per minute from your IP address (RATE_LIMIT_AUTH) |
Other controls on the page:
- Forgot password? does not send an email. It shows "Contact your administrator to reset password". An Owner or PBX Admin sets a new password on the Users page; on the server,
docker compose exec app php artisan user:reset-password user@example.comprompts for a new one. - Create an organization opens the registration page.
- When Auth0 sign-in is configured, Google and GitHub buttons appear below the form. See Auth0 Setup.
Platform Managers
A platform manager administers all organizations (see Platform Management). Neither the seeded account nor a registered owner is one. Create one from the command line:
docker compose exec app php artisan opbx:create-platform-manager # interactive: promote an existing user, or create a new user and organization
docker compose exec app php artisan opbx:set-platform-manager admin@example.com
docker compose exec app php artisan opbx:revoke-platform-manager admin@example.com
opbx:create-platform-manager asks for an email. An existing user is promoted after confirmation. For a new email it asks for a name, a password (at least 8 characters) and an organization name; it uses the organization with that name if one exists, or creates it, and makes the user its Owner. Revoking signs the user out of every session, and the last platform manager cannot be revoked. The user must sign in again to see the Platform Management section.
Register a New Organization
Who can do this: anyone who can reach the page. Each registration creates a separate organization.
- Open
http://localhost/ui/register(or click Create an organization on the login page). - On Create Organization, enter the Organization Name and pick a Timezone (default Eastern Time, New York). Click Continue.
- On Create Admin Account, enter Your Name, Email Address, Password and Confirm Password. The email is checked as you type ("Email looks good!" when it passes).
- Click Create Organization.
The toast "Organization registered successfully!" appears, you are signed in as the organization's Owner, and the Dashboard opens. Back returns to the first step without losing what you typed.
| Field | Requirements |
|---|---|
| Organization Name | 2 to 100 characters, unique across the system. The form accepts letters, digits, spaces, hyphens, underscores, apostrophes and periods |
| Timezone | Required, picked from the list |
| Your Name | 2 to 100 characters |
| Email Address | Valid email with a real domain, not used by any other account. Used to sign in |
| Password and Confirm Password | At least 8 characters, with uppercase, lowercase, a number and a special character |
The page does not ask for an organization slug; it is made from the name. The API (POST /v1/auth/register) accepts an optional organization.slug (2 to 50 characters, lowercase letters, digits and hyphens, unique).
When reCAPTCHA is enabled (RECAPTCHA_ENABLED=true), the form is also checked with reCAPTCHA v3 ("Security verification failed. Please try again." when it fails). Registration is limited to 10 attempts per hour per IP address ("Too many registration attempts. Please try again in 1 hour.").
Use a strong, unique password for the admin account. This account has full access to your organization.
Authentication
OPBX authenticates with Laravel Sanctum Bearer tokens, for the web app and API clients alike. Login returns an access_token in JSON, valid for 24 hours, or 30 days when the request sends "remember": true; the API does not use session cookies.
The frontend (AuthContext) stores the token as opbx_token and attaches it to every API request via an Axios interceptor. With Remember me the token is kept in localStorage (survives a browser restart); otherwise in sessionStorage (cleared when the tab or browser closes).
Dashboard Overview
After login, you land on the Dashboard. It shows:
- Counters: Active Calls, Extensions, Phone Numbers and Conference Rooms. Click a counter to open that page.
- Last Calls: the latest call records of your organization (Time, From, To, Status, Duration), or "No recent calls" on a new organization.
Supervisors see Assigned Users, Assigned Ring Groups and Active Calls counters, the lists of their assigned users and ring groups, and Recent Calls for the resources assigned to them. The page refreshes every 15 seconds (30 seconds for Supervisors).

First Steps After Login
Complete these tasks in order to get your PBX operational:
1. Configure Cloudonix Integration
Click your name at the top right and choose Settings (Owner only). Enter your Cloudonix credentials to enable telephony features.
See the Cloudonix Integration guide for detailed instructions.
2. Create Extensions
Go to Extensions in the sidebar and create extensions for your team members. Each extension represents a phone endpoint in your system.
Extensions can be:
- User extensions: Assigned to people with SIP phones
- Conference rooms: Multi-party audio bridges
- Ring groups: Groups that ring together
- IVR menus: Automated phone menus
- AI assistants: Routes to AI providers
- AI load balancers: Distributes calls across AI providers
- Call queues: Callers wait on hold until an agent is free
- Forward: Forwards calls to external numbers
- Custom logic: Advanced routing via webhooks
3. Set Up Phone Numbers (DIDs)
Navigate to Phone Numbers to add your phone numbers. DIDs (Direct Inward Dialing numbers) are the phone numbers callers dial to reach your organization.
Each DID routes to a destination such as:
- A specific extension
- A ring group
- A call queue
- An IVR menu
- Business hours routing
- A conference room
- An AI assistant or AI load balancer
- Unavailable, set only when you edit a number (Disconnect): callers hear "Destination doesn't exist" and the call ends
4. Configure Call Routing
Set up how incoming calls flow through your system:
- Define business hours if you want time-based routing
- Create ring groups for departments (Sales, Support, etc.)
- Build IVR menus for self-service options
- Assign DIDs to their destinations
Make test calls to verify your configuration works as expected before announcing new numbers to customers.
Related API Endpoints
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /v1/auth/register | Create organization and owner account |
| GET | /v1/auth/register/validate | Check whether an organization name (organization_name), admin email (admin_email) or slug (slug) is still available |
| POST | /v1/auth/login | Authenticate and receive a token |
| GET | /v1/auth/me | Retrieve current user |
| POST | /v1/auth/logout | Revoke current token |
| POST | /v1/auth/refresh | Refresh access token |
| GET | /v1/config/application | Public settings the login and register pages read (reCAPTCHA, Auth0) |
See the OPBX REST API reference for request/response schemas.
Next Steps
With your initial setup complete, you are ready to:
If you encounter issues during setup, check the logs with docker compose logs -f app and verify all services are running with docker compose ps.