---
title: "Send contacts message"
method: POST
path: "/messages/contacts"
tags: ["Messages"]
---

# Send contacts message

`POST /messages/contacts`

Sends one or more contact cards.

Requires an open service window: the recipient must have messaged the business in the last 24 hours. Use `POST /messages/template` to reach recipients outside that window.

## Request body

- object
  - `from` string, required — WhatsApp id of the sender phone number
  - `to` string, required — Recipient phone number, digits only, including country code
  - `contacts` object[], required — Contact cards to send
    - `name` object, required
      - `formatted_name` string, required — Full name as it should be displayed
      - `first_name` string
      - `last_name` string
      - `middle_name` string
      - `suffix` string
      - `prefix` string
    - `phones` object[]
      - `phone` string, required
      - `type` string — Phone type, e.g. CELL, HOME or WORK
      - `wa_id` string — WhatsApp id of the phone number
    - `addresses` object[]
      - `street` string
      - `city` string
      - `state` string
      - `zip` string
      - `country` string
      - `country_code` string
      - `type` string — Address type, e.g. HOME or WORK
    - `birthday` string — Birthday in YYYY-MM-DD format
    - `emails` object[]
      - `email` string
      - `type` string — Email type, e.g. HOME or WORK
    - `org` object
      - `company` string
      - `department` string
      - `title` string
    - `urls` object[]
      - `url` string
      - `type` string — URL type, e.g. HOME or WORK

## Response `200`

Message sent successfully

- object
  - `id` string, uuid, required — Id of the created message

## Other responses

- `400` — Bad request — invalid input data, or the message was rejected by the WhatsApp Cloud API (e.g. invalid template)
- `401` — Unauthorized
- `404` — Sender phone number not found or not linked to a WhatsApp Business Account

---

[API](https://skmtc.net/indigohive/apis/cogfy-messenger-public-api.md) · [All operations](https://skmtc.net/indigohive/apis/cogfy-messenger-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/indigohive/cogfy-messenger-public-api/versions/30bd33ee45c9/schema)
