> ## 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.

# Eliminar contacto

> Elimina un contacto para que deje de aparecer en consultas posteriores.

Elimina un contacto. Después de esta operación, ya no aparecerá en el listado ni podrás consultarlo por ID.

## Endpoint

```text theme={null}
DELETE /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 -X DELETE "https://api.insuranceboosters.com/api/v1/contacts/{contactId}" \
  -H "x-ib-api-key: TU_API_KEY"
```

## Respuesta exitosa (`200`)

```json theme={null}
{
  "success": true,
  "id": "<contact-id>",
  "message": "Contact deleted successfully"
}
```

<Warning>
  Esta operación no se puede revertir mediante la API pública.
</Warning>

## 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 ya fue eliminado. | Confirma `contactId`.                           |
| `500` | No fue posible eliminar el contacto.      | Reintenta; si continúa, contacta soporte.       |


## OpenAPI

````yaml openapi/contactos-v1.yaml DELETE /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'
    delete:
      tags:
        - Contactos
      summary: Eliminar contacto
      operationId: deleteContact
      responses:
        '200':
          description: Contacto eliminado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MutationResponse'
              example:
                success: true
                id: <contact-id>
                message: Contact deleted successfully
        '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:
    MutationResponse:
      type: object
      required:
        - success
        - id
        - message
      properties:
        success:
          type: boolean
          const: true
        id:
          type: string
        message:
          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

````