Getting a 401 even though my token has admin access

I am currently trying to programatically send a confirmation email to users who email me saying they never got the original confirmation email on sign up ( about 2 per week ).

I have given my token the project owner role but I keep getting a 401 response from the endpoint.

Would appreciate some advice on if I need to give it a different permission or if it’s not possible to confirm users from a third party.

Thanks