Service Account for API without Email

We connect into the Bitbucket rest API for our application using our customers credentials. We have a customer who’s security team will not allow them to have an email associated with their Service Accounts.

The account however does not have a user name, it just has name and email associated with it. We are passing the name into the API field, but getting authentication errors.

I am wondering if this is possible to use basic authentication methods with a service account without an email?