# Response fields

> Document API response fields using the ResponseField component with type annotations, descriptions, and required or optional indicators.

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 theme={null}
<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.

```mdx Response Field Example theme={null}
<ResponseField name="response" type="string" required>
  A response field example
</ResponseField>
```

## Related topics

- [Fields](/docs/components/fields.md)
- [Expandables](/docs/components/expandables.md)
- [Create manual API pages](/docs/api-playground/mdx-setup.md)

## Related pages

- [Ai](./ai-index.md)
- [Analytics overview](./analytics-index.md)
- [Api](./api-index.md)
- [Api playground](./api-playground-index.md)
- [Assistant](./assistant-index.md)
- [Automations overview](./automations-index.md)
- [Components overview](./components-index.md)
- [Create](./create-index.md)
- [Customize](./customize-index.md)
- [Dashboard](./dashboard-index.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.
