Python code to c# .net for HTTP Post to API
response = requests.post(auth_url, auth=('apitoken', api_token), data={'grant_type': 'client_credentials'})
response.raise_for_status()
access_token = response.json()['access_token']
auth_header = 'Bearer ' + access_token
header = {'Authorization': auth_header}
Newtonsoft.Jsonlibrary for that. See this example. Specific to your question, the code might look likedynamic parsedResponse = JObject.Parse(responseString); var accessToken = parsedResponse.access_token;. Not that you should typically deserialize to C# objects, rather than dynamic, though I think in this case it's probably OK :)