# FM Credentials - Helper file

In order to enter the credentials that will be used to connect to your Helper file, you need to login into the enterprise file and use the UI to download the data from the cloud to your local enterprise file.

Once you have all records saved locally, you should have a connection record for each environment that was downloaded. Find the record that needs to be set the credentials in the <mark style="color:red;">`Connections`</mark> layout. The credentials will be added in the <mark style="color:red;">`serverJSON`</mark> field under the key <mark style="color:red;">`vault`</mark>, now make sure it’s under <mark style="color:red;">`vault`</mark> and not <mark style="color:red;">`oauth.vault`</mark>.

As shown in the image below, you should have a <mark style="color:red;">`vault`</mark> key with an empty object.

<figure><img src="/files/04FYEOsygxzX44nIId9Y" alt=""><figcaption></figcaption></figure>

Add your credentials as an object as follows.

```json
{"username": "FM_USERNAME", "password": "FM_PASSWORD"}
```

If that still returns an error saying that “FileMaker Helper Credentials missing database name or user or password”, then add <mark style="color:red;">`username`</mark> and <mark style="color:red;">`password`</mark> to root path. In this case, the <mark style="color:red;">`serverJSON`</mark> object would look like

```json
{
  "active": true,
  "apiKey": "BFAPI_XXXXXXX",
  "commonHookSetName": "app",
  "database": "BetterForms_Helper",
  "domains": ["your.app.domain"],
  "gateway": "DAPI",
  "hostAddress": "your.host.address",
  "id": "SV_YYYYYYY",
  "isDevMode": true,
  "oauth": {},
  "password": "YOUR-PASSWORD",
  "subDomain": "",
  "user": "BetterForms",
  "vault": {}
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.klai.studio/engineering-reference-docs/bf-enterprise-documentation/fm-credentials-helper-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
