> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Contact Request

> Send a message with a button to request the user's contact information

Available only on WhatsApp

```bash cURL theme={null}
curl --request POST \
  --url https://api.jelou.ai/v1/bots/BOT_ID/messages \
  --header 'Authorization: Basic <Base64Encoded clientId:clientSecret>' \
  --header 'Content-Type: application/json' \
  --data '{
    "type": "contact_info_request",
    "text": "Please share your contact information",
    "userId": "USER_ID"
  }'
```

```json 200 theme={null}
{
  "success": true,
  "messageId": "msg_123456789"
}
```

## Path parameters

**botId** `string` *required*

Unique identifier of the bot sending the message.

## Body parameters

**type** `string` *required*

Message type. Must be `"contact_info_request"`.

**userId** `string` *required*

Message recipient. Accepts a phone number in E.164 format without the leading `+` (e.g. `593999999999`) or a BSUID (e.g. `US.13491208655302741918`) for users who have enabled phone number privacy in WhatsApp. See [Identifying the recipient](https://docs.jelou.ai/en/api/envia-mensajes/Envio-de-mensajes.md#identifying-the-recipient).

**text** `string` *required*

Text shown with the share-contact button.

## Response

**success** `boolean`

`true` if the message was sent successfully.

**messageId** `string`

Identifier of the sent message.

> [!NOTE]
>
> **Button text:** WhatsApp displays the button with predefined text in the user's language, since this button's text cannot be customized. You can only set the message that goes with it in the `text` field.

## Best Practices

> [!WARNING]
>
> **Privacy:** Always explain why you need the user's contact information. Be transparent about how their data will be used.

## Use Cases

* Registering a new customer
* Collecting details to follow up on a request
* Confirming the user's identity before continuing a process
* Updating an existing customer's contact information


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.