# Connection not found when using Auth0 signup API

**URL:** <https://community.auth0.com/t/connection-not-found-when-using-auth0-signup-api/92092>\
**Category:** Get Help\
**Tags:** api, auth0\
**Created:** [October 10, 2022, 4:15pm UTC](https://community.auth0.com/t/connection-not-found-when-using-auth0-signup-api/92092 "2022-10-10T16:15:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mko22](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mko22/32/40501_2.png) [@mko22](https://community.auth0.com/u/mko22)\
**Post date:** [October 10, 2022, 4:15pm UTC](https://community.auth0.com/t/connection-not-found-when-using-auth0-signup-api/92092/1 "2022-10-10T16:15:51Z")

</div>

I’m trying to create a user in Auth0 with sign up API.  
Take a look at the code:

```auto
import requests
import random
import string
from requests.packages.urllib3.exceptions import InsecureRequestWarning
password = ''.join(random.choices(string.ascii_uppercase + string.digits, k=15))
url = "https://my-domain-name.eu.auth0.com/dbconnections/signup"
user_data = {
    'client_id': 'vxAhL2XZkmJEp4EXykrEhZiJAQ7p0KKp',
    'full_name': 'Aaron Rodgers',
    'first_name': 'Aaron',
    'last_name': 'Rodgers',
    'email': 'packers@hmail.com',
    'password': password,
    'cell': 'greenbay',
    'connection': 'con_uIZUSVyNVRyaQWvT',
}
headers = {'Content-Type': 'application/json'}
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
r = requests.post(url, json=user_data, verify=False)
print(r.text)
if r.status_code == 404:
    print("Connection error")

```

I put the identifier under db as connection value.

I’m using the default application credentials. Also tried with creat other db connections and I still get `{"error":"connection not found"}`.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [October 10, 2022, 5:52pm UTC](https://community.auth0.com/t/connection-not-found-when-using-auth0-signup-api/92092/3 "2022-10-10T17:52:14Z")

</div>

Hi @mko22 ,

Welcome to the Auth0 Community!

For the [signup](https://auth0.com/docs/libraries/custom-signup#send-the-form-data) endpoint, the connection is the name of the database `connection` to store your user’s data, not the connection id. For example, if you use the Auth0 database connection, set

```auto
'connection': 'Username-Password-Authentication'

```

Hope this helps!

---

<div class="post-metadata">

**Author:** ![mko22](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mko22/32/40501_2.png) [@mko22](https://community.auth0.com/u/mko22)\
**Post date:** [October 11, 2022, 1:47pm UTC](https://community.auth0.com/t/connection-not-found-when-using-auth0-signup-api/92092/4 "2022-10-11T13:47:16Z")

</div>

Yep that helped, I thought I was supposed to use the db id for ‘connection’ field.

---

<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:** [October 25, 2022, 1:47pm UTC](https://community.auth0.com/t/connection-not-found-when-using-auth0-signup-api/92092/5 "2022-10-25T13:47:16Z")

</div>

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