# OKTA different okta domain for different requests

**URL:** <https://community.auth0.com/t/okta-different-okta-domain-for-different-requests/128397>\
**Category:** Get Help\
**Tags:** identifier-first, login-experience\
**Created:** [February 27, 2024, 5:37am UTC](https://community.auth0.com/t/okta-different-okta-domain-for-different-requests/128397 "2024-02-27T05:37:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![babubanti999](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/babubanti999/32/53301_2.png) [@babubanti999](https://community.auth0.com/u/babubanti999)\
**Post date:** [February 27, 2024, 5:37am UTC](https://community.auth0.com/t/okta-different-okta-domain-for-different-requests/128397/1 "2024-02-27T05:37:01Z")

</div>

I’m trying to use the okta api. I was able to use the api to create an authorization server and access policy with my okta domain.

The problem started when I tried adding a rule to the policy. When I tried adding a rule with my regular okta domain which looks like this: `dev-1345678.okta.com`, I got a 200 response but no rule was actually added to the policy. I then checked the request through the browser when adding one through the api and noticed that they’re using a different okta domain which looks like this: `https://dev-1345678-admin.okta.com`. Only when I used that domain did I get a 201 request instead of 200, and the rule was actually created.

How do I know when I need to use the domain with the “admin” in the url and when not?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [February 29, 2024, 6:16pm UTC](https://community.auth0.com/t/okta-different-okta-domain-for-different-requests/128397/3 "2024-02-29T18:16:07Z")

</div>

Hi @babubanti999

Welcome to the Auth0 Community!

It looks like your inquiry is related explicitly to Okta rather than Auth0 (which is a separate product under the Okta brand). Since this forum focuses on Auth0 you might more specialized assistance on the [https://devforum.okta.com/](https://devforum.okta.com/).

The Okta community is a great resource for questions about Okta-specific implementations and features. They have a wealth of knowledge and experience that would be more relevant to your current project.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 14, 2024, 6:16pm UTC](https://community.auth0.com/t/okta-different-okta-domain-for-different-requests/128397/4 "2024-03-14T18:16:38Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
