---
title: "Generate Upload Url"
method: POST
path: "/ad_analytics/rfm/upc/upload"
tags: ["RFM UPC Processing"]
---

# Generate Upload Url

`POST /ad_analytics/rfm/upc/upload`

## Request

- Base URL: `https://api.akkio.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.akkio.com/ad_analytics/rfm/upc/upload`
- Auth: none declared

Generate a signed URL for uploading a UPC file directly to S3

## Request body

- GenerateUploadUrlRequest: Request model for generating a signed URL for direct uploads to S3.
  - `file_name` string, required: The name of the file to upload (including extension)
  - `content_type` string, required: The MIME type of the file (e.g., text/csv for CSV files)

## Response `200`

Signed URL generated successfully

- GenerateUploadUrlResponse: Response model for the generate_upload_url endpoint.
  - `signed_url` string, required: The signed URL to use for direct upload to S3
  - `s3_key` string, required: The S3 key where the file will be uploaded
  - `expires_in_seconds` integer, required: The number of seconds until the signed URL expires

## Other responses

- `400`: Invalid request parameters
- `403`: Authentication required
- `422`: Validation Error

---

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