Hi @Eyal Ringwald
Try the following script:
const options = {
authProvider,
};
const client = Client.init(options);
const application = {displayName: 'Display name',web: {redirectUris: ['https://xxxxxxxxxxxxxxxx']}};
await client.api('/applications')
.post(application);
Before this, please ensure that you have correctly instantiated the client.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.