Authentication error in Postman

In short, I am trying to return a list of Confluence pages that do not contain a certain label.
https://MYSPACE.net/wiki/rest/api/search?cql=label?NOT?IN("test")?AND?type="page"?AND?space=AGSC

I am getting the error: Basic authentication with passwords is deprecated. For more information, see: website

Crawler:
curl --location --request GET ‘https://MYSPACE.net/wiki/rest/api/search?cql=label?NOT?IN(“test”)?AND?type=“page”?AND?space=AGSC
–header ‘Authorization: Basic TOKEN==’

Does anyone have any advice? Even when I change it to OAuth 2.0 I am not getting results for some reason.

You need to go to your Atlassian Account and generate a API token to use Basic Auth. Using your password is not supported anymore. More info Basic auth for REST APIs

1 Like