C# Admin Authentication via WebAPI

Do you happen to have an example for how to authenticate to the webapi with C# using the BEID and the web services key? All the information I can find just shows how to do it with a user name and password. 

 

Thank you!

Tags API csharp
Asked by Mariah Rible on Fri 8/4/23 12:20 PM
Sign In to leave feedback or contribute an answer

Answer (1)

This answer has been marked as the accepted answer
Mark Sayers Fri 8/4/23 12:39 PM

Hello Mariah,

I do not have any specific coded examples of how to achieve authentication, however the API documentation for authentication endpoints can be found here: https://yourdomain/TDWebApi/Home/section/Auth

In general you will point your command at the proper authentication endpoint URL, make sure to specify a header value of content-type: application/json, and then send a JSON body containing the username and password properties (or BEID and webservicekey) with corresponding values.

Sincerely,
Mark Sayers
Sr Support Consultant, CS

No feedback