List Versions
Version History
List Versions
Retrieve all versions of a document
GET
List Versions
Retrieves a list of all versions for a specific document, including metadata about when each version was created and by whom.
Endpoint
Path Parameters
The name of the collection containing the document
The unique identifier of the document
Authentication
Requires valid authentication. The user must haveread permission on the collection and access to the specific document.
Response
Returns an array of version metadata objects, sorted in reverse chronological order (newest first).The version number (starting from 1)
User ID of the person who created this version
ISO 8601 timestamp when this version was created
Optional reason for the change (if provided)
Example Request
Example Response
Version Storage Format
Versions are stored in the_pm_versions collection with the following structure:
- Full Mode: Complete document snapshot is stored in the
datafield - Diff Mode: Only changes are stored in the
changesarray (version 1 is always full mode)
- Collection and document identifiers
- Version number
- Storage mode (
fullordiff) - User who made the change
- Timestamp of the change
- Optional change reason
Error Responses
Bad Request - Missing or invalid collection name or document ID
Unauthorized - Authentication required
Forbidden - Insufficient permissions to read the document
Not Found - Collection or document not found
Not Implemented - Versioning is not enabled
Notes
- If no versions exist for the document, an empty array
[]is returned - Versions are returned in descending order by version number (newest first)
- Only version metadata is returned, not the full document data
- Field-level permissions apply - denied fields are not included in the response