{"id":61496,"date":"2021-04-16T05:26:15","date_gmt":"2021-04-16T13:26:15","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/devops\/?p=61496"},"modified":"2024-08-20T10:03:48","modified_gmt":"2024-08-20T18:03:48","slug":"personal-access-token-lifecycle-apis-now-publicly-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/personal-access-token-lifecycle-apis-now-publicly-available\/","title":{"rendered":"Personal Access Token Lifecycle APIs in general availability"},"content":{"rendered":"<p><div class=\"alert alert-info\">The PAT Lifecycle APIs have been in general availability. This blog post title has been updated to reflect this. (August 2024).<\/div><\/p>\n<p>Since releasing our <strong>Personal Access Token (PAT) Lifecycle Management APIs<\/strong> in <a href=\"https:\/\/devblogs.microsoft.com\/devops\/new-personal-access-token-lifecycle-apis-in-private-preview\/\">private preview<\/a> last month, we\u2019ve received overwhelming interest from folks who are looking for a more robust alternative to the existing UI for creating and managing their PATs.<\/p>\n<p>This API will be of great interest to organizations who are looking to strengthen their security posture and reduce risk against potential attackers through frequent PAT rotation. Given how powerful PATs can be and the access they can grant to your Azure DevOps resources, it is good practice to rotate your PATs on a regular basis. Since PATs have an expiration date set at time of creation, it\u2019s even more critical to rotate PATs to ensure applications that are reliant on them keep running smoothly.<\/p>\n<p>Many private preview participants have been able to leverage these APIs to set up automated pipelines for rotating soon-to-be-expired PAT tokens being used within their apps. Gone are the days of manual rotation for yours PATs every few months, phew!<\/p>\n<p>We are happy to announce that these APIs are now available to the general audience. To learn how to use these APIs, we\u2019ve provided <a href=\"https:\/\/docs.microsoft.com\/azure\/devops\/organizations\/accounts\/manage-personal-access-tokens-via-api\">new public documentation<\/a> on:<\/p>\n<ol>\n<li>how to authenticate API calls with a valid AAD token,<\/li>\n<li>what methods are available in the <a href=\"https:\/\/docs.microsoft.com\/rest\/api\/azure\/devops\/tokens\/pats\" rel=\"noopener\" target=\"_blank\">API Reference<\/a>,<\/li>\n<li>and a sample application you can use to see how the API is being used.<\/li>\n<\/ol>\n<p>To learn more about the API and commonly asked questions, like \u201c<em>Why do we need to authenticate with an AAD token<\/em>\u201d, check out the <a href=\"https:\/\/docs.microsoft.com\/azure\/devops\/organizations\/accounts\/manage-personal-access-tokens-via-api#faq\">FAQ section<\/a> in the documentation.<\/p>\n<p>We know that this has been a highly requested feature by you and your teams, so we\u2019re happy to deliver this new tool to help alleviate PAT maintenance overload and allow your teams to focus on other work that matters.<\/p>\n<p>To share any feedback you have on how you\u2019ve been using the API or how it can be improved, please don\u2019t hesitate to comment on the blog post below or share it with the <a href=\"https:\/\/developercommunity.visualstudio.com\/search?space=21\">Developer Community<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since releasing our Personal Access Token (PAT) Lifecycle Management APIs in private preview last month, we\u2019ve received overwhelming interest from folks who are looking for a more robust alternative to the existing UI for creating and managing their PATs. We are happy to announce that these APIs are now available to the general audience.<\/p>\n","protected":false},"author":43580,"featured_media":61504,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-61496","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>Since releasing our Personal Access Token (PAT) Lifecycle Management APIs in private preview last month, we\u2019ve received overwhelming interest from folks who are looking for a more robust alternative to the existing UI for creating and managing their PATs. We are happy to announce that these APIs are now available to the general audience.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/61496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/43580"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=61496"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/61496\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/61504"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=61496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=61496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=61496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}