List documents
GET /api/documents
GET
/api/documents
Returns a paginated list of the authenticated user’s documents. Content is omitted from list responses for performance — use the get endpoint for full content. Requires authentication.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” limit
required
integer
Number of items to return (1-100)
offset
required
integer
Number of items to skip
Responses
Section titled “ Responses ”200
object
items
required
Array<object>
Document metadata without content (used in list views)
object
id
required
Unique document ID
string
slug
required
URL-friendly identifier
string
storageKey
required
R2 object storage key
string
urlType
required
URL scheme: nanoid (free), user_scoped (/@username/slug), subdomain
string
userId
required
Owner user ID
string
status
required
Current status of the document
string
isPublic
required
Whether the document is publicly accessible
boolean
viewCount
required
Number of times the document was viewed
number
createdAt
required
Creation timestamp
string format: date-time
updatedAt
required
Last update timestamp
string format: date-time
total
required
number
limit
required
number
offset
required
number
Standard error response
Standard error response
object
error
required
Error code or short description
string
message
Human-readable error details
string