
LouisC.87571 (Customer) asked a question.
Is it possible to use the API to get the metadata instead of going to the app and, on the sign on tab, clicking on the Identity Provider metadata link? I want to retrieve the entity ID to be able to generate the Identity Provider configuration programmatically in ServiceNow.

Louis,
If you find identity providers by name as described at the link below, a link to the metadata is part of the response.
https://developer.okta.com/docs/api/resources/idps#find-identity-providers-by-name
BJ Lillo
Senior Technical Support Engineer
Okta Global Customer Care
Thank you BJ. What if Okta is the Identity Provider? I have created few applications and their entity ID, provided by the Identity Provider metadata link, are all different and yet the list IDPS API, /api/v1/idps, returns an empty list. How to proceed then?
I think I found it. In the apps API /api/v1/apps/app id/sso/saml/metadata I'm getting what I want.
Thanks again.