CSRF_FAILED

Reason

  • The CSRF token was not supplied for the API request, that uses the protected session and the POST, PUT or DELETE HTTP method
  • The supplied CSRF token is not valid

Solution

  • Be sure to supply valid CSRF token, if the session is protected against CSRF attacks

Example

{
    "status": 403,
    "errors": [
        {
            "code": "CSRF_FAILED",
            "message": "Security checks failed, possible CSRF attempt",
            "more_info": "https://developer.kayako.com/api/v1/reference/errors/CSRF_FAILED"
        }
    ]
}