# FlightXML3 verification failed

**URL:** <https://discussions.flightaware.com/t/flightxml3-verification-failed/35538>\
**Category:** AeroAPI\
**Created:** [May 23, 2018, 7:28am UTC](https://discussions.flightaware.com/t/flightxml3-verification-failed/35538 "2018-05-23T07:28:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FantasyGu](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/fantasygu/32/16351_2.png) [@FantasyGu](https://discussions.flightaware.com/u/FantasyGu)\
**Post date:** [May 23, 2018, 7:28am UTC](https://discussions.flightaware.com/t/flightxml3-verification-failed/35538/1 "2018-05-23T07:28:16Z")

</div>

Hi  
FlightXML3SoapClient client = new FlightXML3SoapClient();  
client.ClientCredentials.UserName.UserName = “xxx”;  
client.ClientCredentials.UserName.Password = “xxx”;

```
        AirportBoardsRequest req = new AirportBoardsRequest();
        req.airport_code = "ZBTJ";

        FindFlightStruct res = client.FindFlight("ZBTJ", "ZPPP",false,"", "",10, 0);

```

Get the data server using the above code to return a 401 error ，Please help me

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [May 23, 2018, 9:31pm UTC](https://discussions.flightaware.com/t/flightxml3-verification-failed/35538/2 "2018-05-23T21:31:56Z")

</div>

Are you sure that you are supplying the hexadecimal API key (and not your website password) for the client.ClientCredentials.UserName.Password variable? Also be sure you are using your v3 API key and not your v2 API key. You can view your current API keys at [https://flightaware.com/commercial/flightxml/key.rvt](https://flightaware.com/commercial/flightxml/key.rvt)
