Contact Us
If you still have questions or prefer to get help directly from an agent, please submit a request.
Popular topics: Multilogin X, Multilogin 6,
-
-
Error: Failed to get IP data: can't connect through proxy Error: Javax.crypto.badpaddingexception: pad block corrupted Status: Update in progress...Loading (1) of 2 components Unable to start Multilogin Unable to start a profile Slow speed issue Error: Fingerprint composition failed Connection error due to non-Latin characters in Windows username Error: Mimic/Stealthfox executable is not found Error installing Multilogin on macOS Browser profile shows "Error" in status Common errors and solutions
Retrieving the token
Written by Yelena Varabyeva
Updated on May 13th, 2024
Table of contents
In order to use the API, you must send a valid token with your requests. This article goes over how to get that authentication token.
The token expires in 1 hour. You can refresh it with the "User Refresh Token" endpoint. Also you can use the automation token and specify the required expiration period yourself.
Using DevTools
- Log in to app.multilogin.com
- Open DevTools in your browser. Here's how to do that for Chromium- and Firefox-based browsers:
- Windows and Linux: press
Ctrl + Shift + I
- macOS: press
Cmd + Option + I
- Windows and Linux: press
- Switch to the "Application" tab in the DevTools panel
- On the left side menu, click “Session storage” → “https://app.multilogin.com”
- Copy the full value of the token attribute
Using Python
Complete the steps below to be able to run the provided script example.
- Install the following Python library: requests
- Insert your values into the below variables in the script:
- USERNAME: your Multilogin X account email
- PASSWORD: your Multilogin X account password (MD5 encryption is not required)
import json
import requests
import hashlib
MLX_BASE = "https://api.multilogin.com"
MLX_LAUNCHER = "https://launcher.mlx.yt:45001/api/v2"
LOCAL_HOST = "http://127.0.0.1"
HEADERS = {'Accept': 'application/json',}
#TODO: Insert your account information in both variables below.
USERNAME = ""
PASSWORD = ""
def sign_in():
payload = {
'email': USERNAME,
'password': hashlib.md5(PASSWORD.encode()).hexdigest()
}
r = requests.post(f'{MLX_BASE}/user/signin', json=payload)
if r.status_code != 200:
print(f'\nFailed to login: {r.text}\n')
else:
response = json.loads(r.text)
token = response.get('data').get('token')
print(token)
return token
# Call the sign_in function to execute it
token = sign_in()