Can API Tokens be created or retrieved using JIRA REST APIs?

In order to access JIRA’s REST API, authentication is necessary. This typically involves using Basic Authentication, where an API Token substitutes the password. Currently, creating and retrieving API Tokens requires a manual process. My inquiry is straightforward: Is there an endpoint within the JIRA REST API that allows for the creation and retrieval of API Tokens, like one might execute in Postman? Any guidance on this would be appreciated. Thank you!

The ability to automate the creation and retrieval of API tokens is a common question among developers working with JIRA REST APIs. As of my recent experience and knowledge of JIRA’s offerings, there is no direct endpoint to create or retrieve API tokens programmatically via their REST API. Token management is primarily handled through the Atlassian account settings, which requires a manual process for security reasons. However, checking Atlassian’s documentation or exploring add-ons might offer alternative solutions for specific use cases or automation tools that complement JIRA.