Skip to main content

User Intel | C# SDK

User Intel

UserIntelClient

User Intel client.

var config = new Config("pangea_token", "pangea_domain");
var builder = new UserIntelClient.Builder(config);
var client = builder.Build();

Look up breached users

UserIntelClient.Breached(UserBreachedRequest)

Determine if an email address, username, phone number, or IP address was exposed in a security breach.

required parameters

UserBreachedRequest

UserBreachedRequest with the user data to be looked up

Response Object

Task<Response<UserBreachedResult>>

Response<UserBreachedResult>

var request = new UserBreachedRequest.Builder()
    .WithPhoneNumber("8005550123")
    .WithProvider("spycloud")
    .Build();
var response = await client.Breached(request);

Look up breached users V2

UserIntelClient.BreachedBulk(UserBreachedBulkRequest)

Determine if an email address, username, phone number, or IP address was exposed in a security breach.

required parameters

UserBreachedBulkRequest

UserBreachedBulkRequest with the user data to be looked up

Response Object

Task<Response<UserBreachedBulkResult>>

Response<UserBreachedBulkResult>

string[] phoneNumbers = new string[1] {"8005550123"};
var request = new UserBreachedBulkRequest.Builder()
    .WithPhoneNumbers(phoneNumbers)
    .WithProvider("spycloud")
    .Build();
var response = await client.BreachedBulk(request);

Look up breached passwords

UserIntelClient.Breached(UserPasswordBreachedRequest)

Determine if a password has been exposed in a security breach using a 5 character prefix of the password hash.

required parameters

UserPasswordBreachedRequest

UserPasswordBreachedRequest with the password hash to be looked up

Response Object

Task<Response<UserPasswordBreachedResult>>

Response<UserPasswordBreachedResult>

var request = new UserPasswordBreachedRequest.Builder(
    HashType.SHA256,
    "5baa6")
    .WithProvider("spycloud")
    .Build();
var response = await client.Breached(request);

Look up breached passwords V2

UserIntelClient.BreachedBulk(UserPasswordBreachedBulkRequest)

Determine if a password has been exposed in a security breach using a 5 character prefix of the password hash.

required parameters

UserPasswordBreachedBulkRequest

UserPasswordBreachedBulkRequest with the password hash to be looked up

Response Object

Task<Response<UserPasswordBreachedBulkResult>>

Response<UserPasswordBreachedBulkResult>

string[] hashPrefixes = new string[1] {"5baa6"};
var request = new UserPasswordBreachedBulkRequest.Builder(
    HashType.SHA256,
    hashPrefixes)
    .WithProvider("spycloud")
    .Build();
var response = await client.BreachedBulk(request);