# Widget Types

<div class="section route">

<div class="primary">

## Schema

The schema defines all the fields that exist within a widget type record. Any response from these endpoints can be expected to contain the fields below unless the \`\_filter\` query parameter is used or the schema field only appears in a specific context.

<table class="attributes">
<colgroup>
<col style="width: 50%" />
<col style="width: 50%" />
</colgroup>
<tbody>
<tr id="schema-id">
<td><code>id</code></td>
<td>Unique slug identifying the widget type.
<p>JSON data type: string</p>
<p>Read only</p>
<p>Context: <code>embed</code>, <code>view</code>, <code>edit</code></p></td>
</tr>
<tr id="schema-name">
<td><code>name</code></td>
<td>Human-readable name identifying the widget type.
<p>JSON data type: string</p>
<p>Read only</p>
<p>Context: <code>embed</code>, <code>view</code>, <code>edit</code></p></td>
</tr>
<tr id="schema-description">
<td><code>description</code></td>
<td>Description of the widget.
<p>JSON data type: string</p>
<p>Context: <code>view</code>, <code>edit</code>, <code>embed</code></p></td>
</tr>
<tr id="schema-is_multi">
<td><code>is_multi</code></td>
<td>Whether the widget supports multiple instances
<p>JSON data type: boolean</p>
<p>Read only</p>
<p>Context: <code>view</code>, <code>edit</code>, <code>embed</code></p></td>
</tr>
<tr id="schema-classname">
<td><code>classname</code></td>
<td>Class name
<p>JSON data type: string</p>
<p>Read only</p>
<p>Context: <code>embed</code>, <code>view</code>, <code>edit</code></p></td>
</tr>
</tbody>
</table>

</div>

</div>

<div>

<div class="section route">

<div class="primary">

## Retrieve a Widget Type

### Definition & Example Request

`GET /wp/v2/widget-types`

Query this endpoint to retrieve a specific widget type record.

`$ curl https://example.com/wp-json/wp/v2/widget-types`

</div>

<div class="secondary">

### Arguments

<table class="arguments">
<colgroup>
<col style="width: 50%" />
<col style="width: 50%" />
</colgroup>
<tbody>
<tr>
<td><code>context</code></td>
<td>Scope under which the request is made; determines fields present in response.
<p>Default: <code>view</code></p>
<p>One of: <code>view</code>, <code>embed</code>, <code>edit</code></p></td>
</tr>
</tbody>
</table>

</div>

</div>

<div class="section route">

<div class="primary">

## Retrieve a Widget Type

### Definition & Example Request

`GET /wp/v2/widget-types/<id>`

Query this endpoint to retrieve a specific widget type record.

`$ curl https://example.com/wp-json/wp/v2/widget-types/<id>`

</div>

<div class="secondary">

### Arguments

<table class="arguments">
<colgroup>
<col style="width: 50%" />
<col style="width: 50%" />
</colgroup>
<tbody>
<tr>
<td><code>id</code></td>
<td>The widget type id.</td>
</tr>
<tr>
<td><code>context</code></td>
<td>Scope under which the request is made; determines fields present in response.
<p>Default: <code>view</code></p>
<p>One of: <code>view</code>, <code>embed</code>, <code>edit</code></p></td>
</tr>
</tbody>
</table>

</div>

</div>

</div>