GET/v1/crm/people/lookup
Look up who is calling from a phone number, as the call.ringing webhook describes them
Send an API key as a Bearer token. The scope each endpoint needs is listed under Authentication.
Request
GET https://api.propvista.io/v1/crm/people/lookup
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
phone | query | string | Yes | The caller number in E.164, for example +971501234567. |
Examples
curl -X GET "https://api.propvista.io/v1/crm/people/lookup?phone=YOUR_PHONE" \
-H "Authorization: Bearer $PROPVISTA_API_KEY"Responses
200 Successful response
{
"matches": 0,
"person": {
"id": "string",
"firstName": "string",
"fullName": "string",
"language": "string",
"doNotCall": true,
"realtor": {
"id": "string",
"name": "string"
},
"lastConnectedCallAt": "string",
"upcomingAppointments": [
{
"at": "string",
"what": "string"
}
],
"recentCalls": [
{
"at": "string",
"outcome": "string",
"summary": "string"
}
]
}
}X-RateLimit-Limit: Requests this key may make per minute.X-RateLimit-Remaining: Requests left in the current minute.X-RateLimit-Reset: Unix seconds when the minute window resets. Sent on a 429 only.X-Quota-Limit: Requests the plan, or the key's own cap, allows in the billing period.X-Quota-Remaining: Requests left in the billing period.X-Quota-Reset: Unix seconds when the billing period resets.
400 Invalid input data
{
"message": "string",
"code": "string",
"issues": [
{
"message": "string"
}
]
}401 Authorization not provided
{
"message": "string",
"code": "string",
"issues": [
{
"message": "string"
}
]
}403 Insufficient access
{
"message": "string",
"code": "string",
"issues": [
{
"message": "string"
}
]
}404 Not found
{
"message": "string",
"code": "string",
"issues": [
{
"message": "string"
}
]
}429 The monthly request quota or the per-minute limit is used up. Wait Retry-After seconds; see https://propvista.io/docs/rate-limits.
{
"message": "string",
"code": "string",
"issues": [
{
"message": "string"
}
]
}X-RateLimit-Limit: Requests this key may make per minute.X-RateLimit-Remaining: Requests left in the current minute.X-RateLimit-Reset: Unix seconds when the minute window resets. Sent on a 429 only.X-Quota-Limit: Requests the plan, or the key's own cap, allows in the billing period.X-Quota-Remaining: Requests left in the billing period.X-Quota-Reset: Unix seconds when the billing period resets.Retry-After: Seconds to wait before retrying.
500 Internal server error
{
"message": "string",
"code": "string",
"issues": [
{
"message": "string"
}
]
}