Document Versions

Get document version by ID

Retrieves a specific document version by its ID.

get/documents/{document_id}/versions/{document_version_id}

Request

  • Base URL
    https://api.metorial.com
  • Auth
    HTTP bearer

Path parameters

document_idstring required

Unique identifier of the document.

document_version_idstring required

Unique identifier of the document version.

Headers

Metorial-Versionstring
Example:2025-01-01

Pin the dated API version for this request, e.g. 2025-01-01. Defaults to the version configured for the environment.

Response

Successful response

object'document.version' required

String representing the object's type

idstring required
document_idstring required
version_numbernumber required
previous_version_idstring nullable required
list_edited_atstring date-time nullable required
contentstring required
created_atstring date-time required

Example response

{
  "editors": [
    {
      "organization_actor": {
        "id": "omem_5fGhJkLmNpQrStUv",
        "organization_id": "org_7hNkPqRsTuVwXyZa",
        "name": "Alex Chen",
        "email": "alex.chen@acme.com",
        "image_url": "https://avatar-cdn.metorial.com/aimg_1234567890",
        "member": {
          "id": "ome_7hNkPqRsTuVwXyZa"
        },
        "teams": [
          {
            "id": "tm_3eFgHjKlMnPqRsTu",
            "name": "Engineering",
            "slug": "engineering",
            "assignment_id": "tmas_8jKlMnPqRsTuVwXy"
          }
        ]
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.