Jump to content
KGV Consulting

result=error;message=Authentication Failed

Recommended Posts

Hey, I'm trying to test WHMCS API Authentication using "Postman" and continue to get Authentication error - 403 Forbiden

the WHMCS activity log does not record anything, Im using json, all setting described in the development documentation are executed,  here is sample of the code:

POST /whmcs/includes/api.php? HTTP/1.1

Host: mydomain.com

Content-Type: application/json

cache-control: no-cache

Postman-Token: ############################

{

    "action": "DomainWhois",

    "username": "Identifier",

    "password": "Secret",

    "accesskey": "accesskey",

    "domain": “testdoamin.com",

    "responsetype": "json"

}------WebKitFormBoundary7MA4YWxkTrZu0gW--

Im continuing to get that error. Any advice how that can be corrected or fixed?

I don't use PHP, prefer JavaScript, Python instead

Thanks

Share this post


Link to post
Share on other sites

Under WHMCS admin -> Setup menu -> General Settings -> Security tab, do you have the IPs you're connecting from listed in "API IP Access Restriction" ?   If not, add them and see if that helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated