---
title: "Create project"
method: POST
path: "/project"
---

# Create project

`POST /project`

## Request

- Base URL: `https://api.zan.top/scr/v1`
- URL: `https://api.zan.top/scr/v1/project`
- Auth: none required

This API is used to create a new project to run review task. It requires service type and the source code. You can offer source code by github link or contract address or upload directly.

## Headers

- `Authorization` string, required

## Request body

- object
  - `projectId` string: If empty, SCR generates automatically
  - `projectName` string, required: Set your project name
  - `serviceType` 'Express' | 'Expert', required: Express or Expert
  - `srcForm` 'FILE' | 'GIT' | 'CONTRACT_ADDRESS', required: FILE , GIT or CONTRACT_ADDRESS
  - `srcField` string: Required if srcForm is FILE, value equals accessId from Upload files interface
  - `srcFileName` string: Required if srcForm is FILE, include dir which returned by Upload files interface. e.g. dir/timestamp/filename
  - `contractAddressList` string[]: Required if srcForm is CONTRACT_ADDRESS, no more than 3
  - `srcUrl` string: Required if srcForm is GIT
  - `srcBranch` string: Required if srcForm is GIT
  - `srcCommit` string: Optional if srcForm is GIT, leave empty if not.
  - `srcAccessToken` string: Optional if srcForm is GIT, leave empty if not.
  - `ifSofiAudit` 'true' | 'false', required: Set true if require formal verification

## Response `200`

200

- object
  - `data` object
    - `projectId` 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)
