using Apple store connect api

I have a question about Apple store connect api. I want to use https://developer.apple.com/documentation/appstoreconnectapi/app_store/in-app_purchase/managing_in-app_purchases, so I am generating and testing JWT tokens according to the guide.

However, 401 continues to occur when using JWT Token. The exact cause could not be determined.

One question is, can you add an accurate description of the fields included in the JWT header and body? Also, our app has not been released yet, so can't we use the api?

using Apple store connect api
 
 
Q