oAuth : Tokens generated in https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-oauth-authentication-6291692/

Can we use the tokens generated in the tutorial in REST API Calls using curl?
https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-oauth-authentication-6291692/
I could not find a sample about using curl with oAuth for JIRA…

I am also curious if I could generate my own token with just using curl by making calls to the oauth endpoints (also shown in the URL). I don’t see an example, as well as documentation on this …

For curl REST API calls you probably want to use Basic Auth. https://developer.atlassian.com/server/jira/platform/basic-authentication/

There’s mention in some forums about using curl -H “Authorization: bearer mytoken” … but I could never get it to work. Is it official then this will not work?

I think you want “Authorization: Basic mytoken” instead. Again see https://developer.atlassian.com/server/jira/platform/basic-authentication/