using System.Threading.Tasks;
static async Task Main(string[] args)
string token = "61f0ede41d9952e69959f8294dac6b0c2";
var url = "https://sandbox.conexasaude.com.br/api/";
var client = new HttpClient();
client.DefaultRequestHeaders.Add("token", token);
url2 = String.Concat(url,"integration/enterprise/patients/6694");
content = JsonConvert.DeserializeObject(await client.GetStringAsync(url2));
Console.WriteLine(content);
"mail": "boemekeld@gmail.com",
"dateBirth": "07/10/1989",
"cellphone": "53991018506",
"timestamp": 1585161985660
content = JsonConvert.DeserializeObject<Conexa_retorno>(await client.GetStringAsync(url2));
Console.WriteLine(content.patient.id);
public class Conexa_retorno
public int status { get; set; }
public object msg { get; set; }
public Patient patient { get; set; }
public long timestamp { get; set; }
public Patient patient { get; set; }
public int id { get; set; }
public string name { get; set; }
public string mail { get; set; }
public string dateBirth { get; set; }
public string sex { get; set; }
public string cpf { get; set; }
public string cellphone { get; set; }
public object patientHolderId { get; set; }