# Consent DB usage with embedded option

**URL:** <https://support.iubenda.com/t/consent-db-usage-with-embedded-option/4021>\
**Category:** Feature requests\
**Created:** [March 7, 2023, 6:58am UTC](https://support.iubenda.com/t/consent-db-usage-with-embedded-option/4021 "2023-03-07T06:58:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria.kharlamb](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@maria.kharlamb](https://support.iubenda.com/u/maria.kharlamb)\
**Post date:** [March 7, 2023, 6:58am UTC](https://support.iubenda.com/t/consent-db-usage-with-embedded-option/4021/1 "2023-03-07T06:58:13Z")

</div>

Is there a way to get legal document content and version from Consent DB using HTTP API if legal document has been created through iubenda UI and embedded to the site with the embedded option?

* * *

_Importato da [support.iubenda.com](http://support.iubenda.com) (topic #42000303007) · 👁 392 visualizzazioni_

---

<div class="post-metadata">

**Author:** ![morijason00](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@morijason00](https://support.iubenda.com/u/morijason00)\
**Post date:** [March 13, 2023, 6:16pm UTC](https://support.iubenda.com/t/consent-db-usage-with-embedded-option/4021/2 "2023-03-13T18:16:28Z")

</div>

Hi

---

<div class="post-metadata">

**Author:** ![03p9pv](https://avatars.discourse-cdn.com/v4/letter/0/94ad74/32.png) [@03p9pv](https://support.iubenda.com/u/03p9pv)\
**Post date:** [April 10, 2023, 7:45pm UTC](https://support.iubenda.com/t/consent-db-usage-with-embedded-option/4021/3 "2023-04-10T19:45:04Z")

</div>

Hello

---

<div class="post-metadata">

**Author:** ![ydndllg405](https://avatars.discourse-cdn.com/v4/letter/y/779978/32.png) [@ydndllg405](https://support.iubenda.com/u/ydndllg405)\
**Post date:** [April 11, 2023, 8:48pm UTC](https://support.iubenda.com/t/consent-db-usage-with-embedded-option/4021/4 "2023-04-11T20:48:07Z")

</div>

Please +1

---

<div class="post-metadata">

**Author:** ![ydndllg405](https://avatars.discourse-cdn.com/v4/letter/y/779978/32.png) [@ydndllg405](https://support.iubenda.com/u/ydndllg405)\
**Post date:** [April 11, 2023, 8:49pm UTC](https://support.iubenda.com/t/consent-db-usage-with-embedded-option/4021/5 "2023-04-11T20:49:30Z")

</div>

Any answer?

---

<div class="post-metadata">

**Author:** ![luciamartyn522](https://yyz2.discourse-cdn.com/flex048/user_avatar/support.iubenda.com/luciamartyn522/32/578_2.png) [@luciamartyn522](https://support.iubenda.com/u/luciamartyn522)\
**Post date:** [May 11, 2023, 7:27am UTC](https://support.iubenda.com/t/consent-db-usage-with-embedded-option/4021/6 "2023-05-11T07:27:09Z")

</div>

Yes, it is possible to get the legal document content and version from Consent DB using the iubenda HTTP API, even if the legal document was created through the iubenda UI and embedded into a website using the embedded option.

To do this, you would need to use the iubenda API's "get consent solution" endpoint, which allows you to retrieve the current version of the legal document and its content for a specific consent solution ID.

The consent solution ID can be obtained by making a separate API call to the "list consent solutions" endpoint, which returns a list of all the consent solutions associated with your account.

Once you have the consent solution ID, you can make a request to the "get consent solution" endpoint, passing in the ID as a parameter. The response will include the current version of the legal document and its content, as well as other information about the consent solution.

Here is an example of the request you could make to retrieve the legal document content and version:

ruby

Copy code

GET [https://consent.iubenda.com/api/consent-solutions/:id](https://consent.iubenda.com/api/consent-solutions/:id)

Where :id is the ID of the consent solution you want to retrieve.

Note that to use the iubenda API, you will need to have an iubenda account and an API key. You can find more information about the iubenda API and how to use it in the iubenda developer documentation.

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;
