Skip to main content
POST
/
api
/
circom-files
Create Circom file
curl --request POST \
  --url https://platform.usewarp.net/api/circom-files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "name": "<string>",
  "content": "<string>",
  "file_type": "circuit"
}
'
{
  "file": {
    "id": "<string>",
    "project_id": "<string>",
    "name": "<string>",
    "content": "<string>",
    "file_type": "circuit",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Body

application/json
project_id
string
required

Project ID

name
string
required

File name

content
string
required

File content

file_type
enum<string>
required

File type

Available options:
circuit,
input,
other

Response

Circom file created successfully

file
object