---
title: "Get a legal document by ID"
method: GET
path: "/wp/v2/legal/{id}"
tags: ["Content"]
---

# Get a legal document by ID

`GET /wp/v2/legal/{id}`

## Request

- Base URL: `https://elementor.com/wp-json`
- URL: `https://elementor.com/wp-json/wp/v2/legal/{id}`
- Auth: none required

## Path parameters

- `id` integer, required

## Query parameters

- `_fields` string

## Response `200`

The legal document

- LegalDocument: A legal document such as terms, promotion rules or a sub-processors list. Fields available depend on the _fields parameter.
  - `id` integer
  - `date` string, date-time
  - `modified` string, date-time
  - `slug` string
  - `status` string
  - `type` string
  - `link` string, uri
  - `title` Rendered
    - `rendered` string: HTML-rendered content
  - `content` Rendered
    - `rendered` string: HTML-rendered content
  - `yoast_head_json` object: SEO metadata

## Other responses

- `400`: Invalid request parameters (for example per_page above 100). Typed Error response.
- `404`: Resource not found. Typed Error response.
- `default`: Any other error. Typed Error response.

---

[API](https://skmtc.dev/elementor/apis/elementor-com-public-content-api.md) - [All operations](https://skmtc.dev/elementor/apis/elementor-com-public-content-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elementor/apis/elementor-com-public-content-api/revisions/b15b5d20585e?raw)
