Get Contact
Retrieve a single contact by their ID.
GET /api/v1/contacts/{contact_id}
Example request
curl -X GET https://server.waplify.io/api/v1/contacts/507f1f77bcf86cd799439012 \
-H "Authorization: Bearer wapl_your_api_key"
Example response
{
"status": "success",
"contact": {
"id": "507f1f77bcf86cd799439012",
"first_name": "Jane",
"last_name": "Smith",
"phone_number": "911234567890",
"email": "jane@example.com",
"company": "Acme Corp",
"tags": ["vip"],
"opted_in": true,
"source": "api",
"created_at": "2024-06-15T10:00:00Z"
}
}
Delete Contact
Delete a contact by their ID. This is a soft delete — the contact is deactivated but not permanently removed.
DELETE /api/v1/contacts/{contact_id}
Example request
curl -X DELETE https://server.waplify.io/api/v1/contacts/507f1f77bcf86cd799439012 \
-H "Authorization: Bearer wapl_your_api_key"
Example response
{
"status": "success",
"message": "Contact deleted successfully",
"contact_id": "507f1f77bcf86cd799439012"
}
Errors
| Status | When |
|---|---|
| 404 | Contact with the given ID does not exist |
| 401 | Invalid or missing API key |