# Quick start

```javascript
import chimuApi from 'chimu-api/dist/api.js'
```

Or use as module

```javascript
import chimuApi from 'chimu-api/dist/api.mjs'
```

#### Example GET Request

```javascript
const config = {
    baseURL: 'https://app.example.com',
};

const Api = new chimuApi(config);

export const GET_LIST = 'GET_LIST';
export const GET_LIST_SUCCESS = 'GET_LIST_SUCCESS';
export const GET_LIST_FAILURE = 'GET_LIST_FAILURE';

const getList = {
    type: GET_LIST,
    payload: {},
    params: {},
    meta: {
        method: 'get',
        path: '/list',
    },
};

Api.one(getList).then(resp => {
    if (resp.status === GET_OFFERS_SUCCESS) {
        console.log('Success', resp.data);
    }
    return resp.status;
});


```


---

# 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://chimu.gitbook.io/api/quick-start.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.
