# terminals.get()

Canonical URL: https://developers.iagenify.com/de/sdk/ref/compute/terminals/get/
Language: de

`api.compute.terminals.get(id) → Promise<ComputeTerminal>`

Get a terminal by ID and read its current state.

```javascript
const terminal = await api.compute.terminals.get("YOUR_TERMINAL_ID");
const output = await terminal.output({ since: 0 });
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `id` | string | required | ID returned by `terminals.create()`. The terminal must belong to the signed-in account. |

A terminal record includes `id`, `name`, `command`, `storageId`, `cwd`, `status`, `busy`, `exitCode`, `by`, `startedAt`, `port` and `url`.

```python
terminal = api.compute.terminals.get("YOUR_TERMINAL_ID")
output = terminal.output(since=0)
```
