AWS AppSync query with Cognito User Pool

If you want to use the Cognito User Pool, then you first have to get somehow the JSON Web Token (jwt). Once you have this token, then you should pass the token in the header within the “Authorization” key.

graphQLHttp.Headers = new List<Header>()
      new Header() {Key = “Authorization”, Value = userSessionCache.getIdToken()}

Here you will find more information about jwt tokens.