InsionInsion
C#

Errors and raw responses

Handle API exceptions and access headers, URLs, and status codes

try
{
    var result = await client.DeleteARecordAsync(new DeleteApiV1IngestRequest { ClientId = "post-123" });
}
catch (InsionApiApiException error)
{
    Console.WriteLine(error.StatusCode);
    Console.WriteLine(error.Body);
}

Use .WithRawResponse() on the returned task to receive Data and RawResponse, including headers, URL, and status code.