title: Using REDCap API in android keeps getting 403
body: <p>I have a REDCap project complete setup on Redcap console .</p>
  <p>API token generated .</p>
  <p>Record saving working from REDCap .</p>
  <p>Also from browser tool.</p>
  <p>But when I call it from Android App it returns 403 forbidden .</p>
  <p>is there anything like set permission for a user.</p>
  <p>Also same is working perfectly from ios app .</p>
  <pre><code> HashMap&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
         
          params.put(&quot;token&quot;,&quot;MY TOKEN&quot;);
          params.put(&quot;content&quot;,&quot;record&quot;);
  
  OkHttpClient client = new OkHttpClient();
  
          RequestBody body = RequestBody.create(JSON, String.valueOf(params));
          Request request = new Request.Builder()
                  .url(&quot;MY_URL&quot;)
                  .post(body)
                  .addHeader(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded&quot;)
                  .build();
  
          client.newCall(request).enqueue(new Callback() {
  
  
              @Override
              public void onFailure(com.squareup.okhttp.Request request, IOException e) {
                  e.printStackTrace();
              }
  
              @Override
              public void onResponse(com.squareup.okhttp.Response response) throws IOException {
                  if (!response.isSuccessful()) {
                      throw new IOException(&quot;Unexpected code &quot; + response);
                  } else {
                      // do something wih the result
                      Log.d(&quot;check ok http response &quot;, response.toString());
                  }
              }
  
      });
  </code></pre>
  <p>From Browser tool if I put same URL with selecting POST and set only two params token and content , it return 200 OK .</p>
  <p>But from Android it returns 403 . Please help , I have tried several methods in android code .</p>