Ssl error, whats wrong?

Invalid config for [http]: [api_password] is an invalid option for [http]. Check: http->http->api_password. (See /config/configuration.yaml, line 26).

#http:

api_password: long lived access token from home assistant

ssl_certificate: /etc/letsencrypt/live/thedomain/fullchain.pem

ssl_key: /etc/letsencrypt/live/thedomain/privkey.pem

why isnt this working?

Please read point 11 of the community guidelines and format your code correctly.

The error tells you exactly what the problem is, api_password is not a valid option for http. You can see the available options in the docs here.