Fetch metadataURL through api

How to fetch the metadata URL through api (not the meta in xml format)

Example :
https://dev-509262.oktapreview.com/app/exkfomw1cjQJBOfQt0h7/sso/saml/metadata

When you do GET /app by its ID, you’ll get a link to metadata in “_links” element of the response

...,
"_links": {
    "metadata": { 
         "href": ... 
    }
}
1 Like