How can we get csrf token in custom web page

How can we get csrf token in web page without adding web.html file and csrf_token get in template html file.

Screenshot from 2024-09-12 17-41-22

dashboard.html file is a template.