# Test the integration of a widget

## Activate the preview mode

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2FmPdgBKaKdB8W2MbMJaSC%2FCapture%20d%E2%80%99e%CC%81cran%202023-02-28%20a%CC%80%2014.59.49.png?alt=media&#x26;token=1abf6fc9-0adc-4efc-99b4-bb8a39fe4786" alt=""><figcaption></figcaption></figure>

The preview mode will disable the widget cache and allow you to view your configuration changes live. Localhost domains will also be allowed.

## You can use the following api key

```
dastra00-0testing1-key
```

{% hint style="info" %}
This key will display an example consent widget. It's not possible to modify the configuration of this one. The purpose of this key is to perform integration tests in a jsFiddle...
{% endhint %}


---

# 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://doc.dastra.eu/en/features/gerer-le-consentement-aux-cookies/integration-technique/comment-tester-lintegration-dun-widget.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.
