Adding a collaborator via the API

Hello,
I’m having an issue adding a collaborator via the Wix API.

I’m currently building an automation with Make that duplicates a website from my Wix account and then grants admin access to a specific email address.

The site duplication part works perfectly. However, I’m stuck on the step where I need to grant admin access. I’ve tried several approaches using the Wix API documentation, ChatGPT recommendations, and different request formats, but nothing seems to work.

Every time I send the HTTP POST request, I get the following error response:

Forbidden {“message”:“”,“details”:{}}

I’ve mainly been following this documentation:
https://dev.wix.com/docs/api-reference/account-level/user-management/site-invites/bulk-invite

Could someone please help me understand what I’m doing wrong or what permission/authentication might be missing?

Thank you in advance.

A few questions:

  • Can you share the code you have so far? (redacting anything sensitive)
  • Are you using an account level API key?
  • In the request, are you passing the required info? (emails and policyIds)