# Legal texts

`GET https://api.tentary.com/v1/legal`

Source: https://tentary.com/en/help/api/get-legal-texts/
Area: Legal texts
MCP tool: `get_legal_texts`. Reads only. Changes nothing in the account.

---

The legal texts of the shop as HTML, with the documents that the country of the account needs:

- terms
- cancellation: the cancellation policy in the EU, the return and refund policy in other countries
- privacy
- imprint: the Impressum in Germany, Austria and Switzerland, contact information in other countries

`filled` means the text is not empty. Buyers see the legal texts in the shop footer and at checkout.

## Authorization

`Authorization: Bearer <API key>`

A personal API key (tnt_...). Create it in the Tentary app on the page AI & API.

## Response

- `country` (string): Seller country, like DE. It decides which documents the shop needs.
- `documents` (array of object): The legal documents for the seller country.
  - `document` (string): terms, cancellation, privacy or imprint. Allowed values: `terms`, `cancellation`, `privacy`, `imprint`.
  - `title` (string): Name of the document for the seller country.
  - `filled` (boolean): true = the text is not empty.
  - `html` (string): The text as HTML.
- `attach_terms_to_order_emails` (boolean): true = the terms and the cancellation policy go as a PDF with every order e-mail.
- `admin_url` (string<uri>): The page in the Tentary app.
- `shop_url` (string<uri>): The terms in the shop.

## Example request

```bash
curl "https://api.tentary.com/v1/legal" \
  -H "Authorization: Bearer $TENTARY_API_KEY"
```

## Example response

```json
{
  "country": "DE",
  "documents": [
    {
      "document": "terms",
      "title": "Terms of service",
      "filled": true,
      "html": "<h2>Terms of service</h2><p>Lena Berg Yoga, Lindenstrasse 12, 10969 Berlin, Germany.</p>"
    },
    {
      "document": "cancellation",
      "title": "Cancellation policy",
      "filled": true,
      "html": "<h2>Cancellation policy</h2><p>Lena Berg Yoga, Lindenstrasse 12, 10969 Berlin, Germany.</p>"
    },
    {
      "document": "privacy",
      "title": "Privacy policy",
      "filled": true,
      "html": "<h2>Privacy policy</h2><p>Lena Berg Yoga, Lindenstrasse 12, 10969 Berlin, Germany.</p>"
    },
    {
      "document": "imprint",
      "title": "Legal notice (Impressum)",
      "filled": true,
      "html": "<h2>Impressum</h2><p>Lena Berg Yoga, Lindenstrasse 12, 10969 Berlin, Germany.</p>"
    }
  ],
  "attach_terms_to_order_emails": true,
  "admin_url": "https://app.tentary.com/settings/legal",
  "shop_url": "https://shop.tentary.com/legal/61326/tos"
}
```
