<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y0000AOg1UpSQJOkta Classic EngineAdministrationAnswered2026-04-01T09:00:20.000Z2021-02-03T00:49:58.000Z2021-02-08T23:07:03.000Z

SpencerM.38432 (Customer) asked a question.

Getting SAML 2.0 Setup Instructions via the API

Is there a way to get the Identity Provider Single Sign-On URL, Identity Provider Issuer and X.509 Certificate values from an Application through the API? These values are found in the page "How to Configure SAML 2.0 for <app_name> Application". The page is normally accessed with https://myinstance-admin.okta.com/app/application_name_label/id/setup/help/SAML_2_0/instructions


  • k5fuw (k5fuw)

    Not the entire page of instructions, but you can get those metadata values by first querying the Apps API for your app (GET). A successful query will return the application object for your app, and down in the "_links" section you'll find one labeled metadata, with the URL to your app's metadata, which should contain those values.

     

    The application object is documented here:

    https://developer.okta.com/docs/reference/api/apps/#application-object

     

    Expand Post
  • SpencerM.38432 (Customer)

    Hmmm, that looks like the data that I am looking for. I am just having trouble getting it using API calls. Is it possible to use an API call to get the XML response for the metadata link? I am currently using the API token as a header in my API call.

This question is closed.
Loading
Getting SAML 2.0 Setup Instructions via the API