Build on P3.
Area indexes and risk, P3 Value, passport checks, protection and webhooks, in one REST API. Start in the sandbox, go live when you are ready.
Keys are made in P3 by your organisation's admins: Organisation → Developers → Keys.
curl https://api.pthree.vip/v1/areas?city=dubai \
-H "Authorization: Bearer $P3_API_KEY"Start here
Two guides that take you from a test key to working code, then the full reference.
- 01Show P3 Index on your portal in 5 minutesList areas, fetch an area's index and draw it on your page, with caching.Read the guide
- 02Add Bank Shield at mortgage closingQuote at closing, show the floor and fee, bind by invoice and hear about it by webhook.Read the guide
- 03API referenceEvery operation, field and error, from the OpenAPI 3.1 document, with examples.Open the reference
How the API works
- Keys and environments
- Send your key as a bearer token. p3_live_ keys reach live data; p3_test_ keys use the sandbox. Each key carries scopes within your plan. Enterprise servers may use OAuth 2.0 client credentials instead.
- One error shape
- Every failure answers with an error object: code, message, details and request_id. Codes are stable, such as insufficient_scope, consent_required or rate_limited. Quote the request id to P3.
- Pages and caching
- Lists take limit (1 to 100) and cursor. Reads return an ETag: send it back as If-None-Match and P3 answers 304 when nothing changed.
- Safe retries
- Send an Idempotency-Key with a POST (binding requires one). Repeating it within 24 hours replays the first answer instead of acting twice. Money is in minor units with its currency.
Plans and limits
Limits apply per key per minute, and per organisation per month for live requests. Past either, the API answers 429 with Retry-After.
| Plan | Per minute | Per month | Scopes |
|---|---|---|---|
| Open | 60 | 10,000 | index:read passports:verify |
| Pro | 600 | 500,000 | index:read valuations:read passports:verify protection:quote webhooks:manage |
| Enterprise | 3,000 | Agreed per contract | index:read valuations:read passports:verify protection:quote protection:bind webhooks:manage |
Sandbox requests never count towards the monthly quota. Talk to P3 sales to change plan.
The sandbox
Test keys see synthetic homes, passports, quotes and policies, with the real published indexes. Payments succeed at once; nothing is real. Use these fixtures:
- A shared Marina flat: valuations and quotes work
0190a000-0000-7000-8000-000000000001 - A villa your organisation owns
0190a000-0000-7000-8000-000000000002 - A flat not shared with you: consent_required
0190a000-0000-7000-8000-000000000003 - A home in a high-risk area: quotes are declined
0190a000-0000-7000-8000-000000000004 - A current Gold passport
TESTPASSG01A - A replaced passport code: revoked
TESTPASSR3V0 - Developer Shield project and unit numbers
0190a000-0000-7000-8000-000000000101 · 101–110 - A loan in every sandbox bank's book
TEST-LOAN-0001
Webhooks
Subscribe a public HTTPS endpoint to events. Each delivery is signed: P3-Signature carries a timestamp and an HMAC-SHA256 of the timestamp and raw body, made with your endpoint's secret.
- index.published
- valuation.completed
- policy.bound
- policy.renewal_due
- claim.decided
- claim.paid
- passport.level_changed
A delivery that is not answered with 2xx in 10 seconds is tried again for 24 hours. The delivery log and a resend button are in P3, under Developers → Webhooks.
# P3 signs each delivery: P3-Signature: t=<unix seconds>,v1=<hex>
# v1 = HMAC-SHA256(secret, "<t>.<raw body>")
echo -n "$T.$BODY" | openssl dgst -sha256 -hmac "$P3_WEBHOOK_SECRET"OpenAPI and the TypeScript SDK
The OpenAPI 3.1 document describes every operation and webhook, so you can generate a client in any language. A typed TypeScript SDK built from it is coming to npm.
Download openapi.jsonChangelogLooking for P3 for property developers?