# Integrate client

Integrate iframe in order to ensure customer interaction with protocol on operator's site. An example of the integration is available on a [demo site](https://casino.rewindprotocol.com/).

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

Default link for iframe:

```
https://casino.demo.rewindprotocol.com/dashboard?sid=<SID>&isMobile=false&lang=en&helpLink=https://www.facebook.com/
```

| Option   |                                                                                  | Required |
| -------- | -------------------------------------------------------------------------------- | -------- |
| lang     | <p>Select interface language.<br>Possible values: en, es, pt, fr, el, ja, de</p> | Yes      |
| isMobile | Stretching to the entire block                                                   | Yes      |
| sid      | Session ID                                                                       | Yes      |
| helpLink | Link for "How it works"                                                          | Yes      |

In order to generate sid, a call should be made to our server:

```
curl -X POST -H 'content-type:application/json' \
    -H 'X-Rewind-Api: AaaAaaAaaAaaAaa' \
    -H 'X-Rewind-Signature: ab678e428a215c2de3b584245ed9326562add02e5a4031391df5b492d61fb3bb4b03f33029e0205f159305cce205cb4ae566551caa90cc34a318657b7bf19ea5' \
    -d '{"foreignId":"testUser0001"}' \
    https://app.rewindprotocol.com/api/v1/clients/get-session-id
```

Unique session if for iframe follows in response:

```
{"sid":"382c75a6-40d1-47a7-9de4-5bbffe29a2dd"}
```


---

# 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://docs.rewindprotocol.com/en/integrate-client.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.
