# API Error - Creating Connections

**URL:** <https://community.auth0.com/t/api-error-creating-connections/57647>\
**Category:** Get Help\
**Created:** [February 10, 2021, 6:13am UTC](https://community.auth0.com/t/api-error-creating-connections/57647 "2021-02-10T06:13:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fred.besterwitch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fred.besterwitch/32/13023_2.png) [@fred.besterwitch](https://community.auth0.com/u/fred.besterwitch)\
**Post date:** [February 10, 2021, 6:13am UTC](https://community.auth0.com/t/api-error-creating-connections/57647/1 "2021-02-10T06:13:58Z")

</div>

POST is

{“name”:“6347DE73-BCCB-46AA-A86F-F3480A1702EF”,“display\_name”:“Client Trading 1”,“strategy”:“auth0”,“options”:{“api\_enable\_users”:true},“enabled\_clients”:[“my clientid”],“is\_domain\_connection”:false,“realms”:[“”],“metadata”:{}}

Response is  
{  
“statusCode”: 500,  
“error”: “Internal Server Error”,  
“message”: “An internal server error occurred”  
}

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 11, 2021, 7:39pm UTC](https://community.auth0.com/t/api-error-creating-connections/57647/2 "2021-02-11T19:39:20Z")

</div>

Hi @fred.besterwitch,

It looks like the response is a 201 if you remove `“realms”:[""]` from the payload.

I would think the response should be 400 instead of 500 when you pass an array containing an empty string. I will check with the appropriate team about this.

Thanks!

Stephanie

---

<div class="post-metadata">

**Author:** ![fred.besterwitch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fred.besterwitch/32/13023_2.png) [@fred.besterwitch](https://community.auth0.com/u/fred.besterwitch)\
**Post date:** [February 11, 2021, 7:52pm UTC](https://community.auth0.com/t/api-error-creating-connections/57647/3 "2021-02-11T19:52:18Z")

</div>

Stephanie,

Thanks for getting back.

You are right, once we added a realm in the array it worked.  
We misunderstood the documentation, we thought the realm would default to the connection name.

all good now

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 11, 2021, 7:52pm UTC](https://community.auth0.com/t/api-error-creating-connections/57647/4 "2021-02-11T19:52:56Z")

</div>

Great! Glad it is sorted out now.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 25, 2021, 9:59am UTC](https://community.auth0.com/t/api-error-creating-connections/57647/5 "2021-02-25T09:59:54Z")

</div>


