At the end figures out the issue, I know it was a blunder, I guess the issue was that we need to give permissions to /conf/myproject along with /content/dam/project.And I guess CF api ONLY works when we have access to both. Rather Node and Resource API work with only access to /content/dam