Getting a callback when an environment is finished creating

Hey all, we have an automated script that generates a copy of the master environment, like this:

await space.createEnvironmentWithId(environmentId, {name: environmentId});

It returns when the createEnvironment call has gone thru (after a few seconds), but not when the environment is actually finished creating (that part takes about 15 minutes). Is there a way one can register for a callback when an environment has a READY status, like in the image below

Hi Aldub,

Do you mean receiving a notification (e.g. a webhook event) once the environment is finally processed? If so, it wouldn’t be possible at the moment and there wouldn’t be a way for our API to notify you of that.