# Management Api /api/v2/connections/{id}/status doesn't work

**URL:** <https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031>\
**Category:** Get Help\
**Tags:** connections-management-api, management-api\
**Created:** [November 16, 2023, 1:19pm UTC](https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031 "2023-11-16T13:19:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbarbosa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lbarbosa/32/55739_2.png) [@lbarbosa](https://community.auth0.com/u/lbarbosa)\
**Post date:** [November 16, 2023, 1:19pm UTC](https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031/1 "2023-11-16T13:19:54Z")

</div>

Hello, we are trying to use that endpoint from the management API, but it’s not returning the following response.

```auto
{
    "statusCode": 400,
    "error": "Bad Request",
    "message": "Invalid strategy auth0"
}

```

Using `GET /api/v2/connections/{id}` with an existing id returns the corresponding connection, but the status doesn’t seem to be working. Could you help me?

---

<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:** [November 16, 2023, 4:48pm UTC](https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031/3 "2023-11-16T16:48:36Z")

</div>

Hi @lbarbosa,

I understand you have encountered the “Invalid strategy auth0” error while querying the Management API’s Get a connection endpoint.

To look into this further, could you please provide the details of the request that led to the ‘Invalid strategy auth0’ error?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![lbarbosa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lbarbosa/32/55739_2.png) [@lbarbosa](https://community.auth0.com/u/lbarbosa)\
**Post date:** [November 17, 2023, 2:04pm UTC](https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031/4 "2023-11-17T14:04:15Z")

</div>

Hi @rueben.tiow,  
Yes, of course.  
What info do you need?

---

<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:** [November 17, 2023, 7:41pm UTC](https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031/5 "2023-11-17T19:41:45Z")

</div>

Hi @lbarbosa,

Thanks for the reply.

Could you share the code snippet you used to request the Management API?

Does your request look something like the following?

```auto
curl -L 'https://{{YOUR_DOMAIN}}/api/v2/connections/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {{MANAGEMENT_API_TOKEN}}

```

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![lbarbosa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lbarbosa/32/55739_2.png) [@lbarbosa](https://community.auth0.com/u/lbarbosa)\
**Post date:** [November 22, 2023, 2:43pm UTC](https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031/6 "2023-11-22T14:43:02Z")

</div>

Hi!  
we are using this:

```auto
curl -L 'https://{{YOUR_DOMAIN}}/api/v2/connections/:id/status' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {{MANAGEMENT_API_TOKEN}}

```

---

<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:** [November 28, 2023, 5:26pm UTC](https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031/7 "2023-11-28T17:26:34Z")

</div>

Hi @lbarbosa,

Thanks for the reply.

It looks like this endpoint you are using is the [Management API’s Check connection status endpoint.](https://auth0.com/docs/api/management/v2/connections/get-status)

This specific endpoint is designed to check the status of an AD/LDAP connection. It seems like you may have tried to use this endpoint with a non-AD/LDAP connection, which resulted in the “Invalid strategy auth0” error.

If you are looking to use this endpoint with regular database connections, it will not be possible. Perhaps you meant to use the [Management API’s Get a connection endpoint](https://auth0.com/docs/api/management/v2/connections/get-connections-by-id)?

Let me know if you have further questions or if there’s anything else I can help you with.

Thanks,  
Rueben

---

<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 12, 2023, 5:27pm UTC](https://community.auth0.com/t/management-api-api-v2-connections-id-status-doesnt-work/121031/8 "2023-12-12T17:27:08Z")

</div>

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