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

# Set UCC callback URL (Beta)

> Set or replace the HTTPS URL where Vobiz sends your UCC complaint callbacks.

> [!NOTE]
>
> This API is in beta. Changes might be possible. To enable it for your account, email [support@vobiz.ai](mailto:support@vobiz.ai).

You can also set it in the console under **UCC complaints** > **Callback URL**. See [Callbacks](https://www.vobiz.ai/docs/ucc-complaints/callbacks.md) for the events and payloads.


## OpenAPI

````yaml openapi-ndnc.yaml PUT /api/v1/Account/{auth_id}/ndnc/webhook
openapi: 3.1.0
info:
  title: Vobiz UCC Complaints API (Beta)
  version: '1.0'
  contact:
    email: support@vobiz.ai
    url: https://www.vobiz.ai
  description: >
    Read the UCC (NDNC) complaints raised against your Vobiz numbers, upload
    opt-in proof before the deadline, and receive

    signed callbacks for complaint and block events.


    **Base URL:** `https://api.vobiz.ai/api/v1/Account/{auth_id}/ndnc`, where
    `{auth_id}` is your account Auth ID.


    **Authentication:** every request needs the `X-Auth-ID` and `X-Auth-Token`
    headers. The `{auth_id}` in the path must

    be the account those credentials belong to, otherwise the request returns
    `403`.


    **Beta.** Changes might be possible. To enable UCC complaints for your
    account, email support@vobiz.ai.
servers:
  - url: https://api.vobiz.ai
    description: Production
security:
  - AuthID: []
    AuthToken: []
tags:
  - name: Dashboard
    description: Summary of your UCC complaints.
  - name: Complaints
    description: UCC complaints raised against your numbers.
  - name: Proof
    description: Upload opt-in proof for a complaint.
  - name: Callbacks
    description: Your callback URL for UCC complaint events.
paths:
  /api/v1/Account/{auth_id}/ndnc/webhook:
    put:
      tags:
        - Callbacks
      summary: Set callback URL
      description: >
        Set or replace the URL where Vobiz sends your [UCC complaint
        callbacks](/ucc-complaints/callbacks). It must use `https` on the
        default port (443) and can't contain a username or password. Each
        account, and each sub-account, has one callback URL.


        **Beta.** Changes might be possible. To enable UCC complaints for your
        account, email support@vobiz.ai.
      operationId: set-ucc-webhook
      parameters:
        - $ref: '#/components/parameters/AuthId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookRequest'
            example:
              url: https://api.yourcompany.com/webhooks/vobiz/ucc
      responses:
        '200':
          description: The callback URL was saved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
              example:
                account_id: MA_XXXXXXXX
                url: https://api.yourcompany.com/webhooks/vobiz/ucc
                enabled: true
                created_at: '2026-11-21T09:00:00Z'
                updated_at: '2026-11-21T09:00:00Z'
        '400':
          description: The URL is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: validation_failed
                  message: invalid webhook url
                  details:
                    - field: url
                      issue: must use https
        '401':
          description: Missing or wrong Auth ID or Auth Token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  code: 401
                  message: Invalid authentication credentials
        '403':
          description: >-
            The account in the URL isn't yours, or UCC complaints isn't enabled
            for your account (`ndnc_not_enabled`).
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/GatewayError'
                  - $ref: '#/components/schemas/Error'
              examples:
                account_mismatch:
                  summary: Account in the URL isn't yours
                  value:
                    error:
                      code: 403
                      message: 'Access denied: account ID mismatch'
                not_enabled:
                  summary: UCC complaints not enabled
                  value:
                    error:
                      code: ndnc_not_enabled
                      message: NDNC is not enabled for this account
components:
  parameters:
    AuthId:
      name: auth_id
      in: path
      required: true
      description: Your account Auth ID. It must match the `X-Auth-ID` header.
      schema:
        type: string
        example: MA_XXXXXXXX
  schemas:
    WebhookRequest:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          description: Your HTTPS endpoint, on the default port.
          format: uri
    Webhook:
      type: object
      properties:
        account_id:
          type: string
          description: Your account.
        url:
          type: string
          description: Your callback URL.
          format: uri
        enabled:
          type: boolean
          description: Whether callbacks are sent.
        created_at:
          type: string
          description: When the URL was first set (UTC).
          format: date-time
        updated_at:
          type: string
          description: When the URL was last changed (UTC).
          format: date-time
    Error:
      type: object
      description: Error returned by the UCC Complaints API.
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code, such as `validation_failed` or
                `not_found`.
            message:
              type: string
              description: Human-readable message.
            details:
              type: array
              description: Fields that failed validation.
              items:
                type: object
                properties:
                  field:
                    type: string
                    description: The field or parameter.
                  issue:
                    type: string
                    description: What's wrong with it.
    GatewayError:
      type: object
      description: Authentication or authorization error.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
              description: HTTP status code.
            message:
              type: string
              description: Human-readable message.
  securitySchemes:
    AuthID:
      type: apiKey
      in: header
      name: X-Auth-ID
      description: Your Vobiz account Auth ID (`MA_XXXXXXXX`).
    AuthToken:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: Your Vobiz account Auth Token.

````

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