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

# Upload SSH key

> Upload a new SSH public key. You can have up to 5 keys per account.



## OpenAPI

````yaml /api-reference/openapi.json post /ssh-keys
openapi: 3.1.0
info:
  title: Nova Cloud API
  description: >-
    REST API for the Nova Cloud GPU rental platform. Manage virtual machines,
    SSH keys, billing, and more.
  version: 1.0.0
  contact:
    name: Nova Cloud Support
    email: support@nova-cloud.ai
    url: https://nova-cloud.ai
servers:
  - url: https://api.nova-cloud.ai
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Authentication
    description: User registration, login, and token management
  - name: API Keys
    description: Create and manage API keys for programmatic access
  - name: SSH Keys
    description: Upload and manage SSH public keys for VM access
  - name: Virtual Machines
    description: Create, manage, and monitor GPU-powered VMs
  - name: Search & Pricing
    description: Browse available GPU offers and current pricing
  - name: Billing
    description: Balance, usage, transactions, and payment management
  - name: Reservations
    description: Reserved instance pricing and management
paths:
  /ssh-keys:
    post:
      tags:
        - SSH Keys
      summary: Upload SSH key
      description: Upload a new SSH public key. You can have up to 5 keys per account.
      operationId: upload_ssh_key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSHKeyCreateRequest'
      responses:
        '200':
          description: SSH key uploaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSHKeyMetadata'
        '400':
          description: Invalid key format or duplicate key
        '409':
          description: Maximum keys reached (5)
components:
  schemas:
    SSHKeyCreateRequest:
      type: object
      required:
        - ssh_public_key
      properties:
        ssh_public_key:
          type: string
          maxLength: 16000
          description: SSH public key (e.g., ssh-ed25519 AAAA... or ssh-rsa AAAA...)
        label:
          type: string
          maxLength: 100
          default: Default SSH Key
          description: Label for the key (e.g., 'Work Laptop')
    SSHKeyMetadata:
      type: object
      properties:
        id:
          type: string
          format: uuid
        label:
          type: string
        key_type:
          type: string
          example: ssh-ed25519
        fingerprint:
          type: string
          example: SHA256:abc123...
        created_at:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: Use a JWT access token or API key (prefixed with nv_)

````