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,
-
Retrieving the token Retrieving the automation token Retrieving profile, folder, and workspace IDs Retrieving the user ID Running Multilogin in a Docker container Setting up automatic cookie collection Selenium automation example Playwright automation example Puppeteer automation example Logging in to Multilogin automatically Auto-launching the agent Getting started with Postman Creating a profile with Postman Starting a profile with Postman Stopping a profile with Postman Updating a profile with Postman Creating a quick profile with Postman Automation FAQ
-
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 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 automation token
![](https://secure.gravatar.com/avatar/a684ea7f7edb2ed41e28adcffadcbf59.png?s=96&d=blank)
Written by Jason Nguyen
Updated on June 4th, 2024
Table of contents
Looking for more powerful ways to scale your processes with API? Meet our automation token! Unlike your typical user token, this one comes with a longer expiration period and higher rate limits.
https://api.multilogin.com/workspace/automation_token?expiration_period=<string>
Remember: You don't need to generate an automation token for every request. You can create it once and use multiple times.
Using Postman
Workspace owner
- Complete all three steps from this article, including “Using the bearer token”: they will allow you to sign in correctly
- Go to the “Profile Access Management” folder in your Postman workspace and select “GET Workspace Automation Token”
- In the “Params” tab, fill in the value for the
expiration_period
parameter: this will determine how long the token will last for (check the “Description” column for example values) - Click “Send” to execute the request
- When the token expires, send another request to generate a new one
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/16296/4048244/1715293596956-Automation2Btoken20240509-107-r97h41.png)
Team member
- Sign in to your team member account using the “POST User Signin” endpoint
- Copy the
refresh_token
value from the response
![User Signin](https://p483.p1.n0.cdn.zight.com/items/jkupnPpy/6616e8fb-f21e-4b69-b4e8-5e83f3d31ab5.png)
- Go to the "Profile Access Management" folder in your Postman workspace and select “POST User Refresh Token”
- Go to the “Body” tab and fill in the following values:
-
email
: Your team member email -
refresh_token
: The value from step 2 -
workspace_id
: The ID of the target workspace
-
- Go to the "Tests" section, add the following code and save the changes:
const response = pm.response.json()
const token = response['data']['token']
pm.collectionVariables.set("token", token)
- Click "Send" to execute the request
- Repeat steps 2 to 4 of the “Workspace owner” section
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/16296/4048279/1715295211012-User%2BRefresh%2BToken.png)
Troubleshooting
After sending the request correctly, you should see response code 200, which means success.
If you encounter any issues, you might get the following error codes:
- 401 - Incorrect JWT token: This means your sign-in token has expired, or you haven't added the bearer token to your request. To fix this in Postman, sign in again using the “POST User Signin” endpoint and ensure you follow all steps, including obtaining the bearer token.
-
400 - Invalid refresh token: This indicates you've entered the wrong value for
refresh_token
. Double-check the description column for examples. -
400 - Incorrect expiration period: This indicates you've entered the wrong value for
expiration_period
. Double-check the “Description” column for examples.