Created a API token in https://id.atlassian.com/manage/api-tokens and trying to access the jira data using rest api with basic authentication,
Username : mail-id
Password: API key created
But still getting 401 unauthorized error response.