Verify that the API key you provide has the appropriate project permissions on the Code Dx admin page.