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

# Get a contact's consent sources

> Returns consent states and proof summaries grouped by consent definition and channel. Returns an empty array when no proofs exist.

`consent_data` is the consent definition ID; `channels` is keyed by channel (for example, `email` or `sms`).

### Reading a channel's consent

* **Double opt-in:** `value` is `yes`, and `last_confirmation` provides the date and source of the double opt-in confirmation.
* **Single opt-in:** `value` is `yes`, without `last_confirmation`.
* **Nothing recorded:** The channel is omitted. This is not the same as `no`: no consent value has been recorded for this channel.
* **No consent:** `value` is `no`. A previous double opt-in confirmation may still appear in `last_confirmation` as history.

Both single and double opt-in include `first_proof` and `last_proof`, with the dates and sources of the first and most recent records.


## OpenAPI

````yaml /src/autogen/incoming-openapi3.0.yaml get /v1/contacts/{contactId}/consent-sources
openapi: 3.1.0
info:
  description: >-
    This OpenAPI 3.1 specification describes the public API of the Qomon
    platform. It is generated from the code and serves both as documentation for
    API consumers and as a contract for future development.
  title: Qomon API Reference
  version: 0.0.1
servers:
  - description: Production
    url: https://incoming.qomon.app
security:
  - bearerAuth: []
tags:
  - description: >-
      Create, read, update, and delete Qomon contacts.


      **Basic fields:** name, email, phone, address, tags, gender, birthdate,
      etc.


      **Advanced fields:** consents, surveys, custom fields, level of support,
      tasks.


      **Operations:**

      - `/contacts/upsert` (async) — Recommended for synchronizing and
      mass-updating contacts

      - `/contacts` (sync) — Create individual contacts

      - `/contacts/{id}` (sync) — Read, update, or delete individual contacts

      - `/v1/contacts/{contactId}/consent-sources` (sync) — Read consent values
      and proof summaries by consent definition and channel

      - `/v1/contacts/{contactId}/tags` (sync) — Add or remove tags on a contact
      without updating the whole contact
    name: Contacts
  - description: >-
      Manage the space's contact tags and change a contact's tags incrementally,
      without a full contact update.


      **Operations:**

      - `/v1/tags` — list or create the space's tags

      - `/v1/tags/{name}` — delete a tag no contact or site uses

      - `/v1/contacts/{contactId}/tags` — list a contact's tags, or add and
      remove some in one atomic change
    name: Contact tags
  - description: >-
      Retrieve form definitions and their possible values (refvalues).


      **Use forms to:**

      - Understand and interpret contact advanced fields

      - Look up valid values for consents, surveys, custom fields, task
      assignments

      - Explore available form types and their structure


      **Form types:** consent, level_of_support, presence_status, custom_fields,
      survey, tasks
    name: Forms
paths:
  /v1/contacts/{contactId}/consent-sources:
    get:
      tags:
        - Contacts
      summary: Get a contact's consent sources
      description: >-
        Returns consent states and proof summaries grouped by consent definition
        and channel. Returns an empty array when no proofs exist.
      operationId: get-contact-consent-sources
      parameters:
        - description: Contact ID.
          in: path
          name: contactId
          required: true
          schema:
            description: Contact ID.
            examples:
              - 42
            format: int64
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ContactConsentSource'
                type:
                  - array
                  - 'null'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
components:
  schemas:
    ContactConsentSource:
      additionalProperties: true
      properties:
        channels:
          additionalProperties:
            $ref: '#/components/schemas/ContactConsentSourceChannel'
          description: >-
            Recorded consent and source details keyed by channel, such as email
            or sms. Channels with no recorded proof are omitted.
          readOnly: true
          type: object
        consent_data:
          description: Consent definition ID.
          examples:
            - 42
          format: int64
          minimum: 0
          readOnly: true
          type: integer
      required:
        - consent_data
        - channels
      type: object
    ErrorModel:
      additionalProperties: true
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ContactConsentSourceChannel:
      additionalProperties: true
      properties:
        first_proof:
          $ref: '#/components/schemas/ContactConsentSourceProof'
          description: Earliest recorded proof for this consent and channel.
          readOnly: true
        last_confirmation:
          $ref: '#/components/schemas/ContactConsentSourceProof'
          description: >-
            Date and source of the most recent double opt-in confirmation.
            Omitted when no double opt-in confirmation has been recorded; may
            remain as history when value is no.
          readOnly: true
        last_proof:
          $ref: '#/components/schemas/ContactConsentSourceProof'
          description: Most recent recorded proof for this consent and channel.
          readOnly: true
        value:
          description: >-
            Recorded consent for this channel: yes for consent, no for refusal.
            No recorded value is represented by an omitted channel, not by no.
          enum:
            - 'yes'
            - 'no'
          examples:
            - 'yes'
          readOnly: true
          type: string
      required:
        - value
      type: object
    ErrorDetail:
      additionalProperties: true
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    ContactConsentSourceProof:
      additionalProperties: true
      properties:
        date:
          description: Date of the consent proof.
          examples:
            - '2026-07-01T10:00:00Z'
          format: date-time
          readOnly: true
          type: string
        source:
          description: Origin of the consent proof.
          examples:
            - webapp
          readOnly: true
          type: string
      required:
        - date
        - source
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: opaque
      description: >-
        OAuth2 access token. Pass the token in the Authorization header as
        `Bearer <token>`. The token is looked up in Redis to resolve the caller
        identity.
      scheme: bearer
      type: http

````

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