Skip to main content
POST
/
codes
/
create
/
scan
create via scan
curl --request POST \
  --url https://api.example.com/codes/create/scan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "address": "<string>",
  "is_private": true,
  "parent_id": "<string>",
  "network": "eth"
}
'
{
  "id": "<string>",
  "status": "waiting"
}

Authorizations

Authorization
string
header
required

API key in Bearer token format

Body

application/json
project_id
string
required
address
string
required

Contract address if source_type is SCAN

is_private
boolean | null
parent_id
string | null
network
enum<string> | null

Network the contract is deployed on

Available options:
eth,
bsc,
polygon,
base,
avax,
mode,
arb,
eth_sepolia,
bsc_test,
polygon_amoy,
base_sepolia,
avax_fuji,
mode_testnet,
arb_sepolia

Response

Successful Response

id
string
required
status
enum<string>
required
Available options:
waiting,
parsing,
parsed,
failed_parsing,
embedding,
failed_embedding,
success