Contacts and Location Messages

See how to use the message node to send contacts or location messages

Sending a contact message

POST https://api.qikchat.in/v1/messages

Request Example

{

"to_contact": "+918080808080",

"type": "contact",

"contact": {

"addresses": [

{

"city": "Chennai",

"country": "India",

"country_code": "in",

"state": "TN",

"street": "Venugopal Street",

"type": "HOME",

"zip": "600037"

}

],

"birthday": "2000-01-20",

"emails": [

{

"email": "test@domain-name.com",

"type": "WORK"

}

],

"name": {

"first_name": "Siva",

"formatted_name": "Siva Radhakrishnan",

"last_name": "Radhakrishnan"

},

"org": {

"company": "Qikberry",

"department": "Design",

"title": "Manager"

},

"phones": [

{

"phone": "+919944857332",

"type": "HOME"

}

],

"urls": [

{

"url": "https://www.qikberry.com",

"type": "WORK"

}

]

}

}

Request Body

Name
Type
Description

to_contact*

string

customer whatsapp number you want to send message

type*

string

contact

contact

object

contains contact details

A successful response includes a data object with an ID for the message sent.

{
    "status": true,
    "message": "Messages queued successfully",
    "data": [
        {
            "id": "52JH6WmuSruAVyXvBBYemd0Ia",
            "channel": "whatsapp",
            "from": "919099999916",
            "recipient": "+918080808080",
            "created_at": "2023-02-19T12:52:25.222Z",
            "status": "queued"
        }
    ]
}

Sending a location message

POST https://api.qikchat.in/v1/messages

Request Example

{

"to_contact": "+918080808080",

"type": "location",

"location": {

"longitude": 13.081996,

"latitude": 80.180565,

"name": "Qikberry Technologies Private Limited",

"address": "No.9, The Palms, 2nd floor, Sai Avenue, Madhiraved, Chennai, Thiruvallur - 600077"

}

}

Request Body

Name
Type
Description

to_contact*

string

customer whatsapp number you want to send message

type*

string

location

location*

object

contains location object

A successful response includes a data object with an ID for the message sent.

{
    "status": true,
    "message": "Messages queued successfully",
    "data": [
        {
            "id": "52JH6WmuSruAVyXvBBYemd0Ia",
            "channel": "whatsapp",
            "from": "919099999916",
            "recipient": "+918080808080",
            "created_at": "2023-02-19T12:52:25.222Z",
            "status": "queued"
        }
    ]
}

Last updated