Common API Responses

OK : Success response

{
    "message": "Success message",
    "code": 200,
    "ok": true,
    "error": false
}

ERROR: Missing API endpoint

{
  "message": "API endpoint not found",
  "code": 404,
  "ok": false,
  "error": true
}

ERROR: Invalid API key

{
  "message": "You don't have required permission to selected project.",
  "code": 401,
  "ok": false,
  "error": true
}

ERROR: Project not found

{
 "message": "Project \"xxxx\" not found.",
 "code": 404,
 "ok": false,
 "error": true
}