# 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="/files/SyKsYTKBYMY7yQDNmo3A" 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="/files/8A3F6mlqjOUZkY45hDqV" alt=""><figcaption><p>koboToolbox basic authentication example</p></figcaption></figure>

If the connection is successful the following message is displayed

<figure><img src="/files/lC9HsmcxYtn6iVo2yF4q" alt=""><figcaption><p>Successful connection</p></figcaption></figure>

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


---

# 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://demevengderrick.gitbook.io/etl-connector-for-odk/connection.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.
