cURL
curl --request POST \ --url https://api.chicklet.io/v1/ssh-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "public_key": "<string>" } '
{ "id": 123, "name": "<string>", "public_key": "<string>", "user_id": 123, "created_at": "2023-11-07T05:31:56Z" }
Add a new SSH public key to the authenticated user’s account
Bearer token authentication (e.g. "Bearer your-api-key")
A label for this SSH key
The SSH public key content
Created