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

# User API: Profile, API Keys, and SSH Keys

> Manage your OneCLI profile, workspace API key, SSH keys, and account deletion with the OneCLI API.

The user endpoints act on your own account. Use them to read and update your profile, get or rotate your workspace API key, register SSH keys for agent access, and delete your account.

Your API key authenticates every other call, so treat it like any other secret. To get started with a key, see the [Quickstart](https://onecli.sh/docs/quickstart.md).

## Related guides

* [Quickstart](https://onecli.sh/docs/quickstart.md)
* [API editions](https://onecli.sh/docs/api-reference/editions.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Get your profile](https://onecli.sh/docs/api-reference/user/get-your-profile.md) | `GET /user` | Get your OneCLI profile. |
| [Update your profile](https://onecli.sh/docs/api-reference/user/update-your-profile.md) | `PATCH /user` | Update your OneCLI profile details, such as your display name, so teammates see current info. |
| [Delete your account](https://onecli.sh/docs/api-reference/user/delete-your-account.md) | `DELETE /user` | Delete your OneCLI account. |
| [Preview account deletion](https://onecli.sh/docs/api-reference/user/preview-account-deletion.md) | `GET /user/deletion-impact` | See what deleting your account would do to each of your organizations before you commit to it. |
| [Get your workspace API key](https://onecli.sh/docs/api-reference/user/get-your-workspace-api-key.md) | `GET /user/api-key` | Get your personal API key for the current workspace. |
| [Regenerate your workspace API key](https://onecli.sh/docs/api-reference/user/regenerate-your-workspace-api-key.md) | `POST /user/api-key/regenerate` | Replace your workspace API key with a new one. |
| [List your SSH keys](https://onecli.sh/docs/api-reference/user/list-your-ssh-keys.md) | `GET /user/ssh-keys` | List the SSH public keys on your account that you can use to get agent SSH certificates. |
| [Register an SSH key](https://onecli.sh/docs/api-reference/user/register-an-ssh-key.md) | `POST /user/ssh-keys` | Add an ed25519 SSH public key to your account so you can connect to agents over SSH. |
| [Remove an SSH key](https://onecli.sh/docs/api-reference/user/remove-an-ssh-key.md) | `DELETE /user/ssh-keys/{keyId}` | Remove an SSH public key from your account so it can no longer get agent SSH certificates. |

## Next steps

* [API overview](https://onecli.sh/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](https://onecli.sh/docs/api-reference/errors.md): status codes and the error format
* [Editions](https://onecli.sh/docs/api-reference/editions.md): which endpoints each edition serves


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