> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Suspend computer

> Pause a running computer with its memory saved.

Suspends a running computer. Its memory and disk are saved, so open windows and running processes pick up exactly where they were. A suspended computer may be moved off its host to storage. [Resume](https://docs.orgo.ai/api-reference/computers/resume.md) or [Start](https://docs.orgo.ai/api-reference/computers/start.md) then wakes it in about a minute.

> [!NOTE]
>
> Suspend is available for Linux computers without a GPU. A computer that wakes from storage gets a **new `instance_id`**, so keep its UUID as your handle and re-fetch [`GET /computers/{id}`](https://docs.orgo.ai/api-reference/computers/get) after a wake. To release a computer and keep only its disk, use [Stop](https://docs.orgo.ai/api-reference/computers/stop.md) instead.

## Path parameters

**id** `string` *required*

Computer UUID or `instance_id`. Both resolve to the same computer.

## Response

**success** `boolean`

`true` when the computer is suspended, or its suspend is being saved.

**status** `string`

`suspended` with `200`: the computer is paused. `suspending` with `202`: its memory is still being saved. Poll [Get suspension](https://docs.orgo.ai/api-reference/computers/suspension.md) until `status` reads `suspended`.

**storage** `object`

Present only when the computer's copy is being saved to storage in the background: `{ "state": "saving", "region": "…" }`. `region` can be `null`. The computer can be resumed or deleted meanwhile.

Suspending is idempotent. A computer that is already `suspended` returns `200` with `status: "suspended"`, and one whose suspend is still being saved returns `202` with `status: "suspending"`.

## Example

```bash cURL theme={null}
curl -X POST https://www.orgo.ai/api/computers/$COMPUTER_ID/suspend \
  -H "Authorization: Bearer $ORGO_API_KEY"
```

```python Python theme={null}
import requests

response = requests.post(
    f"https://www.orgo.ai/api/computers/{computer_id}/suspend",
    headers={"Authorization": f"Bearer {api_key}"}
)

print(response.json()["status"])
```

```javascript JavaScript theme={null}
const response = await fetch(`https://www.orgo.ai/api/computers/${computerId}/suspend`, {
  method: 'POST',
  headers: { 'Authorization': `Bearer ${apiKey}` }
});

const { status } = await response.json();
console.log(status);
```

### Response

```json theme={null}
{
  "success": true,
  "status": "suspended",
  "storage": { "state": "saving", "region": "nyc" }
}
```

## Errors

| Status | Body | When |
| - | - | - |
| `400` | `{ "error": "…", "code": "suspend_unsupported" }` | The computer cannot be suspended: it is not Linux, or it has a GPU. `code` is `DEVICE_LIFECYCLE_UNSUPPORTED` for a device Orgo manages directly. |
| `401` | `{ "error": "Invalid API key" }` | The Bearer token starts with `sk_` but is not a known Orgo key. |
| `401` | `{ "error": "Authentication required" }` | No `Authorization` header, or a Bearer token that is not an `sk_` key. |
| `402` | `{ "error": "Choose a plan to continue." }` | The computer is a trial computer whose trial has ended. A computer paid by its own subscription or reservation whose payment has lapsed gets "Manage this computer’s payment in Account → Usage." instead. |
| `403` | `{ "error": "You do not have access to this workspace." }` | You are not a member of the computer's workspace. |
| `403` | `{ "error": "This workspace is view-only. Ask the owner for write access (workspace_read_only).", "code": "workspace_read_only" }` | You have Can chat access to the workspace. |
| `403` | `{ "error": "This API key cannot access this workspace (workspace_scope_mismatch).", "code": "workspace_scope_mismatch" }` | The API key is scoped to a different workspace. |
| `401`, `403` | `{ "error": "…", "code": "key_permission" }` | The key itself was refused before the suspend ran, such as a restricted key without Computers write, a computer's own key or its identity token (`computer_key`), or an expired key (`401`, `key_expired`). Listed in [Codes any endpoint can return to a key](https://docs.orgo.ai/api-reference/api-keys/manage.md#codes-any-endpoint-can-return-to-a-key). |
| `404` | `{ "error": "Computer not found (computer_not_found).", "code": "computer_not_found" }` | No computer matches the id. Signed in with a session instead of a key, the body is `{ "error": "Desktop not found" }`. |
| `409` | `{ "error": "Use Stop to save your files and release hourly compute.", "code": "HOURLY_USE_STOP" }` | The computer runs by the hour. Stop it instead. When the caller is the workspace owner on Free and a plan would take the computer, the `error` is `A computer billed by the hour can’t keep its memory. Stop it, or choose a plan to suspend it.`, and the body also carries `upgrade_required: true`, `upgradeTier`, `upgrade_url`, `retryable: false`, `next` (Stop, then the plans), and `docs_url`. |
| `409` | `{ "error": "Manage this reservation in Account → Usage.", "code": "ALLOCATION_MANAGED" }` | The computer is part of a reservation. |
| `409` | `{ "error": "This computer is being moved to another host. Try again in a few minutes.", "code": "migrating" }` | The computer is being moved to another host. |
| `409` | `{ "error": "This computer is still finishing waking up. Try again in a minute.", "code": "converging" }` | The computer woke from storage moments ago and is still settling. Nothing was saved. Carries `Retry-After: 30`. |
| `409` | `{ "error": "Computer is not running (status: stopped)" }` | The computer is not `running`, `suspending`, or `suspended`. |
| `409` | `{ "error": "Computer can't be suspended right now (status: …)" }` | Its host refused the suspend and the computer is in another state there. |
| `429` | `{ "error": "Too many starts, stops and other changes to this computer this minute (10 a minute). Try again in 20 seconds.", "code": "rate_limited", "limit": "computer_lifecycle_per_computer_per_minute", "retry_after": 20 }` | The workspace owner's plan rate limit for starts, stops and other changes, for the account or for this computer. `limit` is `computer_lifecycle_per_minute` or `computer_lifecycle_per_computer_per_minute`. Carries a `Retry-After` header with the seconds to wait. Nothing is suspended. See [Plan rate limits](https://docs.orgo.ai/guides/account-limits.md#plan-rate-limits). |
| `500` | `{ "error": "…" }` | The suspend failed. |
| `503` | `{ "error": "Computer not ready. VMM has not assigned a server yet" }` | The computer has no host on record yet. |
| `503` | `{ "error": "Service temporarily unavailable. …" }` | Orgo could not verify the credential because of a server-side fault. The response carries `Retry-After: 5`. Retry after that delay. |


## OpenAPI

````yaml POST /computers/{id}/suspend
openapi: 3.1.0
info:
  title: Orgo API
  description: >-
    Launch cloud computers that AI agents can control and interact with. Create
    workspaces, provision computers, and control them programmatically.
  version: 2.0.0
  contact:
    name: Orgo Support
    email: contact@orgo.ai
    url: https://orgo.ai
servers:
  - url: https://www.orgo.ai/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Support
    description: >-
      Orgo’s support agent, for programs: ask how to do something in Orgo and
      get an answer with full URLs and copyable commands.
  - name: Account
    description: >-
      Account capacity: how many computers an account may run, and adding or
      giving back more. Residential data: what the account has left for
      residential IPs, and buying more from credits.
  - name: Agent accounts
    description: >-
      Accounts an AI agent makes for itself, and the claim link a person uses to
      take one over.
  - name: Clients
    description: >-
      Run Orgo for your clients from your own app: a workspace and scoped key
      each, billed to you or to them.
  - name: Workspaces
    description: Organize computers into named workspaces
  - name: Computers
    description: Provision and manage virtual computers
  - name: Public URLs
    description: Share an app running on a computer at an https address on orgo.dev.
  - name: Computer Lifecycle
    description: Start, stop, and restart computers
  - name: Computer Actions
    description: Control mouse, keyboard, and execute commands
  - name: Screens
    description: >-
      More than one desktop on a single computer. Each screen is its own X
      server with its own cursor and window manager, so an agent working on one
      cannot disturb another.
  - name: Files
    description: Upload and download files
  - name: Templates
    description: Author, build, and launch reproducible computers from templates
  - name: Chat
    description: Run an agent on a computer through OpenAI-compatible chat completions.
  - name: Workflows
    description: >-
      Routines that run the same way every time: a start, then steps. Make them
      from plain words or lines, check them, run them and follow their runs (in
      preview).
paths:
  /computers/{id}/suspend:
    post:
      tags:
        - Computer Lifecycle
      summary: Suspend computer
      description: >-
        Pauses a running computer with its memory: every open window and running
        process survives, and Resume brings it back as it was. The host slot is
        released. A suspend saved to storage first answers `202` with `status:
        "suspending"`; poll `GET /computers/{id}/suspension` until it reads
        `suspended`. Suspending a `suspended` computer succeeds and changes
        nothing. An hourly computer uses Stop instead. Accepts the computer UUID
        or its `instance_id`.
      operationId: suspendComputer
      parameters:
        - name: id
          in: path
          required: true
          description: Computer UUID or instance_id
          schema:
            type: string
      responses:
        '200':
          description: >-
            Suspended. `storage` is present when its copy is being saved to
            storage in the background.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  status:
                    type: string
                    enum:
                      - suspended
                  storage:
                    type: object
                    properties:
                      state:
                        type: string
                        enum:
                          - saving
                      region:
                        type:
                          - string
                          - 'null'
              example:
                success: true
                status: suspended
        '202':
          description: >-
            Accepted: the suspend is being saved to storage. Poll `GET
            /computers/{id}/suspension`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  status:
                    type: string
                    enum:
                      - suspending
              example:
                success: true
                status: suspending
        '400':
          description: >-
            This computer can't be suspended (`suspend_unsupported`: only Linux
            without a GPU; `DEVICE_LIFECYCLE_UNSUPPORTED`: a device Orgo
            manages).
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                      - suspend_unsupported
                      - DEVICE_LIFECYCLE_UNSUPPORTED
              example:
                error: …
                code: suspend_unsupported
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/TrialInactive'
        '403':
          $ref: '#/components/responses/AccessDenied'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            The suspend was refused: not `running`, being moved (`migrating`),
            still finishing a wake from storage (`converging`, `Retry-After:
            30`), an hourly computer (`HOURLY_USE_STOP`), or a dedicated
            purchase (`ALLOCATION_MANAGED`).
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                      - migrating
                      - converging
                      - HOURLY_USE_STOP
                      - ALLOCATION_MANAGED
              examples:
                not-running:
                  summary: Not running
                  value:
                    error: 'Computer is not running (status: stopped)'
                hourly:
                  summary: Hourly computer
                  value:
                    error: Use Stop to save your files and release hourly compute.
                    code: HOURLY_USE_STOP
                converging:
                  summary: Still finishing a wake
                  value:
                    error: >-
                      This computer is still finishing waking up. Try again in a
                      minute.
                    code: converging
                hourly-free:
                  summary: Hourly computer, owner on Free
                  value:
                    error: >-
                      A computer billed by the hour can’t keep its memory. Stop
                      it, or choose a plan to suspend it.
                    code: HOURLY_USE_STOP
                    upgrade_required: true
                    upgradeTier: …
                    upgrade_url: https://www.orgo.ai/settings/billing?upgrade=…#plans
                    retryable: false
                    next:
                      - method: POST
                        url: >-
                          https://www.orgo.ai/api/computers/a3bb189e-8bf9-3888-9912-ace4e6543002/stop
                        why: Stop it. Its files stay.
                      - method: GET
                        url: https://www.orgo.ai/pricing.md
                        why: See the plans and what each one includes.
                    docs_url: https://www.orgo.ai/pricing.md
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          description: The suspend failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Failed to suspend
        '503':
          description: >-
            The computer has no host on record yet, or the credential could not
            be verified. Retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Computer not ready. VMM has not assigned a server yet
components:
  responses:
    Unauthorized:
      description: 'No usable credential. Send `Authorization: Bearer $ORGO_API_KEY`.'
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/Error'
              - type: object
                properties:
                  docs:
                    type: string
                    format: uri
                    description: 'How to sign in: `https://www.orgo.ai/auth.md`.'
          examples:
            invalid-key:
              summary: The key is not one of yours
              value:
                error: Invalid API key
                docs: https://www.orgo.ai/auth.md
            no-credential:
              summary: No key and no session
              value:
                error: Authentication required
                docs: https://www.orgo.ai/auth.md
      headers:
        WWW-Authenticate:
          description: '`Bearer realm="Orgo API"`.'
          schema:
            type: string
    TrialInactive:
      description: >-
        The computer is a free trial computer whose trial is no longer active,
        or it is paid for by its own subscription or dedicated purchase and that
        payment has lapsed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            trial:
              summary: Trial no longer active
              value:
                error: Choose a plan to continue.
            payment:
              summary: The computer's own payment has lapsed
              value:
                error: Manage this computer’s payment in Account → Usage.
    AccessDenied:
      description: >-
        You are not the owner or a member of the computer's workspace, you have
        Can chat access, or the API key is scoped to another workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            no-access:
              summary: Not the owner or a member of the workspace
              value:
                error: You do not have access to this workspace.
            view-only:
              summary: Can chat member, and the request changes something
              value:
                error: >-
                  This workspace is view-only. Ask the owner for write access
                  (workspace_read_only).
                code: workspace_read_only
            scope-mismatch:
              summary: The API key is scoped to another workspace
              value:
                error: >-
                  This API key cannot access this workspace
                  (workspace_scope_mismatch).
                code: workspace_scope_mismatch
    NotFound:
      description: >-
        No computer with this id on your account. With an API key the body
        carries `code: "computer_not_found"`; signed in with a session it is
        `Desktop not found`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            api-key:
              summary: API key
              value:
                error: Computer not found (computer_not_found).
                code: computer_not_found
            session:
              summary: Signed in with a session
              value:
                error: Desktop not found
    RateLimited:
      description: >-
        Over one of the account's plan rate limits (`rate_limited`): `limit`
        names it, and `retry_after` and `Retry-After` say how many seconds to
        wait. Limits are per account, the workspace owner's when the request
        acts on a computer or a workspace, and set by its plan. See [Account
        limits and rate limits](/guides/account-limits#plan-rate-limits).
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimited'
  schemas:
    Error:
      type: object
      description: >-
        The base error body. Every failure carries `error`; individual endpoints
        add the fields named in the schemas below.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable message.
          example: Access denied
        code:
          type: string
          description: >-
            Machine-readable reason. Present on the failures that define one,
            absent otherwise.
    RateLimited:
      type: object
      required:
        - error
        - code
        - limit
        - retry_after
      properties:
        error:
          type: string
          description: Which limit, in plain words, and when to try again.
        code:
          type: string
          const: rate_limited
        limit:
          type: string
          enum:
            - computer_create_per_minute
            - computer_create_per_hour
            - computer_create_per_day
            - computer_lifecycle_per_minute
            - computer_lifecycle_per_computer_per_minute
            - computer_control_per_minute
            - computer_control_per_computer_per_minute
            - chat_runs_per_minute
            - chat_runs_concurrent
            - workspace_create_per_hour
            - api_other_per_minute
        retry_after:
          type: integer
          minimum: 1
          description: Seconds to wait.
      example:
        error: >-
          Too many API requests this minute (120 a minute on your plan). Try
          again in 12 seconds.
        code: rate_limited
        limit: api_other_per_minute
        retry_after: 12
  headers:
    RetryAfter:
      description: Seconds to wait before asking again.
      schema:
        type: integer
        minimum: 1
    RateLimitLimit:
      description: The tightest limit this request counts against.
      schema:
        type: integer
    RateLimitRemaining:
      description: How many are left of it in this window.
      schema:
        type: integer
    RateLimitReset:
      description: Seconds until its window starts again.
      schema:
        type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Get your key at orgo.ai/workspaces

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.