AUTHENTICATION


METHOD

/api/auth/login.php

This method authenticates the user and retrieves their API key. The API key is required for all API calls to any of Cranked's API method.


ENDPOINT

http://cranked_installation_url/api/auth/login.php


PARAMETERS GET

PARAMETER DEFAULT REQUIRED NOTES
email null Yes The user's login email address
password null Yes The user's login password

SUCCESS RESPONSE

{"api_key":"Gtgs7Bf7gVyDGs5y3PWX"}

ERROR RESPONSE

ERROR MESSAGE NOTES
No data passed API was called but no data were passed
Email or password incorrect Either the email or password could be incorrect