Credentials don't work in API

takeshi

New Member
Nov 25, 2020
4
2
3
65
I can login in the web interface.
But when I try
curl -v -k -d "username=root@pam&password=secret" 'https://192.168.1.2:8006/api2/json'
I get '401 No ticket'

Does the use of the API require any configuration or enterprise subscription?

I'm using proxmox VE 6.1-7
 
Last edited:
Hi,

Does the use of the API require any configuration or enterprise subscription?
No.


I get '401 No ticket'

Maybe your password has a special character try with single code

Bash:
curl -k -d 'username=root@pam&password=secret'  https://192.168.1.2:8006/api2/json/access/ticket
 
Last edited: