Invite users to the team by email with API SYNTAX{team_id}/invite/email

Hello guyss, what is the correct syntax of that request with curl?

I tried that but it doesn’t work:
curl -H "Authorization Bearer: XXXXX-X POST -d ‘{“”}’

Hi @alfador,

What error message are you getting?

@alfador, based on your other Forum post, it looks like you’re getting a permission error.

You’ll need to have invite_to_team permission for the team. Is this setting enabled on your server: