Is it possible to fork a sandbox programatically #4174
-
Hi all, I have a particular use-case that requires an auto fork of a sandbox link submitted to my server. Is it possible? I looked at the documentation and got confused... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
We don't yet have an official public API for this, but we use a POST request to https://codesandbox.io/api/v1/sandboxes/sandbox_ID/fork, for forking. You get back an ID of a forked sandbox that's anonymously owned. |
Beta Was this translation helpful? Give feedback.
-
Related question, after forking, does it automatically start the container and we can wait for X minutes for the preview to show? It doesn't seem to start it automatically when I tried it. |
Beta Was this translation helpful? Give feedback.
We don't yet have an official public API for this, but we use a POST request to https://codesandbox.io/api/v1/sandboxes/sandbox_ID/fork, for forking. You get back an ID of a forked sandbox that's anonymously owned.