Query Entry Using multiple custom Fields Element API
getPost() will search the request’s POST data, but you are setting the parameter values as query string params, so you should be using getQuery().

'studentNumber' =&gt; craft()-&gt;request-&gt;getQuery('studentNumber'),
'email' =&gt; craft()-&gt;request-&gt;getQuery('email'),