Here is what I found :)
I share my doc with you :
API Jira Cloud platform
https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/
https://developer.atlassian.com/cloud/jira/platform/swagger.json
https://developer.atlassian.com/cloud/jira/platform/swagger.v3.json
https://developer.atlassian.com/cloud/jira/platform/swagger-v3.v3.json
API Jira Software Cloud
https://developer.atlassian.com/cloud/jira/software/rest/intro/
https://developer.atlassian.com/cloud/jira/software/swagger.json
https://developer.atlassian.com/cloud/jira/software/swagger.v3.json
API Confluence Cloud
https://developer.atlassian.com/cloud/confluence/rest/v1/intro/
https://developer.atlassian.com/cloud/confluence/swagger.json
https://developer.atlassian.com/cloud/confluence/swagger.v3.json
Jira Service Management Cloud
https://developer.atlassian.com/cloud/jira/service-desk/rest/intro/
https://developer.atlassian.com/cloud/jira/service-desk/swagger.json
https://developer.atlassian.com/cloud/jira/service-desk/swagger.v3.json
Here is my script: in the “Postman environment” variables or in the “collection variables”, add:
baseUrl = https://XXX.atlassian.net
username = XXX@XXX.com
token = <token> https://id.atlassian.com/manage-profile/security/api-tokens
In the “Pre-request Script” of the collection, add:
postman.setEnvironmentVariable(
"base64",
btoa(postman.getEnvironmentVariable("username") + ":" + postman.getEnvironmentVariable("token"))
);
pm.request.headers.add({
key: "Authorization",
value: "Basic " + postman.getEnvironmentVariable("base64")
});
After adding this configuration: you must disable the “Authorization” configurations of each endpoint (because they are configured for the old Basic mode in login/password which no longer works deprecated)