Get specific document ttl from cluster web console or rest api

How can I see the specific document TTL using the cluster web console or rest api?

Hi,

The TTL is the expiration field available in the document’s metadata. You can see them when editing a view in the web console. To retrieve them programmatically you should use one of our SDKs.

Isn’t there a way to fetch it without keeping a view for it?
If there isn’t a way and the only way without a view is programmatically, how can you do it in ruby SDK?