---
title: "Create Terminal Session"
method: POST
path: "/api/terminal/session"
tags: ["modal-terminal", "modal-terminal"]
---

# Create Terminal Session

`POST /api/terminal/session`

Create a new terminal session backed by a workspace sandbox.

## Request body

- TerminalSessionRequest — Request to create a new terminal session.

## Response `200`

Successful Response

- TerminalSessionResponse — Response containing the session credentials and WebSocket URL.
  - `session_id` string, required
  - `token` string, required
  - `ws_url` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.net/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quadrillion/quadrillion-cloud-api/revisions/dcf9b4550387/schema)
