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

Changed on
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

file_namestring required

Original filename (e.g. "my-project.zip")

namestring

Display name (defaults to filename)

Example request

{
  "file_name": "my-project.zip"
}

Response

idstring required

Archive ID

upload_urlstring required

Signed GCS upload URL (PUT)

content_typestring required

Content-Type to use in the PUT request

Example response

{
  "content_type": "application/zip"
}

Changes