cURL
curl --request POST \ --url https://app.miget.com/api/v1/users/me/ssh_keys \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "public_key": "<string>" } '
{ "id": 123, "public_key": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Registers a new SSH public key for the current user. The key must be in OpenSSH format.
Bearer token for authentication. Format: 'Bearer {token}'
Add an SSH key
SSH public key in OpenSSH format (e.g., 'ssh-ed25519 AAAA... user@host')
Api_V1_Entities_SshKey model
SSH key ID
SSH public key content
Creation timestamp
Last update timestamp