Using apiKey as an id


Just wondering about the apiKey on a model. I am wanting to create new Records using the JS client, but notice I can only do so using model Ids, and not keys. Is there anyway I can just use the key instead of the model id (i.e. Im guessing you are multi-tenant - so unique by api key + apiKey?)… cos atm I have to pull a list of all models (and cache), and lookup the relevant model id using the api key, in order to post a create / update record request. It’d be nice to reduce the requests a bit by using known apiKeys, instead of doing the lookup.

Thanks :slight_smile:

welcome to Community @devaccounts!

Your suggestion makes sense! I’ll note this down and see if we can do anything about that :slight_smile:

Thank you very much for reporting it

1 Like