
daweiw.58389 (Customer) asked a question.
Hi there,
I read through the API reference especially for the User section, I downloaded the Postman collection for OKTA, regardless which APIs ( ListUsers, etc), it always gives me the 404 error, could you be able to advice what is going wrong?
curl --location --request GET 'https://${"okta-domain"}/api/v1/authorizationServers/default' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: SSWS ${"API_Token"}'

You have set your Okta URL and API Key within the postman environment settings?
Joe
Thanks Joe,
Yes, I did replaced the {URL} and the {API Key} with our own value respectively.
something like these:
https://dev-xxxxx.okta.com/oauth2/default
005sLxTYloVnm4xxxxxxxxxxxxxxxbhjdyEfPP0JVqAZ_f
The URL should just be - https://{YourOrg}.okta.com , remove the /oauth/default.
Joe
Thank you Joe, it works now.