I'm trying to invite users to a Slack team using the users.admin.invite method. This is an undocumented method, therefore there is little information going around. I'm making a POST to https://team_name.slack.com/api/users.admin.invite?t=n&token=token with the following body:
{
email: email
channels: channel
first_name: name
token: token
set_active: true
}
The error I'm getting is invalid_email, but I'm 100% certain that the email is valid. Anyone else has tried this method? Is the body of the post correct? I used Fiddlr and DHC to test the api method.
Thank you.