> For the complete documentation index, see [llms.txt](https://docs.novacura.com/flow-connect/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novacura.com/flow-connect/working-with-connect/connect-to-systems/connectors/rest/infor-m3-rest/configure-rest-connector-with-ion-api-file.md).

# Configure REST Connector with ION API file

{% hint style="info" %}
You should already have the ION API file downloaded from **Infor** as a prerequisite. If you have not yet obtained it, please take a look at the guide on [Obtaining the Infor ION API File](/flow-connect/working-with-connect/connect-to-systems/connectors/rest/infor-m3-rest/obtaining-infor-ion-api-file.md) for detailed instructions.
{% endhint %}

This section describes creating a connector configuration in Flow Connect for Infor M3 REST API's. For this documentation, we will use the following dummy **ION API file**.

````json
// dummy ionapi file
```json
{
    "ti": "ACME_Org",
    "cn": "Flow Connect DEV/TEST",
    "dt": "12",
    "ci": "ACME_Org~AbcDefHfkwSpowirmfpwieD2dD",
    "cs": "pGbQ2ZoomWDp6tPp-7Qe03p9BiJONR578tNWjl9K4Y3v-57H5HmpSc",
    "iu": "https://mingle.inforcloudsuite.com",
    "pu": "https://mingle.inforcloudsuite.com:443/ACME_Org/as/",
    "oa": "authorization",
    "ot": "token",
    "or": "revoke_token",
    "sc": [],//scopes
    "ev": "V1480769020",
    "v": "1.1",
    "saak": "pRUGUsKGS1hcL8d9qfAM8SZF4IVcsFwS",
    "sask": "BcdTlw32A95CRte6KI5hHxUSDzIdQbb7"
}
```
````

1. Add [new REST connector](/flow-connect/working-with-connect/connect-to-systems/connectors/rest.md#add-connector)
2. Enter the configuration values as described below. Most of these values can be constructed by inspecting the **ION API file**.

<table><thead><tr><th width="276">Configuration</th><th>Description</th></tr></thead><tbody><tr><td><strong>Agent Group</strong></td><td>Agent group where the connector should be executed</td></tr><tr><td><strong>Base URL</strong></td><td><p>Concatenate the values for "iu" and "ti" parameters in the format "<mark style="color:blue;">{iu}</mark><strong>/</strong><mark style="color:blue;">{ti}</mark><strong>/M3"</strong></p><p></p><p>For example: "ION_API_URL/Tenant_Identifier/M3" will be the base URL for the dummy ionapi file.</p></td></tr><tr><td><strong>Authentication Type</strong></td><td><p>Choose <strong>OAuth2 Password Credentials</strong> as the Authentication Type.</p><ul><li><strong>Token Endpoint</strong> - Concatenate the values for "pu" and "ot" parameters in the format <mark style="color:blue;">{pu}</mark><strong>/</strong><mark style="color:blue;">{ot}</mark></li><li><strong>Client ID</strong> - Use the value for "ci" parameter</li><li><strong>Client Secret</strong> - Use the value for "cs" parameter</li><li><strong>Username -</strong> Use the value for "saak" parameter</li><li><strong>Password -</strong> Use the value for "sask" parameter</li><li><strong>Scopes</strong> - Choose one or more scopes under "sc". Leave it empty if nothing is defined in the ionapi file</li></ul></td></tr></tbody></table>

Example: A connector configuration created based on the dummy **ION API file**

<figure><img src="https://1716064794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIIgl6sNaTky0iALxYWHH%2Fuploads%2FOL0LmORAe5A0kNQ0ZLsx%2FUntitled.png?alt=media&amp;token=e3259d18-c6ab-4f2b-8f61-1356a45ef308" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.novacura.com/flow-connect/working-with-connect/connect-to-systems/connectors/rest/infor-m3-rest/configure-rest-connector-with-ion-api-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
