Contacts

The BlackLab Contacts Manager is a better way to manage your contacts. A cleaner interface that works on all devices, and an easily imported and exported dataset to create more connections.

Summary

API

/api/contacts/

GET

POST

{
  "name": "Abc Xyz",
  "fname": "Abc",
  "lname": "Xyz",
  "phones": [
    {
      "phone": "+919900000011",
      "label": "Mobile",
      "is_primary": true
    },
    {...}
  ],
  "emails": [
    {
      "email": "Qwe.Asd@gmail.com",
      "label": "Other",
      "is_primary": true
    },
    {...}
  ]
}

/api/contacts/list/

GET

POST

{
    "search": "abc"
}

Result

[
  {
    "count": 571,
    "next": "http://127.0.0.1:8000/api/contacts/list/?page=2",
    "previous": null,
    "results": [
      {
        "id": 5930,
        "display": "Abc Xyz",
        "phones": [
          {
            "id": 6169,
            "phone": "+91XXXXXXXXXX",
            "label": "Mobile",
            "is_primary": false
          }
        ],
        "emails": [
          {
            "id": 727,
            "email": "anakin@ggmail.com",
            "label": "Mobile",
            "is_primary": true
          }
        ],
        "membership": [
          "building"
        ],
        "first_name": "Abc",
        "last_name": "Xyz",
        "display_name": "Abc Xyz",
        "is_favorite": false,
        "is_private": true,
        "phone": "+91XXXXXXXXXX",
        "email": "anakin@ggmail.com",
        "source": null,
        "user": 1,
        "company": null
      }
    ]
  },
  { ... },
  { ... }
]

/api/contacts/<id>

GET

DELETE

PATCH

RESULT

{
    "id": 6979,
    "first_name": "Abc",
    "last_name": "Xyz",
    "display": "Abc Xyz",
    "is_favorite": true,
    "is_private": false,
    "phone": "+91XXXXXXXXXX",
    "phones": [
        {
            "id": 2919,
            "phone": "+91XXXXXXXXXX",
            "label": "Mobile",
            "is_primary": true
        }
    ],
    "email": null,
    "emails": [],
    "company": null,
    "company_name": null,
    "membership": [
        "business"
    ],
    "membership_str": "business"
}

/api/contacts/import/

Import Google Contacts data as CSV

POST

Header
    Content-Type : multipart/form-data;
    Authorization : Token 60cxxxxxxb93xxxxd05xxxxxxxxfa8c
Body
    file : google_contact.csv

/api/contacts/export

Download all contacts data as CSV

POST