Opami ProtectOpen the console

Detection types

Every detection has a type written as category.sub.type, for example person.name.full. The first part is the category. Some types have a sub-category in the middle. A span the model detects without a type comes back as unknown.

This page lists 159 types in 23 categories. These are the types protect-v1 detects.

How types appear in a response

{
  "request_id": "6f1c0a52-3c1e-4a53-9d1d-0a8f2e5b7c11",
  "model": "protect-v1",
  "detections": [
    { "text": "Zoë Müller", "type": "person.name.full", "start": 0, "end": 10 },
    { "text": "zoe@example.com", "type": "contact.email", "start": 22, "end": 37 },
    { "text": "hepatitis", "type": "health.condition.specific", "start": 50, "end": 59 }
  ],
  "usage": { "characters": 59, "cost_eur": "0.00005900", "cost_usd": "0.00005900" }
}

The exclude option

Add exclude to a /v1/detect request to leave some types out of the answer. It is a list of categories, category.sub pairs or full types. Entries match whole segments: health matches health.diagnosis but not healthcare.

curl https://api-protect.opami.ai/v1/detect \
  -H "Authorization: Bearer $OPAMI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"protect-v1","text":"Write to Zoë Müller at zoe@example.com.","exclude":["health","banking"]}'
curl https://api-protect.opami.ai/v1/detect \
  -H "Authorization: Bearer $OPAMI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"protect-v1","text":"Write to Zoë Müller at zoe@example.com.","exclude":["unknown"]}'

Categories

artifact, authentication, banking, business, contact, education, employment, entity, event, financial, government_id, health, identity, legal, location, network, organization, person, project, relationship, time, travel, vehicle

artifact

TypeSub-categoryDescription
artifact.attachmentA file named as an attachment to a message or record.
artifact.document.typedocumentA kind of document named as a specific document, such as an invoice, payslip or CV.
artifact.document_idAn identifier of a document.
artifact.filenameThe name of a file.
artifact.folderA folder or directory path.
artifact.titleThe title of a document or other work.

authentication

TypeSub-categoryDescription
authentication.API_keyA key used to call an API.
authentication.OTPA one-time code used to sign in or confirm an action.
authentication.credentialA secret string called a credential, passphrase or recovery code.
authentication.passwordA password, passcode or PIN.
authentication.private_keyA private cryptographic key.
authentication.tokenAn access or session token.
authentication.usernameA sign-in name for an account.

banking

TypeSub-categoryDescription
banking.IBANAn International Bank Account Number.
banking.accountA bank account number or reference.
banking.cardA payment card number, including a masked one.
banking.card_cvvThe security code of a payment card.
banking.card_expiryThe expiry date of a payment card.
banking.crypto_walletA crypto currency wallet address.
banking.invoiceAn invoice number.
banking.orderAn order number.
banking.paymentA payment reference.
banking.swift_bicA SWIFT or BIC bank code.
banking.transaction_idThe identifier of a transaction.

business

TypeSub-categoryDescription
business.acquisitionA company purchase or takeover.
business.customerA company named as a customer.
business.dealA named business deal.
business.forecastA business forecast or projection.
business.pipelineA sales pipeline or an item in it.
business.strategyA business strategy or plan.

contact

TypeSub-categoryDescription
contact.emailAn email address.
contact.messaging_handleA handle on a messaging service.
contact.phoneA phone number.
contact.social_handleA handle on a social network.

education

TypeSub-categoryDescription
education.courseA course or class.
education.gradeA grade or mark.
education.schoolA school a person attends or enrols in.
education.student_idA student identifier.

employment

TypeSub-categoryDescription
employment.employee_idAn employee identifier.
employment.employerThe employer of a person.
employment.job_titleA job title.
employment.managerThe manager of a person, where the text says so.
employment.teamA team inside a company.
employment.terminationThe end of a job, such as a dismissal or resignation.

entity

TypeSub-categoryDescription
entity.unknown.unknown_identifierunknownAn identifier that has no more specific type.
entity.unknown.unknown_named_entityunknownA named entity that has no more specific type.
entity.unknown.unknown_private_valueunknownA private value that has no more specific type.

event

TypeSub-categoryDescription
event.appointmentA specific appointment.
event.communicationA specific call, message or other communication.
event.conferenceA specific conference.
event.deadlineA due date, expiry date or validity date.
event.meetingA specific meeting.
event.meeting.boardmeetingA specific board meeting.
event.meeting.interviewmeetingA specific interview.
event.meeting.medicalmeetingA specific medical consultation.
event.meeting.salesmeetingA specific sales meeting.
event.personalA personal event, such as a wedding or a christening.
event.reservationA specific reservation.

financial

TypeSub-categoryDescription
financial.amountAn amount of money, such as a total, subtotal or deposit.
financial.currencyA currency name or code written apart from an amount.
financial.marginA profit margin.
financial.priceA price, including a unit price or an invoice line total.
financial.revenueThe income of a company.
financial.salaryPay for a job.
financial.valuationThe stated worth of a company.

government_id

TypeSub-categoryDescription
government_id.company_registryA company registration number.
government_id.driving_licenseA driving licence number.
government_id.national_idA national identity number.
government_id.passportA passport number.
government_id.social_securityA social security number.
government_id.tax_idA tax identification number.
government_id.visaA visa number or reference.

health

TypeSub-categoryDescription
health.conditionA symptom or health condition.
health.condition.general_referenceconditionA vague mention of an illness, such as "an illness".
health.condition.specificconditionA named disease.
health.diagnosisA diagnosed disease or condition.
health.dosageThe dose of a medication.
health.insurance_idA health insurance number.
health.lab_resultA lab test with its value and unit.
health.medicationA medication.
health.providerA doctor or other care provider named as such.
health.record_numberA medical record number.
health.treatmentA medical treatment or procedure.

identity

TypeSub-categoryDescription
identity.ethnicityA person's ethnicity.
identity.genderA person's gender.
identity.immigration_statusA person's immigration status.
identity.marital_statusA person's marital status.
identity.nationalityA person's nationality.
identity.politicalA political affiliation or opinion.
identity.religionA religion or religious belief.
identity.sexualityA person's sexual orientation.
identity.trade_unionA trade union membership.

location

TypeSub-categoryDescription
location.addressA street address.
location.cityA city or town.
location.coordinatesGeographic coordinates.
location.countryA country.
location.postal_codeA postal code.
location.regionA region, state or province.
location.venueA named place or venue.

network

TypeSub-categoryDescription
network.ICCIDA SIM card number (ICCID).
network.IMEIA mobile device identity number (IMEI).
network.IMSIA mobile subscriber identity number (IMSI).
network.IPAn IP address.
network.MACA network hardware (MAC) address.
network.URLA web address.
network.device_idA device identifier.
network.domainA domain name.
network.hostnameA host name.
network.serial_numberA serial number of a device.

organization

TypeSub-categoryDescription
organization.companyA company.
organization.departmentA division, department or office of an organisation.
organization.governmentA public body.
organization.healthcareA clinic, hospital or other care organisation.
organization.nonprofitA non-profit organisation.
organization.schoolA school as an organisation.

person

TypeSub-categoryDescription
person.ageA person's age.
person.birth_dateA person's date of birth.
person.name.firstnameA given name on its own.
person.name.fullnameA full name.
person.name.lastnameA surname on its own.
person.name.middlenameA middle name written apart from the rest of the name.
person.name.nicknamenameA nickname.
person.name.title_lastnameAn honorific followed by a surname, such as "Dr. Dupont".
person.roleA social role word that refers to one specific person, such as "the landlord".
person.titleAn honorific, such as "Dr." or "Mrs.".

project

TypeSub-categoryDescription
project.codenameA project code name.
project.modelA model name or number of a product.
project.nameA project name.
project.product.nameproductA product name.
project.skuA product stock code (SKU).
project.versionA version number.

relationship

TypeSub-categoryDescription
relationship.childA child of a person, where the text says so.
relationship.clientA person named as a client.
relationship.coworkerA coworker of a person, where the text says so.
relationship.parentA parent of a person, where the text says so.
relationship.siblingA brother or sister of a person, where the text says so.
relationship.spouseA spouse or partner of a person, where the text says so.
relationship.supplierA supplier of a person or company, where the text says so.

time

TypeSub-categoryDescription
time.clockA time of day.
time.date.absolutedateA calendar date, month, quarter or year.
time.date.relativedateA date that depends on today, such as "tomorrow" or "next Monday".
time.datetimeA date with a time of day.
time.durationA length of time.
time.intervalA span of time between two points.
time.recurrenceA repeating schedule, such as "every Monday".

travel

TypeSub-categoryDescription
travel.booking_idA travel booking reference.
travel.flightA flight number or flight.
travel.hotelA hotel.
travel.itineraryA travel itinerary.
travel.seatA seat on a trip.

vehicle

TypeSub-categoryDescription
vehicle.VINA vehicle identification number.
vehicle.plateA vehicle licence plate.