Get Contact by ID

GET/api/contacts/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number Contact unique ID
curl -X GET "https://yoursite.com/api/contacts/123" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
{
  "id": "6",
  "first_name": "Fname",
  "last_name": "Lname",
  "user_type": "client",
  "email": "contact@example.com",
  "client_id": "3",
  "is_primary_contact": "0",
  "job_title": "HR",
  "phone": "1234567890",
  "gender": "male",
  "status": "active",
  "created_at": "2021-09-18 11:26:56",
  "deleted": "0"
}
MethodGET
Path/api/contacts/{id}
GroupContacts
Sincev1.0.0
Defined inRestApi/Controllers/ContactsController.php