Skip to main content

Restart session

Restarts the session by deleting all the provided input files and the resulting pending contracts.


v2 API is only meant for the UI. Because it makes use of session cookies and it is not possible have Access-Control-Allow-Origin: * with credentials: true, meaning these endpoints can only be used on explicitly set domains on the browser. (e.g. Please use the v1 verification API if you want Sourcify on your frontend.

URL : /restart-session

Method : POST


Condition : Restart successful.

Code : 200 OK

Content :

"Session successfully restarted"


Condition : Cannot restart the session.

Code : 500 Internal Server Error

Content :

"error": "Error in session restart"