[GH-ISSUE #213] Connect to API using tickets #120

Closed
opened 2026-02-27 15:46:32 +03:00 by kerem · 1 comment
Owner

Originally created by @Triw-12 on GitHub (Jul 11, 2025).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/213

Hi,

Is there any way of making requests using the ProxmoxAPI class but initialising it with the PVEAuthCookie and CSRFPreventionToken obtained after making the call to the Proxmox API on /access/ticket, even by a roundabout way?

Have a nice day

Originally created by @Triw-12 on GitHub (Jul 11, 2025). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/213 Hi, Is there any way of making requests using the ProxmoxAPI class but initialising it with the PVEAuthCookie and CSRFPreventionToken obtained after making the call to the Proxmox API on /access/ticket, even by a roundabout way? Have a nice day
Author
Owner

@jhollowe commented on GitHub (Jul 11, 2025):

All you need to do is pass the ticket/cookie as the password
Proxmoxer will use that to get a new cookie and CSRF token and will automatically refresh then when needed (it expires every 2 hours, so proxmoxer refreshes the ticket when you run any command after 1 hour of use)

<!-- gh-comment-id:3064195670 --> @jhollowe commented on GitHub (Jul 11, 2025): All you need to do is pass the ticket/cookie as the `password` Proxmoxer will use that to get a new cookie and CSRF token and will automatically refresh then when needed (it expires every 2 hours, so proxmoxer refreshes the ticket when you run any command after 1 hour of use)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#120
No description provided.