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

# Create a UCC proof upload URL (Beta)

> Step 1 of uploading UCC proof: get a secure, 15-minute link to upload one proof file.

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

Upload the file to `upload_url` as a form upload, then [submit it](https://www.vobiz.ai/docs/ucc-complaints/submit-proof.md) with the returned `s3_key`. See [Upload proof](https://www.vobiz.ai/docs/ucc-complaints/upload-proof.md) for the full flow.


## OpenAPI

````yaml openapi-ndnc.yaml POST /api/v1/Account/{auth_id}/ndnc/complaints/{vobiz_urn}/proof/upload-url
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/complaints/{vobiz_urn}/proof/upload-url:
    post:
      tags:
        - Proof
      summary: Create a proof upload URL
      description: >
        Step 1 of [uploading proof](/ucc-complaints/upload-proof): get a secure
        link to upload one proof file. The link is a form upload
        (`multipart/form-data`): send every entry in `fields` as a form field
        and the file last, as `file`, without your Vobiz credentials. The link
        is valid for 15 minutes. Allowed files are PDF, PNG, JPG, WEBP, CSV and
        XLSX, up to 10 MB.


        **Beta.** Changes might be possible. To enable UCC complaints for your
        account, email support@vobiz.ai.
      operationId: create-ucc-proof-upload-url
      parameters:
        - $ref: '#/components/parameters/AuthId'
        - name: vobiz_urn
          in: path
          required: true
          description: The complaint's Vobiz reference.
          schema:
            type: string
            example: VUCC-000003
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadURLRequest'
            example:
              file_name: consent.pdf
              content_type: application/pdf
      responses:
        '200':
          description: A secure upload link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadURL'
              example:
                upload_url: https://vobiz-ndnc.s3.ap-south-1.amazonaws.com/
                fields:
                  key: ndnc/uploads/VUCC-000003/1763640000000000000-consent.pdf
                  Content-Type: application/pdf
                  policy: eyJ...
                  x-amz-algorithm: AWS4-HMAC-SHA256
                  x-amz-credential: ...
                  x-amz-date: 20261121T093000Z
                  x-amz-signature: ...
                max_bytes: 10485760
                s3_key: ndnc/uploads/VUCC-000003/1763640000000000000-consent.pdf
                expires_at: '2026-11-21T09:45:00Z'
        '400':
          description: >-
            The file type isn't allowed, or `content_type` doesn't match the
            extension.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: validation_failed
                  message: invalid proof file
                  details:
                    - field: content_type
                      issue: does not match the file type
        '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
        '404':
          description: The complaint doesn't exist or isn't yours.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: not_found
                  message: complaint VUCC-999999 not found
        '409':
          description: >-
            The deadline has passed (`deadline_passed`), or the complaint
            doesn't accept proof now (`invalid_state`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: deadline_passed
                  message: the proof deadline has passed and cannot be extended
        '429':
          description: More than 20 upload links in a minute.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: at most 20 upload URLs per minute; try again shortly
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:
    UploadURLRequest:
      type: object
      required:
        - file_name
        - content_type
      properties:
        file_name:
          type: string
          description: >-
            Name of your file, with its extension: .pdf, .png, .jpg, .jpeg,
            .webp, .csv or .xlsx.
          example: consent.pdf
        content_type:
          type: string
          description: The file's MIME type. It must match the extension.
          example: application/pdf
    UploadURL:
      type: object
      properties:
        upload_url:
          type: string
          description: Where to send the form upload.
        fields:
          type: object
          description: Form fields to send with the file, exactly as given.
          additionalProperties:
            type: string
        max_bytes:
          type: integer
          description: Largest file accepted, in bytes.
        s3_key:
          type: string
          description: Send this to Submit proof after the upload.
        expires_at:
          type: string
          description: When the link stops working (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.