SSH Keys API

Add SSH Key

curl -X POST https://api.pulserun.dev/v1/ssh-keys \
  -H "Authorization: Bearer pr_live_xxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Laptop",
    "public_key": "ssh-ed25519 AAAA... user@laptop"
  }'

List SSH Keys

curl https://api.pulserun.dev/v1/ssh-keys \
  -H "Authorization: Bearer pr_live_xxxxxxxxxxxxx"

Delete SSH Key

curl -X DELETE https://api.pulserun.dev/v1/ssh-keys/{id} \
  -H "Authorization: Bearer pr_live_xxxxxxxxxxxxx"

Set Default Key

curl -X PUT https://api.pulserun.dev/v1/ssh-keys/{id}/default \
  -H "Authorization: Bearer pr_live_xxxxxxxxxxxxx"

The default key is automatically attached to all new instances.