Runloop · Arazzo Workflow

Runloop Suspend and Resume a Devbox

Version 1.0.0

Suspend a running devbox to free compute, wait until it is suspended, then resume it and wait until it is running again.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceAI AgentsCoding AgentsSandboxesDevboxesCode ExecutionEvaluationBenchmarksSWE-BenchMCPSnapshotsMicroVMEnterpriseSOC 2ArazzoWorkflows

Provider

runloop-ai

Workflows

suspend-and-resume-devbox
Suspend a devbox then resume it back to running.
Suspends a running devbox, waits for the suspended state, resumes it, and waits for the running state.
4 steps inputs: apiToken, devboxId outputs: devboxId, finalStatus
1
suspendDevbox
Suspend the running devbox; its disk is snapshotted as part of suspension.
2
waitUntilSuspended
Poll until the devbox reports suspended, looping back while it is still suspending.
3
resumeDevbox
Resume the suspended devbox from its captured disk state.
4
waitUntilRunning
Poll until the devbox reports running again, looping back while it is still resuming.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Runloop Suspend and Resume a Devbox
  summary: Suspend a running devbox to free compute, wait until it is suspended, then resume it and wait until it is running again.
  description: >-
    Suspending a devbox snapshots its disk and stops active compute so it can be
    resumed later with the same disk. This workflow suspends a running devbox,
    polls until it reports the suspended status, then resumes it and polls until
    it reports running again. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: devboxApi
  url: ../openapi/runloop-ai-devbox-api-openapi.yml
  type: openapi
workflows:
- workflowId: suspend-and-resume-devbox
  summary: Suspend a devbox then resume it back to running.
  description: >-
    Suspends a running devbox, waits for the suspended state, resumes it, and
    waits for the running state.
  inputs:
    type: object
    required:
    - apiToken
    - devboxId
    properties:
      apiToken:
        type: string
        description: Runloop API bearer token.
      devboxId:
        type: string
        description: The id of the running devbox to suspend and resume.
  steps:
  - stepId: suspendDevbox
    description: Suspend the running devbox; its disk is snapshotted as part of suspension.
    operationId: suspendDevbox
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    - name: id
      in: path
      value: $inputs.devboxId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
  - stepId: waitUntilSuspended
    description: >-
      Poll until the devbox reports suspended, looping back while it is still
      suspending.
    operationId: waitForDevboxStatus
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    - name: id
      in: path
      value: $inputs.devboxId
    requestBody:
      contentType: application/json
      payload:
        statuses:
        - suspended
        timeout_seconds: 30
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
    onSuccess:
    - name: suspended
      type: goto
      stepId: resumeDevbox
      criteria:
      - context: $response.body
        condition: $.status == "suspended"
        type: jsonpath
    - name: stillSuspending
      type: goto
      stepId: waitUntilSuspended
      criteria:
      - context: $response.body
        condition: $.status == "suspending"
        type: jsonpath
  - stepId: resumeDevbox
    description: Resume the suspended devbox from its captured disk state.
    operationId: resumeDevbox
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    - name: id
      in: path
      value: $inputs.devboxId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
  - stepId: waitUntilRunning
    description: >-
      Poll until the devbox reports running again, looping back while it is still
      resuming.
    operationId: waitForDevboxStatus
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    - name: id
      in: path
      value: $inputs.devboxId
    requestBody:
      contentType: application/json
      payload:
        statuses:
        - running
        timeout_seconds: 30
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
    onSuccess:
    - name: running
      type: end
      criteria:
      - context: $response.body
        condition: $.status == "running"
        type: jsonpath
    - name: stillResuming
      type: goto
      stepId: waitUntilRunning
      criteria:
      - context: $response.body
        condition: $.status == "resuming"
        type: jsonpath
  outputs:
    devboxId: $inputs.devboxId
    finalStatus: $steps.waitUntilRunning.outputs.status

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/runloop-ai-suspend-and-resume-devbox-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.