using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Collections.Generic;
static async Task Main(string[] args)
var API_URL = "https://api-pii-stage.scp-br.com/pii/";
var appToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InZpdmExMCIsInN1YiI6InZpdmExMCIsImNvbnRyYWN0SWQiOiIxMDAwMjA5IiwiaWF0IjoxNTk4MDI4MjI3LCJleHAiOjE1OTg2MzMwMjd9.n3SXDj7L4ayfq135c530pgotmV2P2vpHTQuhu91zEMQ";
var client = new HttpClient();
using (var request = new HttpRequestMessage(new HttpMethod("POST"), API_URL))
request.Headers.TryAddWithoutValidation("Authorization", "Bearer "+appToken);
request.Content = new StringContent("[\n {\n \"firstName\": \"Cadastro\",\n \"lastName\": \"Invalido\",\n \"dob\": \"1991-13-24\",\n \"participantIdClient\": \"555555\",\n \"gender\": \"masculino\",\n \"cpf\": \"288928888888992015\",\n \"jobPosition\": \"\",\n \"department\": \"\",\n \"email\": \"invalido@ai@l.com\",\n \"maritalStatus\": \"solteiro\",\n \"fullName\": \"Lucas Nachtigall\",\n \"motherName\": \"\",\n \"foreigner\": \"\",\n \"address\": \"Rua Major Cicero de Goes Monteiro\",\n \"addressNumber\": \"165\",\n \"addressComplement\": \"Apto 801\",\n \"neighborhood\": \"Centro\",\n \"city\": \"Pelotas\",\n \"state\": \"RS\",\n \"zipCode\": \"96015190\",\n \"ouId\": \"1\",\n \"phones\": [\n {\n \"phoneType\": \"celular\",\n \"phoneNumber\": \"11999954321\"\n }\n ]\n }\n]");
request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json");
response = await client.SendAsync(request);
result = JsonConvert.DeserializeObject(response.Content.ReadAsStringAsync().Result);
Console.WriteLine(result);