# Form Vault Connection Bad request

**URL:** <https://community.auth0.com/t/form-vault-connection-bad-request/200386>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [May 29, 2026, 11:54am UTC](https://community.auth0.com/t/form-vault-connection-bad-request/200386 "2026-05-29T11:54:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![k.guy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/k.guy/32/60354_2.png) [@k.guy](https://community.auth0.com/u/k.guy)\
**Post date:** [May 29, 2026, 11:54am UTC](https://community.auth0.com/t/form-vault-connection-bad-request/200386/1 "2026-05-29T11:54:55Z")

</div>

Issue with creating Form Flow Vault connection via Flow UI and Management api.

I created a Machine 2 Machine App, granted access to the Management Api.  
I’m using from that app the client Id and Client secret.

Through the Ui I get the same error when using the api.

```auto
{
    "app_id": "AUTH0",
    "name": "somename",
    "setup": {
        "domain": "<string>",
        "client_id": "<string>",
        "client_secret": "<string>",
        "type": "OAUTH_APP"
    }

```

this is a valid body, but get error

```auto
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Payload validation error: 'Data does not match any schemas from 'oneOf'' on property setup (Flows Vault Connection configuration).",
  "errorCode": "invalid_body"
}

```

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [May 29, 2026, 10:47pm UTC](https://community.auth0.com/t/form-vault-connection-bad-request/200386/3 "2026-05-29T22:47:18Z")

</div>

Hi @k.guy

Welcome to the Auth0 Community!

I understand that you are receiving a " Payload validation error: 'Data does not match any schemas " error message when attempting to create a Form Vault Connection.

### Official Recommendations

There could be different reasons for this issue, please allow me to detail:

- you could be using `https://` or [Slashes in the domain](https://auth0.com/blog/whats-new-in-the-auth0-terraform-provider/). Please ensure it is under the correct format of “domain”: “[your-tenant.us.auth0.com](http://your-tenant.us.auth0.com)” without `https://`;

- your tenant domain name starts with a numeric digit. We have had [a report](https://community.auth0.com/t/issue-with-auth0-vault-creation/182523/11) of this issue that had this cause and the solution to removing the error was to remove the starting numerical digit from the domain name;

- ensure that your M2M application has the [correct scopes](https://community.auth0.com/t/cannot-create-a-flow-vault-connection-as-the-permission-is-not-in-my-token/187889/2) in the access token. It will require to have the `create:flows_vault_connections` and `update:flows_vault_connections` scopes granted and authorized.

Let us know if this helped you clear the issue!

Best regards,  
Gerald

---

<div class="post-metadata">

**Author:** ![k.guy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/k.guy/32/60354_2.png) [@k.guy](https://community.auth0.com/u/k.guy)\
**Post date:** [June 1, 2026, 9:02am UTC](https://community.auth0.com/t/form-vault-connection-bad-request/200386/4 "2026-06-01T09:02:34Z")

</div>

Thank you for the response and solving this issue for me.  
The issue was indeed the domain.

I was using just the subdomain `your-domain`, not the whole `your-domain.uk.auth0.com`

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [June 5, 2026, 5:17pm UTC](https://community.auth0.com/t/form-vault-connection-bad-request/200386/5 "2026-06-05T17:17:09Z")

</div>

Hi @k.guy

Thank you for your confirmation, we’re glad to have helped you with this issue!

I am marking my initial message as the solution for this topic, please do not hesitate to reach out to us for any other issues or requests, we will gladly look into it.

Have a great one!  
Gerald

---

<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:** [June 19, 2026, 5:17pm UTC](https://community.auth0.com/t/form-vault-connection-bad-request/200386/6 "2026-06-19T17:17:27Z")

</div>

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