Mender blog

Personal Access Tokens simplify the API-based integration with Hosted Mender

It is now possible to generate and use Personal Access Tokens on Hosted Mender when performing management API calls.

Before the introduction of this feature, the only way to obtain a JWT token to perform API calls was using the log-in end-point. However, the token returned lasts one week only. Therefore, storing and reusing it, for example, from a CI/CD pipeline or a scheduled job, is not practical.

Personal Access Tokens are long-lived JWT tokens that you can use to programmatically access the Mender management APIs without logging in each time you need to perform API calls or handling the JWT token expiration.

Personal Access Tokens act as API keys you can use from your CI/CD pipelines or scheduled jobs to access the Mender management APIs. The Personal Access Tokens impersonate the user who generated them, including all the permissions and roles associated with the user.

You can generate a Personal Access Token using the web-based UI from the "My profile":

create%20new%20token

You can specify a descriptive name for your token and an expiration time ranging from one week to one year. In the same view, you can also list and, eventually, revoke your tokens:

revoke%20access%20token

In our documentation, you can read more about using the management APIs, including the Personal Access Tokens.

Recent articles

New Release – Hosted Mender 4.2.0: Stronger account security and a refreshed management experience

New Release – Hosted Mender 4.2.0: Stronger account security and a refreshed management experience

Discover the latest updates in Hosted Mender 4.2.0, featuring enhanced security, unified login options, and improved device management for IoT solutions.
New in Mender: Introducing support for Yocto 6.0 Wrynose LTS

New in Mender: Introducing support for Yocto 6.0 Wrynose LTS

Mender introduces support for Yocto 6.0 Wrynose LTS, updating components and enhancing compatibility. Discover the latest features and improvements for seamless IoT updates.
Industry insights from STMicroelectronics and Northern.tech

An expert Q&A session on the EU Cyber Resilience Act: Industry insights from STMicroelectronics and Northern.tech

Explore expert insights on the EU Cyber Resilience Act, its implications for IoT products, and essential compliance strategies from industry leaders.
View more articles

Learn why leading companies choose Mender

Discover how Mender empowers both you and your customers with secure and reliable over-the-air updates for IoT devices. Focus on your product, and benefit from specialized OTA expertise and best practices.

 
sales-pipeline_295756365