Skip to main content

How to authenticate UAPI in Postman

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! API tokens are not used for the cPanel API, but only for root WHMAPI functions, so you wouldn't be able to use a token for this work. We have some additional details on the authentication tools available here: Can you work through that and see if that clears things up?
    0
  • Ram Freedman
    API tokens are not used for the cPanel API, but only for root WHMAPI functions,

    This is strange... As far as I see in the
    0
  • cPRex Jurassic Moderator
    @Ram Freedman - I don't know what me from a week ago was thinking, but the API tokens are definitely the way to go! I must have mis-read something that day. I can't say how they would get integrated with Postman though, since that isn't something we make or support on our side. If you're performing the query remotely I would expect the example you provided to work (curl -H'Authorization: cpanel username:APITOKEN' '
    0

Please sign in to leave a comment.