Skip to main content
POST
Send a contact card
Hand someone your support desk’s number, or your delivery agent’s, as a card they can tap to call or save.

Notes

  • contacts takes 1 to 10 cards in one message.
  • full_name and phone_number are required on every card.
  • phone_number must include the country code — at least 10 digits after spaces, dashes and brackets are stripped. A shorter number is rejected with 400 invalid_request.
  • organization, email and url are optional extras shown on the card.
  • email must look like an address — something, an @, and a domain containing a dot, with no spaces. not-an-email is refused with 400 invalid_request rather than shipped as a card the recipient cannot use.
  • url must be a full http(s) link. A bare domain like example.com is refused, as is any URL carrying a username or password. Send https://example.com, not example.com.

Example

cURL

Authorizations

apikey
string
header
required

Your API key, sent in an apikey request header. Never in the URL, never as a Bearer token.

Body

application/json
instance_id
string<uuid>
required

Which of your connected numbers to send FROM. Copy it from your numbers screen in the portal, or from GET /v1/instances. It must belong to your account.

Example:

"3f9c1a2b-7d4e-4c81-9f0a-2b6d5e8c1a34"

to
string
required

The recipient, with country code and no leading zero — for example 919876543210. Spaces, dashes, brackets and a leading + are accepted and stripped; 6 to 15 digits must remain.

Example:

"919876543210"

contacts
object[]
required

1 to 10 contact cards.

Required array length: 1 - 10 elements
quoted_message_id
string

Send this message as a reply, quoting an earlier one. Use the data.message_id returned by a previous send.

Maximum string length: 128
Example:

"3EB0C1D2F4A5B6C7D8E9"

quoted_from_me
boolean
default:false

Set true when the quoted message is one you sent from this number. Only valid together with quoted_message_id.

Response

Accepted for delivery.

success
boolean
data
object
request_id
string<uuid>