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

# Contact's "Do not contact" history

> Markings and unblocks, most recent first, with author, date, and reason.



## OpenAPI

````yaml /en/openapi.json get /v1/contacts/{contactId}/do-not-contact/history
openapi: 3.0.0
info:
  title: Nuvia API - Company
  description: API documentation for companies
  version: '1.0'
  contact: {}
servers:
  - url: https://api.nuvia.ai
security: []
tags:
  - name: messages
    x-group: Mensagens
  - name: contacts
    x-group: Contatos
  - name: campaigns
    x-group: Campanhas
  - name: tables
    x-group: Tabelas e Listas
  - name: agents
    x-group: Agentes
  - name: conversations
    x-group: Conversas
  - name: inboxes
    x-group: Caixas de Entrada
  - name: knowledge
    x-group: Base de Conhecimento
  - name: Webhooks
    x-group: Webhooks
  - name: campaign-enrollments
    x-group: Inscrições em Campanha
  - name: custom-fields
    x-group: Campos Customizados
  - name: resources
    x-group: Arquivos e Anexos
  - name: hubspot
    x-group: HubSpot
paths:
  /v1/contacts/{contactId}/do-not-contact/history:
    get:
      tags:
        - contacts
      summary: Contact's "Do not contact" history
      description: Markings and unblocks, most recent first, with author, date, and reason.
      operationId: DoNotContactController_history
      parameters:
        - name: x-company-id
          in: header
          description: >-
            Target company identifier. Required only for global API keys
            (type=global).
          required: false
          schema:
            type: string
        - name: contactId
          required: true
          in: path
          description: Contact ID
          schema:
            type: string
      responses:
        '200':
          description: Contact history
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DoNotContactHistoryItemResponseDto'
        '401':
          description: Invalid or expired token
        '403':
          description: You do not have permission to access this resource
        '404':
          description: Resource not found
      security:
        - JWT-auth: []
components:
  schemas:
    DoNotContactHistoryItemResponseDto:
      type: object
      properties:
        _id:
          type: string
          description: Event ID
        action:
          type: string
          description: MARKED | UNBLOCKED
        reason:
          type: string
          description: Reason for the marking (MARKED)
        unblock_reason:
          type: string
          description: Reason for the unblock (UNBLOCKED)
        note:
          description: Text of the OTHER reason
          type: string
        actor:
          type: object
          properties:
            type:
              type: string
              description: USER | SYSTEM
            id:
              type: string
              description: Author ID
            name:
              type: string
              description: Author name
          required:
            - type
            - id
            - name
          description: Who did it
        created_at:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
          description: When
        source_conversation_id:
          description: Conversation where the marking was made
          type: string
      required:
        - _id
        - action
        - actor
        - created_at
  securitySchemes:
    JWT-auth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT authentication token

````

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