---
title: "SSH tokens"
description: "Generate short-lived SSH tokens."
---

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

# SSH tokens

```javascript
const { token } = await client.apps.ssh.tokens.create({ app: "da_XYZ" });
// Should return: {
//   "token": "ssh_token_abc123..."
// }
console.log(token);
```

```python
result = client.apps.ssh.tokens.create(app="da_XYZ")
# Should return: {
#   "token": "ssh_token_abc123..."
# }
print(result["token"])
```

> Source: [stackmachine/sdks](https://github.com/stackmachine/sdks/tree/main) examples.

Source: https://docs.stackmachine.com/apps/ssh/tokens/index.mdx
