To create an API token from your MyJFrog account:
Log into MyJFrog and click on your profile icon in the top right-hand corner.
From the drop-down menu, select API Token.
Click Generate Token. A new API token will appear in the text box.
Click Copy to copy the token, and paste it into your script or elsewhere to save it.
Warning
The API token gives you powerful capabilities to edit aspects of your JFrog subscription, so it is crucial that you keep your REST API token secure.
The API token expires after one year.
Note
In the MyJFrog portal > Notification Center, there is a notification regarding the expiration of API tokens, which is currently stated as, "Once the token is about to expire." Notifications are sent to users a certain number of days before the token expires. Specifically, notifications are triggered with these timelines:
30 days before expiration
10 days before expiration
5 days before expiration
1 day before expiration
On the day of expiration
While users can edit the notification recipients (with the default Primary Admin and Admin roles), the timing of these notifications is not configurable.