Title
Use short, clear titles that fit in one line on the table of contents (ToC). Follow the standard verb pattern:Method | Verb | Example |
---|---|---|
POST | Create | Create an Account |
GET | List | List Accounts |
GET (by ID) | Retrieve | Retrieve an Account |
PATCH | Update | Update an Account |
DELETE | Delete / Deactivate | Delete an Account |
Description
Start with a clear and concise explanation of what the endpoint does and when to use it.Prerequisites
List what is required to use the endpoint (e.g., authentication, permissions, required entities).Parameters
Include all parameters, grouped by where they appear:- Header parameters
- Path parameters
- Query parameters
Body (Payload)
Document all fields that appear in the request body.Field | Type | Required | Description | Possible Values | Default | Constraints | Example |
---|---|---|---|---|---|---|---|
name | string | Yes | Name of the account | — | — | MaxLength: 100 | "Main Account" |
type | string | Yes | Account type | asset , liability | — | — | "asset" |
assetId | string | Yes | Associated asset ID | — | — | UUID | "01fbc1..." |
Success responses
Describe what users receive when the request is successful. Include status codes like200
, 201
, or 204
.