title: verify code authy with restsharp
body: <p>I use the next piece of code to ask for a code to for a 2fa (two factor authentication) and works well:</p>
  
  <pre><code>private async void TwilioSMS(object sender, EventArgs e)
  {
  RestSharp.RestClient client = new RestSharp.RestClient("https://api.authy.com/protected/json/phones/verification");
  
          RestSharp.RestRequest request = new RestSharp.RestRequest("start", RestSharp.Method.POST);
          numcheck = Numero.Text.Trim();
          request.AddHeader("Content-Type", "application/json");
          request.RequestFormat = RestSharp.DataFormat.Json;
          string este = "{\"api_key\":\"" + apikey + "\",\"via\":\"sms\"," + "\"country_code\":52," + "\"phone_number\":"+numcheck + ",\"locale\":\"es\"}";
  
      request.AddParameter("text/json", este, RestSharp.ParameterType.RequestBody);
          RestSharp.IRestResponse response = await client.ExecuteTaskAsync(request);
  
          respuesta = response.Content;
          Console.WriteLine(respuesta);
  }
  </code></pre>
  
  <p>But when I try to make the verification with the next piece of code:</p>
  
  <pre><code>private async void VerifCode(object sender, EventArgs e)
      {
          try
          {
  
              if (numcheck == string.Empty) { numcheck = Numero.Text.Trim(); }
  
              RestSharp.RestClient client = new RestSharp.RestClient("https://api.authy.com/protected/json/phones/verification");
  
                  RestSharp.RestRequest request = new RestSharp.RestRequest("check", RestSharp.Method.GET);
  
                  request.AddHeader("Content-Type", "application/json");
                  request.RequestFormat = RestSharp.DataFormat.Json;
  
  
              string este = "{\"api_key\":\"" + apikey + "\",\"country_code\":52," + "\"phone_number\":" + numcheck + ",\"verification_code\":" + Confirmation.Text.Trim() + "}";
  
              request.AddParameter("text/json", este, RestSharp.ParameterType.RequestBody);
                  RestSharp.IRestResponse response = await client.ExecuteTaskAsync(request);
  
                  respuesta = response.Content;
              Console.WriteLine(numcheck);
                  Console.WriteLine(response.Content);
  
                  var listo = respuesta.Split(new string[] { "\"success\":" }, StringSplitOptions.RemoveEmptyEntries)[1];
                  if (listo.Contains("true"))
                  {
                      await DisplayAlert("Código correcto", "El código es correcto", "OK");
                  }
  
                  else
                  {
                      await DisplayAlert("Código incorrecto", "El código es incorrecto o no ha sido mandado", "OK");
                  }
          }
  
          catch { await DisplayAlert("Código incorrecto", "El código es incorrecto o no ha sido mandado", "OK"); }
  
  
      }
  </code></pre>
  
  <p>I get the next error:</p>
  
  <pre><code>{"error_code":"60001","message":"Invalid API key","errors":{"message":"Invalid API key"},"success":false}
  </code></pre>
  
  <p>I use the same api key for both, why the error happens?</p>