> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tenbyte.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create SSH Key

> Create a new SSH public key. The public_key is immutable once created.



## OpenAPI

````yaml https://raw.githubusercontent.com/vidinfra/open-api-docs/refs/heads/main/cloud-api.json post /user-resource/ssh_keys
openapi: 3.0.0
info:
  title: Tenbyte Cloud API
  version: 1.0.0
  description: >-
    API for managing cloud resources like Virtual Machines, Storage, Networks,
    and more on tenbytecloud.com.
servers:
  - url: https://api.tenbytecloud.com/v1
    description: Production server
security:
  - apikey-header-apikey: []
tags:
  - name: User
    description: User profile and SSH key management
  - name: Token
    description: API token management
  - name: Locations
    description: Available data centre locations
  - name: VM
    description: Virtual machine management
  - name: Block Storage
    description: Block storage disk management
  - name: Object Storage
    description: S3-compatible object storage management
  - name: Private networks
    description: Private network management
  - name: Floating IP
    description: Floating IP address management
  - name: Firewall
    description: Firewall management
  - name: Network Load Balancer
    description: Network load balancer management
  - name: Parameters
    description: VM creation parameters and image lists
paths:
  /user-resource/ssh_keys:
    post:
      tags:
        - User
      summary: Create SSH Key
      description: Create a new SSH public key. The public_key is immutable once created.
      operationId: createSshKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - public_key
              properties:
                name:
                  type: string
                  description: A human-friendly name for the key, unique per user
                public_key:
                  type: string
                  description: Full OpenSSH public key line
      responses:
        '201':
          description: Created SSH key
          content:
            application/json:
              schema:
                type: object
              example:
                uuid: 3f8f4c5a-2c6d-4f0a-9a3a-8c9f6e3f1a2b
                name: laptop-mbp
                public_key: >-
                  ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMockPublicKeyData
                  user@host
                user_id: 268
                created_at: '2025-01-12T09:21:33Z'
        '409':
          description: Conflict - key with same name already exists
      security:
        - apikey-header-apikey: []
components:
  securitySchemes:
    apikey-header-apikey:
      type: apiKey
      in: header
      name: apikey

````