# POST /move/key

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the move group.

Get UrbeStack's public SSH key for moves

- Who may call it: administrator
- Token scope, any of: users, all
- Answers: 200 OK

Returns public_key and fingerprint. UrbeStack generates an Ed25519 key pair on the first call if needed and returns the same key on subsequent calls. Only root can access the private key.

Add the public_key line to /root/.ssh/authorized_keys on the source server. This lets the destination run the urbestack-move-source scripts and the rsync sender as root on the source server.

Requires a token with the users scope. Returns 403 if the caller lacks administrator privileges.

## As a command

- [urbestack-move-status](https://urbestack.com/docs/commands/urbestack-move-status.md): Reports the status of a move on the destination server.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X POST "$API/move/key" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "fingerprint": "text",
  "public_key": "text"
}
```

## Errors

- 401: Authentication required
- 403: Insufficient privileges
