List collection documents
GET/documents/collections/:collection
Lists direct child documents in the collection under an optional parent document path. Returns up to 20 documents (no pagination query params). Requires client.documents permission.
Request
Responses
- 200
- 400
- 401
- 403
- 422
Successful Response
Bad Request
Unauthorized
Forbidden
Validation Error
Response shape
{
"documents": [
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"path": "users/alice",
"data": { "display_name": "Alice" }
}
]
}
Returns up to 20 direct children (no pagination query params).
cURL example
curl -X GET "https://mw-client-api.wonderfulcoast-218d579d.centralindia.azurecontainerapps.io/documents/collections/users?parent_path=" \
-H "x-client-id: <client-id>" \
-H "x-client-secret: <client-secret>" \
-H "Authorization: Bearer <access-token>"