Add an SSH key to a user
One step with GitLab. We can help you get access.
Get something done
Add an SSH key to a user
with GitLab
Works with AI assistants
Use GitLab: its GitLab REST Keys API lets you add an SSH key to a user in a single step (POST /api/v4/users/{user_id}/keys). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I add a new SSH key to a user's account?
- Can I give an SSH key an expiration date when adding it?
Say it to your AI assistant
- Add SSH key {title} with key {key} to user {user_id}.
- Add SSH key {title} to {user_id} that expires on {expires_at}.
For your developer
POST /api/v4/users/{user_id}/keys in GitLab REST Keys API. Full spec on APIs.io.