What's the recommended way to store API keys in Ne...
# suitescript
m
What's the recommended way to store API keys in NetSuite? If I need to do something like
Bearer [API_KEY]
? What's the correct or best way to store the
API_KEY
• Secrets API? • Encrypted field in custom record? • Non UI accessible custom record?
a
The right way is the
Secrets API
, but the documentation to use it with the
https
module is obscure or absent.
m
Thank you @alien4u!
r
Also after refreshing the sandbox you have to recreate all the API secrets which kinda sucks.
šŸ‘šŸ¼ 1
e
This is typically true of all the approaches, assuming that the keys/secrets are different for Prod/SB
e.g. You don't have to recreate the encrypted custom field, but you would have to update/restore its value
šŸ‘šŸ¼ 1
šŸ‘šŸ» 1