Unable to use UAPI Session:create_webmail_session_for_self
I am trying to use the UAPI API for a small project of mine. Specifically, I am using the Session:create_webmail_session_for_self
this function has both GET and POST requests. Initially I send the GET request and then parse the data and then send a POST request. I get back the URL which looks like
"
-
Hello shrinidhinhegde, The API being used is for linked nodes (currently, for linking from a parent node to a child mail node). See more about Linked Server Nodes at If you are not working with two cPanel & WHM servers that are linked, then the API to use would be the following one: 0 -
You need to send this API call to cPanel (port 2083), not to Webmail. It sounds like the easiest way to do what you want to do is just to use HTTP Basic Authentication to make your API call. That way you don"t have worry about logins or anything else. There are PHP and Perl examples here: https://example.com:2083/execute/Session/create_webmail_session_for_self " with the payload being the form-encoded parameters for that API as described in the Developer Documentation. Once you have that API response, then follow the /login directions"POSTing to Webmail this time"as given in the DD. 0
Please sign in to leave a comment.
Comments
2 comments