{"id":3713,"date":"2022-03-23T17:31:38","date_gmt":"2022-03-23T17:31:38","guid":{"rendered":"https:\/\/uptime.com\/blog\/?post_type=changelog&#038;p=3713"},"modified":"2022-03-23T17:31:38","modified_gmt":"2022-03-23T17:31:38","slug":"two-factor-authentication-2fa-for-rest-api","status":"publish","type":"changelog","link":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api","title":{"rendered":"Two Factor Authentication (2FA) for REST API"},"content":{"rendered":"<p>Users required to use 2FA to access Uptime.com will also be required to use it when retrieving an API access token. A new parameter, code:, has been added to the <a href=\"https:\/\/uptime.com\/api\/v1\/auth\/login\/\" target=\"_blank\" rel=\"noopener\">\/auth\/login<\/a> endpoint. Pass the 2FA code provided by your authentication application alongside your credentials to retrieve a token.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3703\" src=\"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code-570x248.png\" alt=\"\" width=\"570\" height=\"248\" srcset=\"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code-570x248.png 570w, https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code-510x222.png 510w, https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code.png 1372w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/p>\n<p>Get started with our <a href=\"https:\/\/uptime.com\/api\/v1\/docs\/\" target=\"_blank\" rel=\"noopener\">API Documentation<\/a>, or our <a href=\"https:\/\/uptime.com\/api\/v1\/\" target=\"_blank\" rel=\"noopener\">browsable API<\/a>.<\/p>\n","protected":false},"template":"","meta":{"_acf_changed":false},"class_list":["post-3713","changelog","type-changelog","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Uptime.com | Changelog<\/title>\n<meta name=\"description\" content=\"Uptime.com shares expertise on all things uptime, availabilty, observability, and website monitoring.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Uptime.com | Changelog\" \/>\n<meta property=\"og:description\" content=\"Uptime.com shares expertise on all things uptime, availabilty, observability, and website monitoring.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api\" \/>\n<meta property=\"og:site_name\" content=\"Uptime.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/uptimemonitor\" \/>\n<meta property=\"og:image\" content=\"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code-570x248.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@UptimeDotCom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api\",\"url\":\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api\",\"name\":\"Uptime.com | Changelog\",\"isPartOf\":{\"@id\":\"https:\/\/uptime.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#primaryimage\"},\"image\":{\"@id\":\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#primaryimage\"},\"thumbnailUrl\":\"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code-570x248.png\",\"datePublished\":\"2022-03-23T17:31:38+00:00\",\"description\":\"Uptime.com shares expertise on all things uptime, availabilty, observability, and website monitoring.\",\"breadcrumb\":{\"@id\":\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#primaryimage\",\"url\":\"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code.png\",\"contentUrl\":\"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code.png\",\"width\":1372,\"height\":596},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/uptime.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changelog\",\"item\":\"https:\/\/uptime.com\/blog\/changelog\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Two Factor Authentication (2FA) for REST API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/uptime.com\/blog\/#website\",\"url\":\"https:\/\/uptime.com\/blog\/\",\"name\":\"Uptime.com\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/uptime.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/uptime.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/uptime.com\/blog\/#organization\",\"name\":\"Uptime.com\",\"url\":\"https:\/\/uptime.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/uptime.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/10\/Uptime.com_Wordmark_Horizontal_Black_Green.png\",\"contentUrl\":\"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/10\/Uptime.com_Wordmark_Horizontal_Black_Green.png\",\"width\":512,\"height\":83,\"caption\":\"Uptime.com\"},\"image\":{\"@id\":\"https:\/\/uptime.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/uptimemonitor\",\"https:\/\/x.com\/UptimeDotCom\",\"https:\/\/www.linkedin.com\/company\/uptime-com\/\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Uptime.com | Changelog","description":"Uptime.com shares expertise on all things uptime, availabilty, observability, and website monitoring.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api","og_locale":"en_US","og_type":"article","og_title":"Uptime.com | Changelog","og_description":"Uptime.com shares expertise on all things uptime, availabilty, observability, and website monitoring.","og_url":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api","og_site_name":"Uptime.com","article_publisher":"https:\/\/www.facebook.com\/uptimemonitor","og_image":[{"url":"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code-570x248.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@UptimeDotCom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api","url":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api","name":"Uptime.com | Changelog","isPartOf":{"@id":"https:\/\/uptime.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#primaryimage"},"image":{"@id":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#primaryimage"},"thumbnailUrl":"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code-570x248.png","datePublished":"2022-03-23T17:31:38+00:00","description":"Uptime.com shares expertise on all things uptime, availabilty, observability, and website monitoring.","breadcrumb":{"@id":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#primaryimage","url":"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code.png","contentUrl":"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/03\/auth-login-code.png","width":1372,"height":596},{"@type":"BreadcrumbList","@id":"https:\/\/uptime.com\/blog\/changelog\/two-factor-authentication-2fa-for-rest-api#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/uptime.com\/blog"},{"@type":"ListItem","position":2,"name":"Changelog","item":"https:\/\/uptime.com\/blog\/changelog"},{"@type":"ListItem","position":3,"name":"Two Factor Authentication (2FA) for REST API"}]},{"@type":"WebSite","@id":"https:\/\/uptime.com\/blog\/#website","url":"https:\/\/uptime.com\/blog\/","name":"Uptime.com","description":"","publisher":{"@id":"https:\/\/uptime.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/uptime.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/uptime.com\/blog\/#organization","name":"Uptime.com","url":"https:\/\/uptime.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/uptime.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/10\/Uptime.com_Wordmark_Horizontal_Black_Green.png","contentUrl":"https:\/\/uptime.com\/blog\/wp-content\/uploads\/2022\/10\/Uptime.com_Wordmark_Horizontal_Black_Green.png","width":512,"height":83,"caption":"Uptime.com"},"image":{"@id":"https:\/\/uptime.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/uptimemonitor","https:\/\/x.com\/UptimeDotCom","https:\/\/www.linkedin.com\/company\/uptime-com\/"]}]}},"_links":{"self":[{"href":"https:\/\/uptime.com\/blog\/wp-json\/wp\/v2\/changelog\/3713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uptime.com\/blog\/wp-json\/wp\/v2\/changelog"}],"about":[{"href":"https:\/\/uptime.com\/blog\/wp-json\/wp\/v2\/types\/changelog"}],"wp:attachment":[{"href":"https:\/\/uptime.com\/blog\/wp-json\/wp\/v2\/media?parent=3713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}