GraphCode

create via file

POST/v1/codes/file

Create a code version from a single uploaded source file, sent as multipart form data. Only the first file is used.

Processing happens asynchronously; the code version is ready once processing succeeds. Counts toward usage limits.

Authorization

BearerAuthhttp

API key in Bearer token format

Header parameters

Bevor-User-Idstring
Required in integration projects: the managed user the request is attributed to. Ignored in other projects.

Body

multipart/form-data
bodyCodeCreateFileBodyrequired
filesstring[]required
items:>= 1 items

Responses

application/json
CodeVersionInstanceCodeVersionInstance
idstringrequired
chain_idinteger | nullrequired
default:null
The chain the contract is deployed on.
version_methodCodeVersionMethodrequired
Available options:tag,commit,hash,address
version_fingerprintstringrequired
Uniquely identifies this code.
statusCodeVersionStatusrequired
Available options:queued,processing,failed,success
branchstring | nullrequired
default:null
commitGithubCommit | nullrequired
default:null
repositoryGithubRepository | nullrequired
default:null
created_atstring<date-time>required
uploadersUser[]required