title: Checking equality of two expressions in WolframCloud
body: <p>I want to check if two expressions are equal to each other.</p>
  
  <p>For example 3a+5b === 5b+3a should return 'true'.</p>
  
  <p>I'm trying to use a function:</p>
  
  <pre><code>CloudDeploy[
      APIFunction[
          {
              "x" -&gt;Restricted["SemanticExpression", All, Automatic,"equalityTestingContext`"], 
              "y" -&gt;Restricted["SemanticExpression", All, Automatic,"equalityTestingContext`"]
          },
          TrueQ[Simplify[#x == #y]] &amp;
          ],
      Permissions -&gt; "Public"
  ]
  </code></pre>
  
  <p>This is returning true for given example but fails for checking for example
  5aewq+3(b^3) === 3(b^3)+5aqwe, returning 'No result — at least one parameter could not be interpreted'.</p>
  
  <p>What should be changed in above code to allow comparison of more complex expressions? Maybe 'Restricted' interpreter?</p>