BetaCraft Logo

NetworkCraft API

Backend API server is running. Use Postman or any API client to interact with endpoints.

Server Online

Authentication

POST
/api/auth/register

Register a new user

POST
/api/auth/login

Login user

POST
/api/auth/logout

Logout user

GET
/api/auth/me

Get current user info

Organization

POST
/api/org/create

Create organization

POST
/api/org/invite

Send invite to user

POST
/api/org/invite/accept

Accept invite

GET
/api/org/list

List organizations

GET
/api/org/members

Get organization members

POST
/api/org/switch

Switch organization

Connections

GET
/api/connections

Get all connections

POST
/api/connections

Send connection request

PUT
/api/connections/:id

Update connection status

Contacts

GET
/api/contacts

Get all contacts

POST
/api/contacts

Create contact

GET
/api/contacts/:id

Get contact by ID

PATCH
/api/contacts/:id

Update contact

DELETE
/api/contacts/:id

Delete contact

POST
/api/contacts/import

Import contacts from CSV

GET
/api/contacts/stats

Get contact statistics

Profile

GET
/api/profile

Get user profile

PUT
/api/profile

Update user profile

POST
/api/profile/photo

Upload profile photo

DELETE
/api/profile/photo

Delete profile photo

Admin (Superadmin Only)

GET
/api/admin/organizations

Get all organizations

GET
/api/admin/users

Get all users

PUT
/api/admin/users/:id/role

Update user role