Contentful logo

Contentful Community

Getting entry by 'revision'

Say I’ve received an entry with a known ID and ‘revision’ at some time in the past and recorded these fields, can I use the management API in the future to view that entry’s content at that particular revision? How would I do this?

I’ve tried already:

const entry = await environment.getEntry(id, {
  'sys.revision': 10,
})

But this returns the latest entry version every time, regardless of the revision provided.

Hi @v.sam.chase,
I believe that you will need to use the Snapshot endpoint for that:

But I’m not sure you could query by revision ID.