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 [CONFSERVER-58358] Using search.title and space fields in CQL also matches with the space creator - Create and track feature requests for Atlassian products. on your behalf. I cannot find a suitable REST API workaround as of yet though.

Cheers,
Ian