Authentication
Last updated:
How the Data API authenticates requests with brokerage-scoped API keys, scopes and IP or origin restrictions.
Send the key as a Bearer token
Every request carries an API key in the Authorization header. Requests must use HTTPS.
GET /v1/users HTTP/1.1
Host: api.propvista.io
Authorization: Bearer <your API key>A key belongs to one brokerage and only ever sees that brokerage's data. A request without a key, or with a key that does not exist or was revoked, gets 401 Unauthorized.
Which scopes does a key need?
Each endpoint needs one scope, listed on its page in the API reference. The Read scope you pick when creating a key grants all of today's read scopes:
| Scope | Lets the key call |
|---|---|
read:brokerage | GET /v1/brokerage |
read:user | GET /v1/users, GET /v1/users/{uuid} |
read:entitlement | GET /v1/entitlements |
read:projects | GET /v1/projects and every GET /v1/projects/{id}/... endpoint |
read:market | GET /v1/market-stats |
read:crm (the CRM read key scope, granted on purpose) | GET /v1/crm/people, GET /v1/crm/people/lookup |
write:crm (the CRM write key scope, granted on purpose) | POST /v1/calls, POST /v1/people/{id}/deletion-requests |
A key can carry several key scopes: pick every one the integration needs when you create it. A voice agent that searches projects, looks callers up and writes calls back uses one key with Read, CRM read and CRM write.
A key without the scope an endpoint needs gets 403 Forbidden. So does every key of a brokerage whose Data API plan has ended: the key keeps working again when the plan is renewed.
Restrict a key to your servers or origins
- IP allowlist: the key only works from the addresses and ranges you list. A call from anywhere else gets
403. - Allowed origins: for keys called from a browser, list the exact origins (such as
https://portal.example.com). Only those origins can read the responses, and calls from other origins get403. - Monthly cap and rate limit: see rate limits.
Rotate or revoke a key
From the API Keys tab you can rotate a key or revoke it. Rotating issues a new key with the same scopes and limits and stops the old one at once, so update your system with the new value straight away. Revoking stops the key with no replacement. Rotate a key whenever it may have been exposed, and revoke keys you no longer use.
