Confluence REST API to search for spaces with name returns spaces by matching with created by user

I used below REST API with CQL and searching for all spaces with space.title match with given input, it returns spaces even space name does not match with the given input but input is matching the created by user name.

/rest/api/search?cql=type=space%20and%20space.title~%22testuser*%22

The above call returns even though there is no space name contains the word “testuser” and all spaces created by user “testuser” or “testuser1” etc…,

Is there any other REST API where I want to do regex search in space name (as well as space key, not complete key)?

Hello @anon11502118,

I was able to consistently replicate the issue wherein space.title is matched with the space’s creator. I created https://jira.atlassian.com/browse/CONFSERVER-58358 on your behalf. I cannot find a suitable REST API workaround as of yet though.

Cheers,
Ian