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

# Consultar contacto

> Obtén los datos actuales de un contacto por ID.

Obtén un contacto específico mediante el `id` devuelto al crearlo o listarlo.

## Endpoint

```text theme={null}
GET /contacts/{contactId}
```

## Parámetros de ruta

| Parámetro   | Tipo     | Requerido | Descripción      |
| ----------- | -------- | --------- | ---------------- |
| `contactId` | `string` | Sí        | ID del contacto. |

## Ejemplo de solicitud

```bash theme={null}
curl "https://api.insuranceboosters.com/api/v1/contacts/{contactId}" \
  -H "x-ib-api-key: TU_API_KEY"
```

## Respuesta exitosa (`200`)

```json theme={null}
{
  "success": true,
  "data": {
    "id": "<contact-id>",
    "firstName": "María",
    "lastName1": "García",
    "email": "maria.garcia@example.com",
    "phoneNumbers": ["+525500000000"],
    "createdAt": 1720000000000,
    "updatedAt": 1720000000000
  }
}
```

La respuesta también puede incluir los campos adicionales configurados para tu cuenta.

## Errores frecuentes

| HTTP  | Qué significa                          | Qué hacer                                       |
| ----- | -------------------------------------- | ----------------------------------------------- |
| `401` | API key inválida o faltante.           | Verifica `x-ib-api-key`.                        |
| `403` | El contacto no pertenece a tu cuenta.  | Confirma que usas el ID y la API key correctos. |
| `404` | El contacto no existe o fue eliminado. | Confirma `contactId`.                           |
| `500` | No fue posible consultar el contacto.  | Reintenta; si continúa, contacta soporte.       |


## OpenAPI

````yaml openapi/contactos-v1.yaml GET /contacts/{contactId}
openapi: 3.1.0
info:
  title: Insurance Boosters API — Contactos
  version: 1.0.0
  description: >-
    API pública para consultar el esquema y crear, listar, buscar, actualizar o
    eliminar contactos.
  license:
    name: Propietaria
    url: https://insuranceboosters.com
servers:
  - url: https://api.insuranceboosters.com/api/v1
    description: Producción
security:
  - IbApiKey: []
tags:
  - name: Contactos
    description: Administración de contactos.
paths:
  /contacts/{contactId}:
    parameters:
      - $ref: '#/components/parameters/ContactId'
    get:
      tags:
        - Contactos
      summary: Consultar contacto
      operationId: getContact
      responses:
        '200':
          description: Contacto solicitado.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/Contact'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    ContactId:
      name: contactId
      in: path
      required: true
      description: ID del contacto.
      schema:
        type: string
  schemas:
    Contact:
      allOf:
        - $ref: '#/components/schemas/ContactInput'
        - type: object
          required:
            - id
            - createdAt
            - updatedAt
          properties:
            id:
              type: string
              description: ID del contacto.
            createdAt:
              type: integer
              description: Fecha de creación en milisegundos Unix.
            updatedAt:
              type: integer
              description: Fecha de última actualización en milisegundos Unix.
    ContactInput:
      type: object
      description: Campos editables configurados para tu cuenta.
      additionalProperties: true
      properties:
        firstName:
          type: string
          minLength: 1
          maxLength: 100
          description: Nombre.
        lastName1:
          type: string
          minLength: 1
          maxLength: 100
          description: Primer apellido.
        lastName2:
          type: string
          maxLength: 100
          description: Segundo apellido.
        email:
          type: string
          format: email
          description: Correo electrónico.
        phoneNumbers:
          type: array
          description: Teléfonos del contacto.
          items:
            type: string
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  responses:
    Unauthorized:
      description: API key inválida o faltante.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: La integración no tiene acceso al contacto.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: El contacto no existe o fue eliminado.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Error inesperado.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    IbApiKey:
      type: apiKey
      in: header
      name: x-ib-api-key

````