How to generate JWT for API call using HTTP?

Hello there, I am not a hard-core programmer. I would just want to use the App Store Connect API to automatically download reports. But they use JWT for authentication. I usually just use a normal HTTP call for API calls - headers, query strings, body, and all that. The API needs the JWT token as part of the header. How do I automatically generate the JWT? I’m thinking using the jwt.io. Is there a jwt.io API I can call to generate JWTs?

Hi @gmyuph,

Welcome to the Auth0 Community!

A JWT is often issued to you. Do you have some docs that describe the API you are trying to access?

Hi Dan,
I’m trying to connect to the App Store Connect API.
Apparently, they use a JWT.
https://developer.apple.com/documentation/appstoreconnectapi

I wasn’t able to generate it with the GUI.

This doc shows you how to do it with openssl commands in a terminal, would that work?

I see. Thank you for your help. I truly appreciate it.

1 Like

No problem! Let us know if you have any questions.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.