Skip to content
Go to platform

PII Recovery API

PII Recovery API lets an advertiser retrieve the decrypted personal information (name, email, phone, address, date of birth, city) for a specific lead they received through MAO — on demand, without ever receiving that PII in plaintext through the original ad response.

This is the advertiser-facing half of PII Encryption: publishers encrypt PII in transit, and advertisers recover it here when they need it.

Requirement — capture your PiiRefToken

Before you can call this endpoint, your campaign’s Dynamic URL (or Title/Description) must include the [PiiRefToken] macro, the same way you may already use macros like [SourceID]. MAO substitutes it with a real, single-use token at ad-serving time — that token is what you pass to this endpoint later, per lead.

GET https://api.myadoptimizer.com/api/MAOPiiRecovery

Query String Parameters

ParameterTypeDescriptionRequirement
AdTokenstring (GUID)Your advertiser token. Request it from your account manager.Required
PiiRefTokenstringThe token captured from the [PiiRefToken] macro for the specific ad event you want to recover PII for.Required

Example response

{
"FName": "Jane",
"LName": "Doe",
"Email": "jane.doe@example.com",
"Phone": "+11234567890",
"Address": "123 Main St",
"DOB": "1990-01-01",
"City": "Springfield"
}

Response status codes

StatusMeaning
200PII recovered successfully.
400AdToken or PiiRefToken missing, or AdToken isn’t a valid GUID.
401AdToken doesn’t match an active advertiser account.
403PiiRefToken is valid but belongs to a different advertiser’s campaign.
404PiiRefToken not recognized.
410PiiRefToken has expired — recovery windows are open for 30 days after the ad event.
429Too many failed lookups (404/403/410) for your account in a short window. Wait a few minutes and retry.
500Internal error — retry; contact your account manager if it persists.