OmniStream CRM API
string · email · requiredstring · minLength: 1 · requiredstring · required
string · requiredstring · email · requiredstring · minLength: 6 · requiredstringstring · uuidstring
Authentication (login, logout, session)
Login with email and password
POST
https://api-chat.bara.my.id
/api/auth/login
Returns a JWT token in both the response body and an httpOnly access_token cookie.
Login with email and password › Request Body
emailpasswordLogin with email and password › Responses
Login successful
tokenJWT token
object · required
Register a new tenant organization
POST
https://api-chat.bara.my.id
/api/auth/register
Self-service tenant registration. Creates a new organization and spawns provisioning in the background. Returns a JWT so the user can start using the app immediately while provisioning completes.
Register a new tenant organization › Request Body
org_nameName of the new organization
admin_emailEmail for the initial admin user
admin_passwordPassword for the initial admin user (min 6 characters)
Register a new tenant organization › Responses
Organization created and provisioning started
tokenJWT token for immediate use
org_idmessage