Response Fields
Learn about API response field documentation
Response fields are the building blocks of your API documentation
Each response field is documented with its type, requirements, and description to help developers understand your API.
Field metadata
Every response field includes metadata that defines how it appears and behaves.
Use metadata to control:
- Field names and types
- Required vs optional status
- Detailed descriptions
title
stringrequiredThe title of your page that appears in navigation and browser tabs.
description
stringA brief description of what this page covers. Appears under the title and improves SEO.
sidebarTitle
stringA short title that displays in the sidebar navigation.
icon
stringThe icon to display.
Options:
- Font Awesome icon name
- Lucide icon name
- JSX-compatible SVG code wrapped in curly braces
- URL to an externally hosted icon
- Path to an icon file in your project
For custom SVG icons:
- Convert your SVG using the SVGR converter.
- Paste your SVG code into the SVG input field.
- Copy the complete
<svg>...</svg>
element from the JSX output field. - Wrap the JSX-compatible SVG code in curly braces:
icon={<svg ...> ... </svg>}
. - Adjust
height
andwidth
as needed.
iconType
stringThe Font Awesome icon style. Only used with Font Awesome icons.
Options: regular
, solid
, light
, thin
, sharp-solid
, duotone
, brands
.
tag
stringA tag that appears next to your page title in the sidebar.
--- title: "About frontmatter" description: "Frontmatter is the metadata that controls how your page appears and behaves" sidebarTitle: "Frontmatter" icon: "book" tag: "NEW" ---
Page mode
Control how your page displays with the mode
setting.
Default
If no mode is defined, defaults to a standard layout with a sidebar navigation and table of contents.
--- title: "Default page title" ---
Wide
Wide mode hides the table of contents. This is useful for pages that do not have any headings or if you prefer to use the extra horizontal space.
--- title: "Wide page title" mode: "wide" ---
Custom
Custom mode provides a minimalist layout that removes all elements except for the top navbar. Custom mode is a blank canvas to create landing pages or any other unique layouts that you want to have minimal navigation elements for.
--- title: "Custom page title" mode: "custom" ---
Center
Center mode removes the sidebar and table of contents, centering the content. This is useful for changelogs or other pages where you want to emphasize the content.
--- title: "Center page title" mode: "center" ---
API pages
Create interactive API playgrounds by adding an API specification to your frontmatter, api
or openapi
.
--- openapi: "GET /endpoint" ---
Learn more about building API documentation.
External links
Link to external sites directly from your navigation with the url
metadata.
--- title: "npm Package" url: "https://www.npmjs.com/package/mint" ---
Search engine optimization
Most SEO meta tags are automatically generated. You can set SEO meta tags manually to improve your site's SEO, social sharing, and browser compatibility.
Meta tags with colons must be wrapped in quotes.
--- "twitter:image": "/images/social-preview.jpg" ---
See SEO for complete SEO metadata options.
Internal search keywords
Enhance a specific page's discoverability in the built-in search by providing keywords
in your metadata. These keywords won't appear as part of the page content or in search results, but users that search for them will be shown the page as a result.
--- keywords: ['configuration', 'setup', 'getting started'] ---