### Generate Access Token API Source: https://api.chat360.io/ This endpoint allows you to generate an access token by providing your Chat360 login credentials (email and password). ```APIDOC ## POST /api/auth/login ### Description Generates an access token using Chat360 login credentials. ### Method POST ### Endpoint https://app.chat360.io/api/auth/login ### Parameters #### Request Body - **email** (string) - Required - Your Chat360 login email. - **password** (string) - Required - Your Chat360 login password. ### Request Example ```json { "email": "test@chat360.io", "password": "Test12***" } ``` ### Response #### Success Response (200) - **user** (object) - Contains user details. - **permission_routing** (array) - List of user permissions. - **navbar_routing** (array) - List of navigation routes available to the user. - **access** (string) - The access token. - **refresh** (string) - The refresh token. - **can_takeover** (boolean) - Indicates if the user can take over sessions. #### Response Example ```json { "user": { "id": 001, "email": "test@chat360.io", "first_name": "Test", "last_name": "Chat360", "phone_number": "1234567890", "avatar": "https://chat360-mediafiles.s3.amazonaws.com/media/user_avatars/batman.jpg", "website": "https://app.chat360.io/", "city": "city", "address": "address", "state": "state", "zipcode": "123456", "country": "India", "role": "AM", "google_granted_acc": null, "uuid": "d3b49077-5f7a-4fbc-b008-37f93c490c5a", "created_by": null, "ext_db_label": "default", "membership": { "membership_hash": "15f7814e-c763-45cc-8d53-********", "owner_email": "test@chat360.io", "free_trial_start": "2022-04-12T09:42:01.108075", "created_on": "2022-04-12T09:42:01.108091", "updated_on": "2023-01-11T05:17:27.334860", "plan_id": "369dc833-9967-4a8b-b642-*******" } }, "permission_routing": [ "LoginConfig", "LogoutConfig", "Error404Config", "ProfileConfig", "RegisterConfig", "AdminConfig", "BotManagmentConfig", "ResetPasswordPageConfig", "ChatAppConfig", "WhatsAppConfig", "MailConfirmPageConfig", "ForgotPasswordPageConfig", "PaymentsConfig", "ChatDataConfig" ], "navbar_routing": [ "BotManagmentNavConfig", "AdminNavConfig", "ChatAppNavConfig", "WhatsAppNavConfig", "PaymentsNavConfig", "ChatDataNavConfig" ], "access": "******************V1QiLCJhbGciOiJIUzI1NiJ9.*****************************************************************************************************************************.4GC_idkS0PqE-9xOl_QMTLuDqjh8MBI8dPX2GNkoUF8", "refresh": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY4NDM4NjY0MiwianRpIjoiYWFlYmVhMTU1YzI2NGZkYjllMWM3OWRkNmUzNmQxNDciLCJ1c2VyX2lkIjo4MjF9.UA76Tg8nQ9lmDkFLu5c0Ns0p0WE97wel4s9udviXbMk", "can_takeover": true } ``` ``` -------------------------------- ### Generate Access Token API (cURL) Source: https://api.chat360.io/ This snippet demonstrates how to generate an access token using the Chat360 API. It requires your Chat360 login email and password. The API returns user information, permissions, and access/refresh tokens upon successful authentication. ```cURL curl --location 'https://app.chat360.io/api/auth/login' \ --data-raw '{ "email": "test@chat360.io", "password": "Test12***" }' ``` -------------------------------- ### Generate Access Token API Request Body (JSON) Source: https://api.chat360.io/ This JSON object represents the request body required to generate an access token for the Chat360 API. It includes the user's email and password for authentication. ```json { "email": "*************", "password": "***********" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.