Can't add user to channel via API

I created the channel a few seconds before adding the user to it, using the same rest api token (the server admin token).