How can I auto-generate a PSK and PSK-ID using the API

All of the examples use goliothctl to create new PSK and PSK-IDs. The API should be able to do this as well but it seems to require a pre-generated values. Can I get an example API call to have it auto-generate new credentials?

Sample API return without a PSK.
{‘code’: 2, ‘message’: ‘missing pre shared key to create credential’, ‘details’: }

Hi John, the CLI is auto-generating the PSK client-side then submitting it to the API. You may also generate a PSK locally and submit it to the API, but the server does not currently auto-generate PSKs.