# Response fields

```mdx
<ResponseField name="response" type="string" required>

  A response field example

</ResponseField>
```

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.

string

required

A response field example

```mdx
<ResponseField name="response" type="string" required>

  A response field example

</ResponseField>
```

## Props

string

required

The name of the response value.

string

required

Expected type of the response value. This can be any arbitrary string.

string

The default value.

boolean

Show “required” beside the field name.

boolean

Whether you have deprecated a field or not.

string\[]

Labels that appear before the name of the field.

string\[]

Labels that appear after the name of the field.

```mdx
<ResponseField name="response" type="string" required>

  A response field example

</ResponseField>
```

⌘I

## 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.
