Skip to main content
GET
/
codes
list code versions
curl --request GET \
  --url https://api.example.com/codes \
  --header 'Authorization: Bearer <token>'
{
  "page": 123,
  "page_size": 123,
  "more": true,
  "total_pages": 123,
  "results": [
    {
      "id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "project_id": "<string>",
      "project_slug": "<string>",
      "user": "<string>",
      "version": "<string>",
      "n": 123,
      "name": "<string>",
      "parent_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key in Bearer token format

Query Parameters

page
integer | null
default:0
page_size
integer | null
default:20
order_by
enum<string> | null
default:created_at
Available options:
created_at,
updated_at
order
enum<string> | null
default:desc
Available options:
desc,
asc
user_id
string | null
project_id
string | null
project_slug
string | null
network
enum<string> | null
Available options:
eth,
bsc,
polygon,
base,
avax,
mode,
arb,
eth_sepolia,
bsc_test,
polygon_amoy,
base_sepolia,
avax_fuji,
mode_testnet,
arb_sepolia
method
enum<string> | null
Available options:
scan,
paste,
upload_file,
upload_folder,
repository
identifier
string | null

Response

Successful Response

page
integer
required
page_size
integer
required
more
boolean
required
total_pages
integer
required
results
CodeVersionMappingIndex · object[]