Components
ResponseField
Document API response values and structure
ResponseField components help you document API response structures clearly.
Basic Usage
Response
idstringUnique identifier for the created resource
created_atstringISO 8601 timestamp of creation
status'active' | 'pending' | 'inactive'Current status of the resource
<ResponseFieldGroup title="Response">
<ResponseField name="id" type="string">
Unique identifier for the created resource
</ResponseField>
<ResponseField name="created_at" type="string">
ISO 8601 timestamp of creation
</ResponseField>
<ResponseField name="status" type="'active' | 'pending' | 'inactive'">
Current status of the resource
</ResponseField>
</ResponseFieldGroup>
Complex Response
User Response
dataobjectThe user object containing all user information
data.idstringUnique user identifier
data.emailstringUser’s email address
data.profileobjectUser’s profile information
data.profile.namestringDisplay name
data.profile.avatar_urlstring | nullProfile image URL, null if not set
metaobjectPagination and request metadata
meta.totalnumberTotal number of results
Props
ResponseFieldGroup
title- Group headingclassName- Additional CSS classes
ResponseField
name(required) - Field name (supports dot notation)type- Field typechildren- Field description