After you have generated a token you should have a valid accessToken and sessionId. Use them to enrol the document. The response includes the type of document that was submitted.
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
client.DefaultRequestHeaders.Add("x-correlation-id", "YOUR_CORRELATION_ID");
client.DefaultRequestHeaders.Add("x-access-token", "YOUR_ACCESS_TOKEN");
client.DefaultRequestHeaders.Add("x-session-id", "YOUR_SESSION_ID");
var json = @"{
""ImageBase"": ""<base64-encoded image>""
}";
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.screenlyyid.com/api/v1/enrolment/document", content);
response.EnsureSuccessStatusCode();
var result = await response.Content.ReadAsStringAsync();
Type to search. ↑↓ to move, Enter to open, Esc to close.