---
title: "Upload Proof Document Endpoint"
method: POST
path: "/v2/sms-campaign-registration/upload"
tags: ["sms-campaign-registration"]
---

# Upload Proof Document Endpoint

`POST /v2/sms-campaign-registration/upload`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/sms-campaign-registration/upload`
- Auth: HTTP bearer

Upload Proof Document

Get a presigned URL for uploading a consent proof document.
After uploading to S3, pass the returned attachment_id when creating the registration.

## Request body

- UploadProofDocumentRequest: Request body for uploading a proof document.
  - `filename` string, required: Name of the file being uploaded
  - `mime_type` union, required: MIME type of the file
    - 'application/json' | 'application/pdf' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.oasis.opendocument.spreadsheet' | 'application/vnd.ms-excel.sheet.macroEnabled.12' | 'application/vnd.ms-excel.sheet.macroenabled.12' | 'application/vnd.ms-excel.sheet.binary.macroEnabled.12' | 'application/vnd.ms-excel.sheet.binary.macroenabled.12' | 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'text/csv' | 'application/csv' | 'text/plain' | 'text/html' | 'application/xml' | 'message/rfc822' | 'application/vnd.ms-outlook' | 'application/rtf' | 'text/markdown' | 'text/md'
    - 'image/heic' | 'image/jpeg' | 'image/jpg' | 'image/png' | 'image/gif' | 'image/svg+xml' | 'image/x-eps' | 'image/tiff' | 'image/bmp' | 'image/webp' | 'image/avif'
    - 'audio/mp3' | 'audio/mp4' | 'audio/mpeg' | 'audio/wav' | 'audio/x-wav' | 'audio/webm'
    - 'video/MP2T' | 'video/quicktime' | 'video/mp4' | 'video/mpeg' | 'video/webm' | 'video/x-msvideo' | 'video/x-ms-wmv'
    - 'application/zip' | 'application/x-zip-compressed' | 'application/vnd.rar' | 'application/x-rar-compressed' | 'application/x-7z-compressed'
    - 'unknown'

## Response `200`

Successful Response

- UploadProofDocumentResponse: Response with presigned URL for uploading a proof document.
  - `presigned_url` PresignedUrl, required
    - `url` string, required
    - `fields` object, required
    - `method` 'POST' | 'PUT', required
    - `headers` object, required
    - `max_size` integer, required
  - `attachment_id` string, required: Attachment ID to pass when creating the registration

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/ff0ad16a55ff?raw)
