AgentSkillsCN

didit-proof-of-address

集成Didit Proof of Address独立API,用于对地址证明文件进行验证。当用户希望验证地址证明文件、核实用账单、银行对账单、政府文件,从各类文档中精准提取地址信息,确认居住地址,实施地址验证,或借助Didit开展PoA核查时,可选用此API。该API支持OCR信息提取、地理编码、姓名匹配,以及多页文档的处理能力。

SKILL.md
--- frontmatter
name: didit-proof-of-address
description: >
  Integrate Didit Proof of Address standalone API to verify address documents.
  Use when the user wants to verify a proof of address, validate utility bills,
  bank statements, government documents, extract address from documents, verify
  residential address, implement address verification, or perform PoA checks
  using Didit. Supports OCR extraction, geocoding, name matching, and multi-page documents.
version: 1.0.0
metadata:
  openclaw:
    requires:
      env:
        - DIDIT_API_KEY
    primaryEnv: DIDIT_API_KEY
    emoji: "🏠"
    homepage: https://docs.didit.me

Didit Proof of Address API

Overview

Verifies address documents by submitting images or PDFs. Extracts address information, performs authenticity checks, name matching, geocoding, and returns structured data.

Key constraints:

  • Supported formats: JPG, JPEG, PNG, TIFF, PDF
  • Maximum file size: 15MB
  • Document must be within 90 days of issue date
  • Full-color, all corners visible, no digital editing
  • Must be different from the ID document used for ID verification

Capabilities: OCR extraction, intelligent document classification, name matching with identity documents, issue date validation, geocoding with lat/lng coordinates, language detection, multi-page support.

Accepted document types:

CategoryExamples
Utility BillElectricity, water, gas, internet, phone, combined utilities
Bank StatementAccount statement, credit card, mortgage, loan
Government-IssuedTax assessment, residency certificate, voter registration
Other PoALease, rental agreement, insurance policy, employer letter

API Reference: https://docs.didit.me/reference/proof-of-address-standalone-api


Authentication

All requests require x-api-key header. Get your key from Didit Business Console → API & Webhooks.


Endpoint

code
POST https://verification.didit.me/v3/poa/

Headers

HeaderValueRequired
x-api-keyYour API keyYes
Content-Typemultipart/form-dataYes

Request Parameters (multipart/form-data)

ParameterTypeRequiredDefaultDescription
documentfileYesPoA document (JPG/PNG/TIFF/PDF, max 15MB)
save_api_requestbooleanNotrueSave in Business Console
vendor_datastringNoYour identifier for session tracking

Example

python
import requests

response = requests.post(
    "https://verification.didit.me/v3/poa/",
    headers={"x-api-key": "YOUR_API_KEY"},
    files={"document": ("utility_bill.pdf", open("bill.pdf", "rb"), "application/pdf")},
    data={"vendor_data": "user-123"},
)
print(response.json())
typescript
const formData = new FormData();
formData.append("document", documentFile);

const response = await fetch("https://verification.didit.me/v3/poa/", {
  method: "POST",
  headers: { "x-api-key": "YOUR_API_KEY" },
  body: formData,
});

Response (200 OK)

json
{
  "request_id": "a1b2c3d4-...",
  "poa": {
    "status": "Approved",
    "issuing_state": "ESP",
    "document_type": "UTILITY_BILL",
    "issuer": "Endesa",
    "issue_date": "2025-01-15",
    "document_language": "es",
    "name_on_document": "Elena Martínez Sánchez",
    "poa_address": "Calle Mayor 10, 28013 Madrid",
    "poa_formatted_address": "Calle Mayor 10, 28013 Madrid, Spain",
    "poa_parsed_address": {
      "street_1": "Calle Mayor 10",
      "city": "Madrid",
      "region": "Comunidad de Madrid",
      "postal_code": "28013",
      "raw_results": {
        "geometry": {"location": {"lat": 40.4168, "lng": -3.7038}}
      }
    },
    "document_file": "https://example.com/document.pdf",
    "warnings": []
  },
  "created_at": "2025-05-01T13:11:07.977806Z"
}

Status Values & Handling

StatusMeaningAction
"Approved"Address verified, document validProceed with your flow
"Declined"Document invalid or expiredCheck warnings for specific reason
"In Review"Needs manual reviewCheck for name mismatch or quality issues
"Not Finished"Processing incompleteWait or retry

Error Responses

CodeMeaningAction
400Invalid requestCheck file format, size, parameters
401Invalid API keyVerify x-api-key header
403Insufficient creditsTop up at business.didit.me

Response Field Reference

FieldTypeDescription
statusstring"Approved", "Declined", "In Review", "Not Finished"
issuing_statestringISO 3166-1 alpha-3 country code
document_typestring"UTILITY_BILL", "BANK_STATEMENT", "GOVERNMENT_ISSUED_DOCUMENT", "OTHER_POA_DOCUMENT", "UNKNOWN"
issuerstringIssuing institution name
issue_datestringYYYY-MM-DD
document_languagestringDetected language code
name_on_documentstringExtracted name
poa_addressstringRaw extracted address
poa_formatted_addressstringFormatted address
poa_parsed_addressobject{street_1, street_2, city, region, postal_code}
poa_parsed_address.raw_results.geometry.locationobject{lat, lng} geocoded coordinates
document_filestringTemporary URL (expires 60 min)
warningsarray{risk, log_type, short_description, long_description}

Warning Tags

Auto-Decline

TagDescription
POA_DOCUMENT_NOT_SUPPORTED_FOR_APPLICATIONDocument type not accepted for your app
EXPIRED_DOCUMENTDocument older than 90 days
INVALID_DOCUMENT_TYPEDocument cannot be processed
MISSING_ADDRESS_INFORMATIONNo valid address could be extracted

Configurable (Decline / Review / Approve)

TagDescription
NAME_MISMATCH_WITH_PROVIDEDName doesn't match verified identity
NAME_MISMATCH_ID_VERIFICATIONName doesn't match ID document
POA_NAME_MISMATCH_BETWEEN_DOCUMENTSNames differ between multiple PoA docs
POOR_DOCUMENT_QUALITYInsufficient image quality
DOCUMENT_METADATA_MISMATCHDigital signature/metadata indicates tampering
SUSPECTED_DOCUMENT_MANIPULATIONSigns of document manipulation
UNSUPPORTED_DOCUMENT_LANGUAGEDocument language not supported
ADDRESS_MISMATCH_WITH_PROVIDEDAddress doesn't match provided address
UNABLE_TO_EXTRACT_ISSUE_DATECould not determine issue date
ISSUER_NOT_IDENTIFIEDCould not identify issuing institution
UNPARSABLE_OR_INVALID_ADDRESSAddress couldn't be parsed
UNABLE_TO_VALIDATE_DOCUMENT_AGECould not determine document age
FUTURE_ISSUE_DATEIssue date is in the future

Warning severity: error (→ Declined), warning (→ In Review), information (no effect).


Common Workflows

Basic Address Verification

code
1. POST /v3/poa/ → {"document": utility_bill}
2. If "Approved" → address verified
   If "Declined" → check warnings:
     EXPIRED_DOCUMENT → ask for a more recent document
     MISSING_ADDRESS_INFORMATION → ask for clearer image
     NAME_MISMATCH → verify identity matches

Full KYC with Address

code
1. POST /v3/id-verification/ → verify identity document
2. POST /v3/passive-liveness/ → verify real person
3. POST /v3/poa/ → verify address
4. System auto-matches name between ID and PoA documents
5. All Approved → identity + address verified