Expose ID field for filtering

Does anyone know if it's possible to retrieve more than one record with one API call, knowing nothing more than the IDs of the record (and the table)?

I know we can do this if we know the field slug of a Record ID field (or a formula field configured to show the record ID), it would just be cleaner to be able to write a function that can do this without having to set up one of those and get its field slug as an input.

I'm looking for something like

"filter": {
        "operator": "or",
        "fields": [
            {
                "field": "id",
                "comparison": "is",
                "value": "6674311fea8d22e6f3a77313"
            },
            {
                "field": "id",
                "comparison": "is",
                "value": "6674311fea8d22e6f3a77314"
            }
        ]
    }

The above returns an error (the id field is not available).

6 replies