Objects

Search Alt+S

There are various objects used throughout the API. Here is a centralized reference.

Contact

FieldData TypeDescriptionExample
idunsigned integerThe internal ID of the Contact647dccb3a16b7
profile_iconstringURL to the Contact’s profile icon.
null if profile icon does not exist.
https://cdn.privacybee.com/...
display_namestringFreeform user-defined name for the ContactBeth M.
birthdaydateThe Contact’s date of birth (YYYY-MM-DD), optionally set by the current user1975-11-24
emailarray[Email]All the Email Addresses belonging to the Contact.["bethm@privacybee.com", "beth.m@example.com"]
phonearray[Phone]All the Phone numbers belonging to the Contact.["+12385551629", "+12384152637" "+12374151432" ]
addressarray[Address]All the Addresses belonging to the Contact.["123 ABC, Apartment 14,
Alpharetta,GA,30005,US", "123 Peachtree St, Apartment 132, Atlanta, GA,30303,US" ]
risk_scoreunsigned integerThe Contact’s Privacy Risk Score (1-99).
The value can be null if the score is still being calculated.
92
labelsarray[string]Organizational labels assigned to this Contact.["Client", "Newsletter Subscriber"]
user_idunsigned integerThe default value is null which means that the contact is still a pending invitation.
If the Contact has been connected and confirmed to an existing Privacy Bee user, this field will hold their User ID.
54198486
e2eebooleanWhether this Contact have a paid Privacy Bee license which supports communication over member-to-member End-to-End Encryptiontrue
createddateThe date the Contact was initially created by this user2023-02-10
updateddateThe date this Contact was last updated (by either the current user or the owner). This is helpful for checking if local cache updates are needed. 2023-07-15

ContactEmail

FieldData TypeDescriptionExample
idunsigned integerThe internal ID of the ContactEmail74980364
contact_idunsigned integerContactEmail owner5
emailstringEmail address pb@privacybee.com
created_atdateThe date the ContactEmail object was initially created2023-01-15
updated_atdateThe date when the ContactEmail object was last updated 2023-03-17

ContactPhoneNumber

FieldData TypeDescriptionExample
idunsigned integerThe internal ID of the ContactPhoneNumber74980364
contact_idunsigned integerContactPhoneNumber owner ID5
country_codeintegerCountry Code without “+1
phone_numberintegerPhone number 5551286565
created_atdateThe date the ContactPhoneNumber object was initially created2023-01-15
updated_atdateThe date the ContactPhoneNumber object was last updated2023-02-15

ContactAddress

FieldData TypeDescriptionExample
idunsigned integerThe internal ID of the ContactAddress74980364
contact_idunsigned integerContactAddress owner 5
address_line_1stringLine 1123 ABC
address_line_2stringLine 2 Apartment 14
address_citystringCityAlpharetta
address_regionstringStateGA
address_postal_codestringPostal Code 30005
address_countrystringCountry CodeUS
created_atdateThe date the ContactAddress object was originally created2023-01-15
updated_atdateThe date the ContactAddress object was last updated2023-01-15

Person

FieldData TypeDescriptionExample
idunsigned integerThe internal ID of the user account74980364
first_namestringThe employee’s first nameEduard
middle_namestringThe employees middle nameGabriel
last_namestringThe employee’s last nameBettley
display_namestringFull name of the employeeEduard Gabriel Bettley
dobdateDate of birth (YYYY-MM-DD)1975-11-24
addressesarray[Address]Array of address object["123 ABC, Apartment 14,
Alpharetta,GA,30005,US", "123 Peachtree St, Apartment 132, Atlanta, GA,30303,US" ]
emailsarray[Email]Array of email objects["eduard.bettley@privacybee.com", "egb@privacybeeharry.com"]
phone_numbersarray[Phone]Array of phone number objects["+12385551629", "+12384152637" "+12374151432" ]
last_scan_atdatetimeTime and date of the last global scan of sites for this employees data2024-04-26T00:00:00Z
licenseLicenseLicense object.
If no license assigned to the employee, the value is null
{License}
rolesArray<string>List of roles employee has["HR Manager", "Consultant"]
risk_scoreintegerCurrent risk score of employee62
exposuresExposureStatsExposure statistics of employee{ExposureStats}
last_logindatetimeTime and date of last login by employee 2024-04-27T08:28:15Z
created_atdatetimeTime and date of this employee was created2024-04-26T00:00:00Z

ExposureStats

FieldData TypeDescriptionExample
totalintegerThe total number of tracked exposures for this employee15
pendingintegerThe number of Pending state exposures for this employee4
in_progressintegerThe total number of In Progress state exposures for this employee3
closedintegerThe number of Closed state exposures for this employee5
not_foundintegerThe number of Not Found state exposures for this employee2

Aka

FieldData TypeDescriptionExample
first_namestringFirst name of the alternate nameJohn
middle_namestringMiddle name of the alternate name
last_namestringLast name of the altername name

Phone

FieldData TypeDescriptionExample
idintegerInternal ID of phone number54345
primarybooleanWhether this is their primary or current phone numbertrue
country_codeunsigned integerThe numeric ID of the country code (without +)1
phone_numberunsigned integerThe phone number without country code and without formatting (usually 10 digits)2385551629
phone_fullstringFull representation of the phone number with country code+12385551629

Create Phone

FieldData TypeDescriptionExample
country_codeunsigned integerThe numeric ID of the country code (without +)1
phone_numberunsigned integerThe phone number without country code and without formatting (usually 10 digits) 2385551629
primarybooleanWhether this is their primary or current phone numbertrue

Address

FieldData TypeDescriptionExample
idintegerInternal ID of address5326
line_1stringThe first line of the address123 Elm St
line_2stringThe second line of the addressSuite 500
citystringThe city of the addressAtlanta
regionstringThe region (or state) of the addressGA
postal_codestringThe postal code (or zip code) of the address30354
country_codestringThe country name of the address (2 characters) US
primarybooleanWhether this address is their primary or current residencetrue

Create Address

FieldData TypeDescriptionExample
primarybooleanIs this their primary addresstrue
line_1stringThe first line of the address123 Elm St
line_2stringThe second line of the addressSuite 500
citystringThe city of the addressAtlanta
regionstringThe region (or state) of the addressGA
postal_codestringThe postal code (or zip code) of the address30354
countrystringThe country name of the addressUS

Email

FieldData TypeDescriptionExample
idintegerInternal ID of address4325
primarybooleanWhether this is their primary email address or nottrue
emailstringThe emailjohn@doe.com

Exposure

FieldData TypeDescriptionExample
idunsigned integerThe internal ID of the exposureb1f16974-d924-4aa5-ba0e-21391d92db6a
employeeintegerID of the employee of this exposure 32412
companyCompanyThe company where the exposure was discoveredCompany object
statusenum The status type of the exposure
[pending, in_progress, closed]
in_progress
last_scandateThe date the last automated scan ran looking for this user within this company.
The value can be null if the company is unscannable

2024-05-16T18:05:21Z
last_seendateThe date of the last time we confirmed the presence of this information exposure.
The value can be null if information was not directly observed.

2024-05-16T18:05:21Z
last_deletedateThe date of the last action taken on this exposure, usually submitting a deletion request.
The value can be null if no action has been taken yet.

2024-05-16T18:05:21Z
data_foundbooleanWhether the data of the person is currently found/exposed.true
data?jsonIf data was found, this will be a JSON object string of the different data points that were found from the employee as well as a url to view the data if one was available. Possible keys include first_name (string), middle_name (string), last_name (string), aka (string[]), date_of_birth (Y-m-d), age (number), addresses (addresses[]), emails (string[]), phones (string[]), relatives (relative[] which potentially has first, middle, last name and age), url (string) where you can view the exposure on the companies website if available

IndividualLicense

FieldData TypeDescriptionExample
typestringThe type of licensecomplete
priceunsigned integerThe price of the license in cents
For example, USD $19 is represented as 1900
19700
start_datedatetimeThe date when the license was purchased2024-04-26T00:00:00Z
end_datedatetimeThe date when the license will expire, if renew is true it will be renewed on this date2025-04-26T00:00:00Z
renewbooleanWhether this license will be renewed at the end_datetrue
prorate_on_renewaldateThe date when the ContactPhoneNumber object was originally created 2023-01-15

PurchaseLicense

FieldData TypeDescriptionExample
idstringThe type of licensecomplete
quantityunsigned integerThe number of license to purchase5

CompanyLicense

FieldData TypeDescriptionExample
namestringThe human-readable name of the licenseScan & Delete
idstringThe id for API control of this licensescan_delete
priceunsigned integerThe annual cost of this license, in cents.
For example: USD $19 is represented as 1900
1900
currencystringThe abbreviated currency typeUSD
num_activeunsigned integerThe number of licenses of this type have been purchased and are currently available for use1580
num_assignedunsigned integerThe number of licenses of this type are currently assigned and actively in use1550
num_availableunsigned integerThe number of licenses of this type are purchased and active but haven’t been assigned yet30
full_scanbooleanWhether this license is scanning all sources possible to scan (vs a restricted subset)false
full_deletebooleanWhether this license is deleting from everywhere possible that’s scannedfalse
sitesarrayIf full_scan/full_delete is false, this will include a list of the sites available to this license and whether they allow scan and/or delete.[ ]

Company

FieldData TypeDescriptionExample
idunsigned integerThe ID of the company121579
namestringThe human-readable name of the companyAcme Data
statusstringIf the company is enabled in our system or not enabled
urlstringThe homepage URL of the companyhttps://www.acmedata.com
logostringURL to the logo of the companyhttps://example.com/logo.png
slugstringURL to the slug identifier of the company
scannerbooleanWhether our scanner is currently active for the site or nottrue

Role

FieldData TypeDescriptionExample
namestringName of the role which is used to assigned usersHR Manager
permissionsArray<string>List of permissions assigned to this role ["write financial","read financial"]

Webhook

FieldData TypeDescriptionExample
idintegerUnique ID 12345
endpointstringURL endpoint this webhook will speak tohttps://webhook.privacybee.com
eventstringoptions: scan:started, scan:completed,scan:not_found,scan:found,request:created,request:closed scan:completed
activebooleanWhether the webhook is active or nottrue
secretstringSHA256 signing secret that will be included in outgoing webhooks “Signature” headervfqv0rmtuWWPBdXNPLQrQX3aDqN38WSU
created_atdatetimeThe date the webhook was created 2024-05-16T18:05:21Z
updated_atdatetimeThe date the webhook was last updated2024-05-16T18:05:21Z

Webhook History

FieldData TypeDescriptionExample
idintegerUnique ID 1e65f9157-55db-4fa7-a8ed-328299fc49cc
eventstringoptions: scan:started, scan:completed,scan:not_found,scan:found,request:created,request:closed scan:completed
payloadObjectThe data that was sent to the webhook{}
statusstringStatus of the webhooksuccess,pending,dispatched,failed
resultstringWhen a failure occurs this explains what happenederror message
created_atdatetimeThe date the webhook was sent 2024-05-16T18:05:21Z

ExposureHistory

FieldData TypeDescriptionExample
eventstringDescription of what action was takenThis request has been closed.
whendatetimeThe date this event occurred 2024-05-16T18:05:21Z

ScanEvent

FieldData TypeDescriptionExample
company_idintegerID of the company53221
person_idintegerID of the person20543
whendatetimeThe date the event occurred 2024-05-16T18:05:21Z

ScanResult

FieldData TypeDescriptionExample
namestringFull name of personEduard Gabriel Bettley
first_namestringFirst nameEduard
middle_namestringMiddle nameGabriel
last_namestringLast nameBettley
akaarray<string>List of alternative names["Duard", "Gab"]
agenumberAge as an integer32
addressesarray<Address>List of associated addresses["123 ABC, Apartment 14,
Alpharetta,GA,30005,US", "123 Peachtree St, Apartment 132, Atlanta, GA,30303,US" ]
relativesarray<Relative>List of family members["Bethy Bettley", "John Doe", "Ann Smith" ]
phonesarray<number>List of phone numbers["+12385551629", "+12384152637" "+12374151432" ]
emailsarray<string>List of emails["eduard.bettley@privacybee.com", "egb@privacybeeharry.com"]
date_of_birthdatetimeDate of birth (YYYY-MM-DD)1975-11-24