---
title: "Get a URL to upload a code archive (.zip, .7z or .tar.gz) to, then pentest it as a repo with source upload"
method: POST
path: "/archives/uploads"
tags: ["REST API - Archives"]
---

# Get a URL to upload a code archive (.zip, .7z or .tar.gz) to, then pentest it as a repo with source upload

`POST /archives/uploads`

## Request

- Base URL: `https://api.hacktron.ai/v1`
- URL: `https://api.hacktron.ai/v1/archives/uploads`
- Auth: API key in header `X-Api-Key`

## Request body

- RequestUploadDto
  - `file_name` string, required: Original filename (e.g. "my-project.zip")
  - `name` string: Display name (defaults to filename)

## Response `201`

- RequestUploadResponseDto
  - `id` string, required: Archive ID
  - `upload_url` string, required: Signed GCS upload URL (PUT)
  - `content_type` string, required: Content-Type to use in the PUT request

## Changes

- **2026-11-03** `48b2f95b2320`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hacktron/apis/hacktron-rest-api/changes/archives/uploads/post.md)

---

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