# Response fields

Use the `<ResponseField>` component to define the return values of an API. Many docs also use `<ResponseField>` on pages when you need to list the types of something.

- `response` (string, required) — A response field example

```mdx
<ResponseField name="response" type="string" required>
  A response field example
</ResponseField>
```

## Props

- `name` (string, required) — The name of the response value.

- `type` (string, required) — Expected type of the response value. This can be any arbitrary string.

- `default` (string) — The default value.

- `required` (boolean) — Show "required" beside the field name.

- `deprecated` (boolean) — Whether you have deprecated a field or not.

- `pre` (string\[]) — Labels that appear before the name of the field.

- `post` (string\[]) — Labels that appear after the name of the field.

:::code-group
```mdx Response Field Example
<ResponseField name="response" type="string" required>
  A response field example
</ResponseField>
```
:::

**Related topics**

- [Fields](/guides/create-content-components-fields)
- [Expandables](/guides/create-content-components-expandables)
- [Create manual API pages](/guides/document-apis-mdx-setup)

## Related pages

- [Accordions](./create-content-components-accordions.md)
- [Badge](./create-content-components-badge.md)
- [Banner](./create-content-components-banner.md)
- [Callouts](./create-content-components-callouts.md)
- [Cards](./create-content-components-cards.md)
- [Code groups](./create-content-components-code-groups.md)
- [Color](./create-content-components-color.md)
- [Columns](./create-content-components-columns.md)
- [Examples](./create-content-components-examples.md)
- [Expandables](./create-content-components-expandables.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
