# E-conomic

API configuration: `e-conomic`

### Features

| Features                                                                                                                      | Status                        |
| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| [Auth (Basic)](https://github.com/shahab-bahojb-basketAsia/terapi-docs/blob/main/integrate/guides/authorize-an-api/README.md) | ✅                             |
| [Sync data](https://terapi.gitbook.io/terapi-api-explorer/integrate/guides/sync-data-from-an-api)                             | ✅                             |
| [Perform workflows](https://terapi.gitbook.io/terapi-api-explorer/integrate/guides/perform-workflows-with-an-api)             | ✅                             |
| [Proxy requests](https://terapi.gitbook.io/terapi-api-explorer/integrate/guides/proxy-requests-to-an-api)                     | ✅                             |
| [Receive webhooks](https://terapi.gitbook.io/terapi-api-explorer/integrate/guides/receive-webhooks-from-an-api)               | 🚫 (time to contribute: <48h) |

We can implement missing features in <48h, just ask for it in the community.

### Getting started

* [How to generate API credentials](https://www.e-conomic.com/developer/connect)
* [API docs](https://www.e-conomic.com/developer/documentation)
* [Auth-related docs](https://apis.e-conomic.com/#Accounts..section/Authentication)

Need help getting started? Get help in the community.

### API gotchas

* E-conomic in this setup uses `Basic` auth mode for different API endpoints. Provide `YOUR_PRIVATE_TOKEN` as the Username and `YOUR_AGREEMENT_GRANT_TOKEN` as the Password.
* After establishing a connection, use the Basic credentials as follows:

```js
const connection = await terapi.getConnection();
let headers:  = ;
if ('username' in connection.credentials && 'password' in connection.credentials) ;
} else );
}

const resp = await terapi.get();
```

Add Getting Started links and Gotchas by editing this page.
