> For the complete documentation index, see [llms.txt](https://docs.quantumbyte.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quantumbyte.ai/home/quantumbyte-v2.0/3.microsites-1/9.sdk/2.usage.md).

# Prasyarat

Sebelum Menggunakan SDK Library ini anda bisa memasukkan 'secret key' terlebih dahulu kedalam instance class dari library, yang terdapat pada menu detail microsite yang telah anda buat

<figure><img src="/files/xKNiRTtvz1NnGLHiAqgN" alt=""><figcaption></figcaption></figure>

Pada SDK Library ini terdapat 2 mode yaitu :

* dev
* prod

## dev

Pada mode dev ini adalah mode yang dimaksudkan untuk digunakan dalam masa pengembangan, sehingga data user, alamat, dll yang diinputkan dan ditampilkan merupakan data dummy

Kemudian cara menggunakannya adalah seperti ini :

```js
import { InaLib } from 'ina-digital-sdk';
const inaLib = new InaLib({ mode: 'dev', secret_key: '{your_secret_key}' })
```

## prod

Pada mode prod ini adalah mode yang dimaksudkan untuk digunakan pada produktion dimana semua data yang digunakan merupakan data yang sebenarnya, mulai dari token user yang mengakses, secret key, dll

Kemudian cara menggunakannya adalah seperti ini :

```js
import { InaLib } from 'ina-digital-sdk';
const inaLib = new InaLib({ mode: 'prod', secret_key: '{your_secret_key}' })
```

## custom base url

Pada SDK juga bisa melakukan custom pada base url yang ada di sdk. base url sdk secara default akan mengarah ke

```typescript
https://api-ina-external.govtechindonesia.id/ext
```

untuk mengubahnya untuk kebutuhan stagging atau prod bisa menggunakan cara

```javascript
import { InaLib } from 'ina-digital-sdk';
const inaLib = new InaLib({ mode: 'prod', secret_key: '{your_secret_key}', base_url: '{your_custom_base_url}' })
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.quantumbyte.ai/home/quantumbyte-v2.0/3.microsites-1/9.sdk/2.usage.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
