# Decrypt Data Example

> Example demonstrating how to decrypt data securely using API Maker’s system API.

Source: https://docs.apimaker.dev/v1/examples/sys/system/decrypt.html

`g.sys.system.decrypt` calls the [decrypt data system API](https://docs.apimaker.dev/v1/docs/apis-all/system-apis/system-generated-decrypt-data-api.html) from your code, whatever the settings of that API say about HTTP callers.

### Decrypt System API

Get decrypted data using global object 'g'.
```ts
let decryptedData = await g.sys.system.decrypt("U2FsdGVkX191c+lmyM80ctf4QV18dZ/x17yDh/fRxs4=");
```

## Related

- [Decrypt data system API](https://docs.apimaker.dev/v1/docs/apis-all/system-apis/system-generated-decrypt-data-api.html) · [All system APIs from code](https://docs.apimaker.dev/v1/examples/sys/system/system.html) · [The global object g](https://docs.apimaker.dev/v1/docs/pre-defined-terms/global-object-g.html)
