> ## Documentation Index
> Fetch the complete documentation index at: https://jigsaw-13.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Security

> An overview of JigsawStack security features and practices.

## Data protection

#### 1. Data at rest

All sensitive data are encrypted at rest. Sensitive collections and tables also use row-level encryption.

#### 2. Data in transit

JigsawStack uses TLS 1.3 or higher everywhere data is transmitted over potentially insecure networks.

#### 3. Data backup

JigsawStack backs-up all production data using a point-in-time approach. Backups are persisted for 30 days, and are globally replicated for resiliency against regional disasters.

## Prevent logging API requests

By default, our servers logged every request payload. Attach the header parameter `x-jigsaw-no-request-log` to control how requests payload are handled. If set to `true`, request payload will not be logged (stored).

### Javascript SDK

To disable request logging in the JavaScript SDK, you can pass the `disableRequestLogging` option during initialization:

```javascript setup.ts theme={null}
import { JigsawStack } from "jigsawstack";

const jigsaw = JigsawStack({
  apiKey: "your-api-key",
  headers: {
    "x-jigsaw-no-request-log": "true",
  },
});
```

### Python SDK

In the Python SDK, you can similarly disable request logging by passing the `disable_request_logging` argument when creating a JigsawStack instance:

```python setup.py theme={null}
from jigsawstack import JigsawStack

jigsaw = JigsawStack(
    api_key="your-api-key",
    headers={
        "x-jigsaw-no-request-log": "true",
    },
)
```

### API

When using the raw API, include the `x-jigsaw-no-request-log` header in your request to control logging behavior

```javascript theme={null}
const headers = {
  "x-api-key": "<your-api-key-here>",
  "x-jigsaw-no-request-log": "true",
};

const baseUrl = "https://api.jigsawstack.com";

const result = await fetch(`${baseUrl}/v1/ai/summary`, {
  method: "POST",
  body: {
    text: "The Leaning Tower of Pisa, or simply, the Tower of Pisa, is the campanile, or freestanding bell tower, of Pisa Cathedral",
  },
  headers,
});
```
