What happens right after I create a run?
- The API checks your key, Account ID, permissions, credits and the 5-runs-in-progress limit.
- It answers
201right away with the run object.statusis usually alreadyrunning;outputisnull. - Cosmos starts work on your account's cloud computer: it plans, writes and runs code, uses tools and saves files.
- You follow along with
GET /v1/runs/{id}/events(recommended) or pollGET /v1/runs/{id}every 2 seconds or more. - The run ends as
completed,failedorcancelled.
You don't need to keep a connection open: runs keep going if you disconnect.
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.