versions

user.document.versions

Returns all historical versions of a document (metadata only, newest first).

Auth

Bearer JWT + unsealed vault.

Arguments

Arg Type Description
id ID! Document UUID

GraphQL

query($id: ID!) {
  user {
    document {
      versions(id: $id) {
        id
        version
        schemaRef
        name
        audit { updatedAt updatedBy }
      }
    }
  }
}

Response

[DocumentMetadata!]!, one entry per version. Use get to read a specific version’s payload by querying the same id at that point in time (the system stores the latest is_latest flag; historical retrieval is planned but not yet exposed).

curl

curl -X POST https://api.test.geena.eu/graphql \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "query($id: ID!) { user { document { versions(id: $id) { version audit { updatedAt } } } } }",
    "variables": { "id": "7b4f-..." }
  }'