Contacts

Get User Contacts

Get a user's contact list by {user_id}

GET /{user_id}/contacts

Sample Request
GET /me/contacts
Sample Response
{
    "code": "RESPONSE_SUCCESS",
    "data": {
        "count": 2,
        "contacts" : [
        {
            "email": "dan@gmail.com",
            "id": "Uiad334saaYSLK921jKjsdF",
            "name": "Danny Fan",           
            "picture_uri": "https://www.moxtra.com/user/contact/289/1237",
            "unique_id": "",
            "org_id": "PXs1ZNMsro381NUjo9AjgNG",
            "contact_id": 37
        },
        {
            "email": "albert@yahoo.com",
            "id": "UeuOas28sdU09Ssdedef58J",
            "name": "Albert Wee",
            "picture_uri": "https://www.moxtra.com/user/contact/292/34573",
            "unique_id": "",
            "org_id": "",
            "contact_id": 41
        }
        ]
    }
}

Delete Contact

Delete a contact identified by {user_id} and {contact_id}.

DELETE /{user_id}/contacts/{contact_id}

Sample Request
DELETE /me/contacts/40
Sample Response
{
    "code": "RESPONSE_SUCCESS"
}

Invite Contacts via Email

Invite users to become contacts of the user identified by {user_id} via email.

POST /{user_id}/contacts

JSON Parameters
Name Type Description
email (In user of users array) String Email address of the contact to be invited.
suppress_feed Boolean Optional: Whether to turn off feed for this operation. Default is false.
Sample Request
                                    POST /UiaduESWsbzFoK9TOldC6zF/contacts
{
    "users": [
    {
        "user": {
            "email": "test@gmail.com"
        }
    },
    {
        "user": {
            "email": "try@test.com"
        }
    }
    ]
}
Sample Response
{
    "code": "RESPONSE_SUCCESS",
    "data": {
        "count": 2,
        "contacts" : [
        {
            "email": "test@gmail.com",
            "contact_id": 34
        },
        {
            "email": "try@test.com",
            "contact_id": 36
        }
        ]
    }
}