# How to connect the auth0 management api

**URL:** <https://community.auth0.com/t/how-to-connect-the-auth0-management-api/72316>\
**Category:** Get Help\
**Tags:** api\
**Created:** [October 29, 2021, 11:10am UTC](https://community.auth0.com/t/how-to-connect-the-auth0-management-api/72316 "2021-10-29T11:10:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seki.yoshitsugu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/seki.yoshitsugu/32/32296_2.png) [@seki.yoshitsugu](https://community.auth0.com/u/seki.yoshitsugu)\
**Post date:** [October 29, 2021, 11:10am UTC](https://community.auth0.com/t/how-to-connect-the-auth0-management-api/72316/1 "2021-10-29T11:10:24Z")

</div>

Whether or not the connections described below need to be loaded for each transaction.

```auto
	management, err := management.New(
		domain,
		management.WithClientCredentials(client, secret),
	)

```

Is it a problem to call the connection every time?

Is there a problem of having too many connections?

Is it better to load them once and use them all?

Will there be any interruptions in the process?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 29, 2021, 5:05pm UTC](https://community.auth0.com/t/how-to-connect-the-auth0-management-api/72316/3 "2021-10-29T17:05:47Z")

</div>

Hi @seki.yoshitsugu,

Thanks for reaching out to the Auth0 Community!

I understand that you have some questions about using the Auth0 Management API with the Auth0 Go SDK.

> [@seki.yoshitsugu](#):
>
> Is it a problem to call the connection every time?

You can certainly call the connection every time, and it shouldn’t be a problem. However, there isn’t a good reason to do so unless the _access token_ you acquired has expired. Then you will need to make a fresh request for a new _access token_.

> [@seki.yoshitsugu](#):
>
> Is there a problem of having too many connections?

There is not usually a problem with making many requests, but it’s possible to be rate-limited if you exceed the number of requests you can make in an interval of time.

See [Rate Limit Policy](https://auth0.com/docs/support/policies/rate-limit-policy/management-api-endpoint-rate-limits) and [Rate Limit Policy](https://auth0.com/docs/support/policies/rate-limit-policy/authentication-api-endpoint-rate-limits) for more details.

> [@seki.yoshitsugu](#):
>
> Is it better to load them once and use them all?

Yes. In the Client Credentials Flow, it’s common to make one request with the `client_credentials` grant type to obtain an _access token_, which can be used to query the Management API until expiry.

> [@seki.yoshitsugu](#):
>
> Will there be any interruptions in the process?

This may happen if your _access token_ has expired. Then, you’ll not be able to make requests to the Management API.

Please let me know if there are any other questions or concerns.

Thank you.

---

<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:** [December 6, 2021, 11:46pm UTC](https://community.auth0.com/t/how-to-connect-the-auth0-management-api/72316/4 "2021-12-06T23:46:41Z")

</div>

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