---
title: "Upload files"
method: POST
path: "/file/get-upload-link"
---

# Upload files

`POST /file/get-upload-link`

## Request

- Base URL: `https://api.zan.top/scr/v1`
- URL: `https://api.zan.top/scr/v1/file/get-upload-link`
- Auth: none required

This API is used to upload smart contract source code. It returns the upload link and access id. You can use the returned parameters to construct an upload request .

## Headers

- `Authorization` string, required

## Response `200`

200

- object
  - `data` object
    - `accessId` string
    - `policy` string
    - `signature` string
    - `dir` string
    - `host` string
    - `expires` string
    - `fileId` string
  - `success` boolean

## Other responses

- `401`: 401

---

[API](https://skmtc.dev/zan/apis/smart-contract-review.md) - [All operations](https://skmtc.dev/zan/apis/smart-contract-review/llms.txt) - [OpenAPI document](https://skmtc.dev/zan/apis/smart-contract-review/revisions/c74cc43d58d3?raw)
