Fictional API example. This page demonstrates documentation features; its operations do not describe a live service.
This page is a live example of an API reference generated by Shoalrun. The source OpenAPI file defines one fictional operation; this introduction is authored in MDX. The build combines them into the operation details below and the example panel on the right.
Example only: The Notes API is fictional. These requests are examples, not calls to a live service.
OpenAPI for this operation: Download JSON.
POST /notes
Create a note
Save a short note in this fictional API.
Servers
https://api.example.test
Request body
Required.
application/json
object
1 property
-
textstringrequired ⓘmaxLength: 280
The note to save.
Responses
201: Created
application/json
The saved note.
A saved note with its author, labels, and display metadata.
7 properties
-
idstringalways present ⓘThe generated note ID.
-
textstringalways present ⓘmaxLength: 280
The saved text.
-
createdAtstringalways present ⓘformat: date-time
When the note was created.
-
archivedAtstringalways present nullable ⓘformat: date-time
When the note was archived, or null while active.
-
metadataobjectmay be absent ⓘOptional display information for a note.
2 properties
-
sourcestringmay be absent ⓘWhere the note came from.
-
pinnedbooleanmay be absent ⓘWhether the note stays at the top.
-
Related guides
- Prepare a note request — Prepare a fictional note payload and follow its linked operation contracts.