# Connection

ODKConnector gives the possibility to connect to ODK-based servers such as ONA and KoboToolbox using Request based basic Authentication to pull forms in the .json format.

### [ONA API structure:](https://api.moda.wfp.org/static/docs/authentication.html)&#x20;

API Example: [https://api.ona.io/api/v1/data/formID.json](https://api.ona.io/api/v1/formID.json)

<figure><img src="https://2483181501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Tr0wAmaWM3CGQtWjUqa%2Fuploads%2FLuziYrL5bmWTyi0ENfqK%2FScreenshot%202022-09-08%20100733.jpg?alt=media&#x26;token=27dac03f-92cf-463a-b2cf-672e2cda9ca1" alt=""><figcaption><p>ONA basic authentication example</p></figcaption></figure>

### [KoboToolbox API structure:](https://support.kobotoolbox.org/api.html)&#x20;

API Example: [https://kc.kobotoolbox.org/api/v1/data/formID?format=json](https://kc.kobotoolbox.org/api/v1/data/631360?format=json)

<figure><img src="https://2483181501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Tr0wAmaWM3CGQtWjUqa%2Fuploads%2FE2XZIyafoMbniOKxRgys%2FScreenshot%202022-09-08%20101723.jpg?alt=media&#x26;token=3b5945d4-48fc-4f08-a917-cc810ea546ca" alt=""><figcaption><p>koboToolbox basic authentication example</p></figcaption></figure>

If the connection is successful the following message is displayed

<figure><img src="https://2483181501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Tr0wAmaWM3CGQtWjUqa%2Fuploads%2FOBOenEjcMAHrwHFYEaE9%2FScreenshot%202022-09-08%20102449.jpg?alt=media&#x26;token=f85c678c-706a-4638-807e-6069fbf149e5" alt=""><figcaption><p>Successful connection</p></figcaption></figure>

Else, an error message will be fired indicating the issue.
