GET/v1/contacts
This endpoint allows you to retrieve your contacts list from Protocol. You can optionally filter and paginate the results.
Request example
json{
"data": [
{
"id": "WAz8eIbvDR60rouK",
"username": "johndoe",
"phone_number": "+1 (555) 123-4567",
"avatar_url": "https://assets.protocol.chat/avatars/johndoe.jpg",
"display_name": "John Doe",
"created_at": 692233200
},
{
"id": "hSIhXBhNe8X1d8Et"
// ... more contacts
}
],
"pagination": {
"total": 35,
"per_page": 20,
"current_page": 1,
"total_pages": 2
}
}