Curl search cql with hex encoded url no longer working

We are using a bash script to update content on confluence cloud.

First the script is searching a the page id with the page title using
$CONFL_API_END=https://my-company.atlassian.net/wiki/rest/api/content/

curl -so- -H “$AUTH_HEADER” -X GET -L “$CONFL_API_END/search?cql=space=%22$_space%22%20and%20title=%22$_query%22%20and%20type=page”

$_query and $_space are hex encoded , the space is ok , but since a couple days the title is no longer found

"error: Page ‘%4F%76%65%72%76%69%65%77%20%41%63%63%65%73%73%20%53%77%69%74%63%68%65%73’ not found.

is something changed on the API ?

@TD7200,

The most likely is that you have an expired token. See the header notice on the general documentation for API tokens:

After December 15, 2024, we set new API tokens to expire in one year by default. When you create an API token, you can set the expiration date to be from one day up to one year.
After March 13, 2025, we set API tokens you created before December 15, 2024 to expire in one year. These API tokens will expire between March 14 and May 12, 2026.

So, you didn’t set an explicit expiration date but Atlassian expired it anyway. This has the best explanation by timing: your post coincides with this window.

In addition to token expirations, API Tokens can now have scopes and when using those tokens, the URL is different. It looks more like:

curl -v https://api.atlassian.com/ex/confluence/{cloudId} --user me@example.com:my-api-token

I checked the token and it is valid, created a new token

but the problem stays that is is no longer accepting the hexadecimal encoded url