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.
Excluded detections are not returned. The text is still charged in full. An entry that matches no category, sub-category or type returns 400 unknown_category. Add unknown to drop spans the model detects without a type. Then only named data types come back. At most 50 entries. Only the number of entries is logged, not the entries themselves. 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
Search types
Type Sub-category Description artifact.attachmentA file named as an attachment to a message or record. artifact.document.typedocument A 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.
Type Sub-category Description 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.
Type Sub-category Description 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.
Type Sub-category Description 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.
Type Sub-category Description education.courseA course or class. education.gradeA grade or mark. education.schoolA school a person attends or enrols in. education.student_idA student identifier.
Type Sub-category Description 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.
Type Sub-category Description entity.unknown.unknown_identifierunknown An identifier that has no more specific type. entity.unknown.unknown_named_entityunknown A named entity that has no more specific type. entity.unknown.unknown_private_valueunknown A private value that has no more specific type.
Type Sub-category Description 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.boardmeeting A specific board meeting. event.meeting.interviewmeeting A specific interview. event.meeting.medicalmeeting A specific medical consultation. event.meeting.salesmeeting A specific sales meeting. event.personalA personal event, such as a wedding or a christening. event.reservationA specific reservation.
Type Sub-category Description 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.
Type Sub-category Description 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.
Type Sub-category Description health.conditionA symptom or health condition. health.condition.general_referencecondition A vague mention of an illness, such as "an illness". health.condition.specificcondition A 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.
Type Sub-category Description 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.
Type Sub-category Description legal.caseA court or case number. legal.claimA legal claim. legal.contractA contract or agreement. legal.courtA court. legal.criminal_recordA criminal record or conviction. legal.lawyerA lawyer named as such. legal.legal_statusA legal status.
Type Sub-category Description 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.
Type Sub-category Description 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.
Type Sub-category Description 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.
Type Sub-category Description person.ageA person's age. person.birth_dateA person's date of birth. person.name.firstname A given name on its own. person.name.fullname A full name. person.name.lastname A surname on its own. person.name.middlename A middle name written apart from the rest of the name. person.name.nicknamename A nickname. person.name.title_lastname An 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.".
Type Sub-category Description project.codenameA project code name. project.modelA model name or number of a product. project.nameA project name. project.product.nameproduct A product name. project.skuA product stock code (SKU). project.versionA version number.
Type Sub-category Description 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.
Type Sub-category Description time.clockA time of day. time.date.absolutedate A calendar date, month, quarter or year. time.date.relativedate A 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".
Type Sub-category Description 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.
Type Sub-category Description vehicle.VINA vehicle identification number. vehicle.plateA vehicle licence plate.