This event is sent to your server when iPear needs the list of contacts for a profile.
Usually, our services ask for the contact list at the first login. In order to avoid overloading your server with requests, we cache the data sent.
The workflow is similar to (Incoming) Get conversation list
Event name: contacts@get
⚠️ Response required / expires after 60 seconds
| Key | Type | Description |
|---|---|---|
custom_id | string | Unique identifier from your services (1-64 characters) |
You need to emit an event with the following name and data:
Response event name: contacts@get/response
| Key | Type | Extra | Description |
|---|---|---|---|
custom_id | string | required | Unique identifier from your services (1-64 characters) |
contacts | Contact[] | required | List of contact object (0-100 length) |
Important
Response object must respect every type rule. If any structure isn't respected, your request will be rejected for "bad-request".
I received a request for the following custom_id: 1234
My response will be:
{
"custom_id": "1234",
"contacts": [
{
"uid": "8756",
"displayName": "Boss",
"number": "555-4567"
},
{
"uid": "9173",
"displayName": "Keny",
"number": "555-1037"
},
{
"uid": "41398",
"displayName": "Officier Wendy",
"number": "555-1890"
}
]
}
Incoming events
Outgoing events
Powered by Doctave