Get your API token

Create an API token in the correct Mobile Locker region and make it available to your scripts and API requests.

Create an API token in the admin portal and make it available to your scripts and API requests.

Create a token

Use the Mobile Locker region where your account is stored:

  • Global region: app.mobilelocker.com
  • European region: eu.mobilelocker.com
  1. Open My Account > API Tokens in the correct admin portal region:
  1. Click New Token and enter a name for the token.
  1. Copy the token value.
1806

What's next

Choose one way to make your token available to your scripts and tools.

  1. Set ML_API_TOKEN in your environment.
export ML_API_TOKEN="YOUR_TOKEN_HERE"
  1. Optional: save the token in $HOME/.mobilelocker and load it from your script.
ML_API_TOKEN=YOUR_TOKEN_HERE

Keep your API token secret. Do not commit it to a Git repository or share it with other people.

Requirements

Use HTTPS for all API requests. Requests over plain HTTP fail. Requests without authentication also fail.