# Contacto de una conversación

GET `https://api.bydomu.com/v1/conversations/{contactId}`

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

Datos básicos del contacto con quien es la conversación.

Permission required

`conversations:read`

Required header

`X-API-Key` · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

## Path parameters

1 · required

`contactId` string · **required**

ID del contacto

## Response 200

`ConversationContact` · 5 fields

**`data` id · firstName · lastName · phone · email**

`id` string

`firstName` string

`lastName` string

`phone` string `null` si el contacto llegó por un canal sin número (Instagram, Facebook, chat de la web, correo o WhatsApp con usuario y número oculto)

`email` string

## Possible errors

shaped as `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **404** NOT_FOUND
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/conversations/clx1con001" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.conversations.get("clx1con001");
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/conversations/clx1con001",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Response · 200 · example**

```json
{
  "data": {
    "id": "clx1con001",
    "firstName": "María",
    "lastName": "González",
    "phone": "+573001234567",
    "email": "maria.gonzalez@email.com"
  }
}
```
