API Reference

Complete reference for the Hippo PII Detection API

SDKs

Authentication

All API requests require authentication using API keys

Base URL:

https://api.hippo-pii.com

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Security Note

Keep your API keys secure and never expose them in client-side code. Use environment variables in production.

API Endpoints

Available endpoints for PII detection and processing

POST
/v1/detect
Detection

Detect PII entities in text

POST
/v1/tokenize
Tokenization

Replace PII with secure tokens

POST
/v1/detokenize
Tokenization

Reverse tokenization to original text

POST
/v1/analyze/file
File Processing

Process uploaded files for PII

GET
/v1/entities
Metadata

List supported PII entity types

GET
/v1/usage
Account

Get API usage statistics

Code Examples

Example requests for PII detection

curl -X POST https://api.hippo-pii.com/v1/detect \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "My name is John Doe and my email is john@example.com",
    "entities": ["PERSON", "EMAIL"],
    "mode": "detect"
  }'

Supported Entity Types

PII entity types that can be detected and tokenized

PERSON
Supported

Person names

Example:

John Doe
EMAIL
Supported

Email addresses

Example:

john@example.com
PHONE
Supported

Phone numbers

Example:

+1-555-123-4567
SSN
Supported

Social Security Numbers

Example:

123-45-6789
CREDIT_CARD
Supported

Credit card numbers

Example:

4111-1111-1111-1111
IP_ADDRESS
Supported

IP addresses

Example:

192.168.1.1
ADDRESS
Supported

Physical addresses

Example:

123 Main St, City
ISRAELI_ID
Supported

Israeli ID numbers

Example:

123456789
BANK_ACCOUNT
Supported

Bank account numbers

Example:

1234567890
PASSPORT
Supported

Passport numbers

Example:

A12345678

Error Handling

Understanding API error responses and status codes

400
Bad Request

Invalid request parameters or malformed JSON

401
Unauthorized

Invalid or missing API key

429
Rate Limited

Too many requests - check your rate limits

500
Server Error

Internal server error - contact support if persistent

Error Response Format

{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "The provided API key is invalid",
    "details": "Please check your API key and try again"
  },
  "request_id": "req_123456789"
}

Rate Limits

API usage limits and best practices

1,000
Requests per hour
10MB
Max file size
100
Concurrent requests

Rate Limit Headers

Check the X-RateLimit-Remaining and X-RateLimit-Reset headers in API responses to monitor your usage.