Contacts and Location Messages

Use the message node to send contacts or location messages.

circle-info

You can only send a contact or location message up until 24 hours after receiving a message from the user. If you have not received a message from the user within this time, you will need to start a new conversation by sending a Template message.

If the WABA is registered in On-premise API

See how to send Contacts arrow-up-rightand Location Messagesarrow-up-right in the specific Meta documentation.

Check contacts

Before sending a message to a number, you can check contact availability alongside preloading contact information before sending a message to the number. We recommend the preloading of contact information before sending messages in large volumes, for improved performance. You can find more information about this process in the official WhatsApp documentationarrow-up-right.

circle-exclamation

Check Contacts Endpoint

POST https://waba.360dialog.io/v1/contacts

Send an API call to /v1/contacts containing an array of registered phone numbers. The phone numbers can be in any standard telephone number format.

Request Body

Name
Type
Description

blocking

string

no_wait (default), wait

contacts

array

+4912345678910

force_check

boolean

false (default), true

Example Request

Example Response

The response will contain a wa_id. You may use this or another valid wa_id when sending messages using the below request(s).

How to block contacts

circle-exclamation

Submit an API call to /v1/contacts/{phone_number}/block with a reason for blocking another business account.

When successful, the response will have HTTP status 200and will come without the "errors" object. The failed response looks like this:

blocking parameters

The following parameters are supported by POST calls to /v1/contacts/{phone_number}/block:

Settings
Description

reason

Optional.

Blocking reason in free text format. It will be used during the process of blocking another business account. Must be less than 60 characters.

phone_number

Mandatory.

Numbers can be in any phone number format. The recommended format for contact phone numbers includes a plus sign (+) and country code.

How to unblock contacts

To unblock a contact, send an API call to/v1/contacts/{phone_number}/unblock

When successful, the response will have HTTP status 200and will come without the "errors" object.

The failed response looks like this:

unblock parameters

The following parameters are supported by POST calls to /v1/contacts/{phone_number}/unblock:

Settings
Description

phone_number

Mandatory.

Numbers can be in any phone number format. The recommended format for contact phone numbers includes a plus sign (+) and country code.

How to get a Block List

Here's how to get a list of your blocked contacts.

Send an API call to /v1/contacts/blocklist to receive a paginated list of your blocked contacts.

You will receive a response with a page from your block list and paging information.

block list parameters

The following parameters are supported for GET calls to /v1/contacts/blocklist:

Settings
Description

limit

Optional.

Accepted range is (0;200]. Default: 100.

offset

Optional.

Default: 0.

How to Report a Contact

circle-exclamation

Send an API call to /v1/contacts/{phone_number}/report including a reason if you are blocking another business account.

When successful, the response will have HTTP status 200and will come without the "errors" object.

The failed response looks like this:

reporting parameters

The following parameters are supported by POST calls to /v1/contacts/{phone_number}/report:

Settings
Description

reason

Optional.

Blocking reason in free text format. It will be used during the process of blocking another business account. Must be less than 60 characters.

block

Optional.

The default is False.

If you just want to report or also block the contact.

message_id

Optional.

The ID of the message to be reported. If not specified, the last 5 messages will be sent to WhatsApp.

phone_number

Mandatory.

Numbers can be in any phone number format. The recommended format for contact phone numbers includes a plus sign (+) and country code.

If the WABA is registered in Cloud API

See how to send Contactsarrow-up-right and Location Messages arrow-up-rightin the specific Meta documentation.

circle-info

Currently, it is not possible to block or unblock contacts in the Cloud API. Please refer to Meta's Support regarding this limitation.arrow-up-right

Last updated

Was this helpful?