I want to bind variable in get request, but it gives me error "Bind variables only allowed in Apex code","errorCode":"MALFORMED_QUERY"}". How to do it?
Account account = new Account(name = 'test'); request.setEndpoint('https://login.salesforce.com/services/data/v52.0/query/' + '?q=SELECT+Id+FROM+Account+WHERE+name=:account.name');