Proxmox API Authentication to create VM

The token header must definitely look something like this, otherwise you copied the wrong secret value
Code:
Authorization: PVEAPIToken=testuser@pve!testtoken=xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx
when i use the html with xtermjs
socket.setRequestHeader('Authorization', 'PVEAPIToken=root@pam!root=67dcfe7b-069f-4bb4-8777-3685b9d2f669');
but it not worked
 
I tried with curl and GET Requet and it worked with 200 but when I try the POST Request I get the 501 error Code.
I found this question:
https://github.com/swayf/proxmoxer/issues/23 where the problem was with the path/url from the request but in my case its exactly like the Proxmox API Documentation:
https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu.
Code:
response_post = requests.post("https://test.com:8006/api2/json/nodes/test/qemu", data=data_creation, headers=vm_create_headers, verify=False)
How did you get the response status code as 200?