Files
mintlify-development[bot] ad11bc265d Fix Vale style warnings: passive voice and punctuation (#4057)
* Fix Vale style warnings: passive voice and punctuation

- Convert passive voice to active voice in multiple component docs
- Fix quotation mark punctuation in navigation.mdx
- Update heading text to use correct casing
Style-only changes that don't affect content meaning.
Generated-By: mintlify-agent

* Apply suggestion from @ethanpalm

---------

Co-authored-by: mintlify-development[bot] <109878554+mintlify-development[bot]@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2026-03-06 09:11:24 -08:00

58 lines
1.5 KiB
Plaintext

---
title: "Response fields"
description: "Document API response fields with type information, descriptions, and required/optional indicators."
keywords: ["API output", "return values", "response structure"]
---
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.
<ResponseField name="response" type="string" required>
A response field example
</ResponseField>
```mdx
<ResponseField name="response" type="string" required>
A response field example
</ResponseField>
```
## Props
<ResponseField name="name" type="string" required>
The name of the response value.
</ResponseField>
<ResponseField name="type" type="string" required>
Expected type of the response value - this can be any arbitrary string.
</ResponseField>
<ResponseField name="default" type="string">
The default value.
</ResponseField>
<ResponseField name="required" type="boolean">
Show "required" beside the field name.
</ResponseField>
<ResponseField name="deprecated" type="boolean">
Whether a field is deprecated or not.
</ResponseField>
<ResponseField name="pre" type="string[]">
Labels that are shown before the name of the field
</ResponseField>
<ResponseField name="post" type="string[]">
Labels that are shown after the name of the field
</ResponseField>
<RequestExample>
```mdx Response Field Example
<ResponseField name="response" type="string" required>
A response field example
</ResponseField>
```
</RequestExample>