Curl - 401: Unauthorized

Hi
I have been at this for a few days now but cannot seem to get a response except from 401: Unauthorized

My install is pointed to a subdomain on a custom port with a valid SSL cert, browser and android app work fine on local network and outside of the home network.

The custom port is not defined in the http: section of the config and instead in the docker config maps it to the default port.

version: core-2021.12.7
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
user: root
virtualenv: false
python_version: 3.9.7
os_name: Linux
os_version: 4.4.0-157201908151420-generic
arch: x86_64
timezone: Europe/London

I am logged in as admin user and have created the Long-Lived Access Token and have followed along on the Authentication API | Home Assistant Developer Docs section and replacing the URL and user details with the correct ones but each time i get this error in the log

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:124
Integration: HTTP (documentation, issues)
First occurred: 17:15:55 (1 occurrences)
Last logged: 17:15:55

Login attempt or request with invalid authentication from my.real.ip (my.real.ip). (curl/7.68.0)

However after pasting that in i have noticed the homeassistant.components.http.ban section

Do i need to whitelist the ip?

any help would be appreciated

so it would appear that changing the Bearer section to the username of the user is not how to achieve this, used bearer with the token and all is good.