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

# Create Ssh Key

> Add one of your SSH public keys (OpenSSH format); no private keys are made



## OpenAPI

````yaml /api/openapi.json post /ssh-keys
openapi: 3.1.0
info:
  description: Programmatic access to Infinite Compute GPU servers, volumes and usage.
  title: Infinite Compute API
  version: v1
servers:
  - url: https://{console}/api/public/v1
    description: Your console address is in your welcome email
    variables:
      console:
        default: your-console-address
security: []
paths:
  /ssh-keys:
    post:
      tags:
        - Servers
      summary: Create Ssh Key
      description: >-
        Add one of your SSH public keys (OpenSSH format); no private keys are
        made
      operationId: create_ssh_key_ssh_keys_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SshKeyCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SshKey'
          description: Successful Response
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Error
      security:
        - ApiKey: []
components:
  schemas:
    SshKeyCreate:
      additionalProperties: false
      properties:
        name:
          maxLength: 64
          minLength: 1
          pattern: ^[A-Za-z0-9_. -]+$
          title: Name
          type: string
        public_key:
          description: OpenSSH format
          maxLength: 16384
          minLength: 16
          title: Public Key
          type: string
      required:
        - name
        - public_key
      title: SshKeyCreate
      type: object
    SshKey:
      properties:
        fingerprint:
          title: Fingerprint
          type: string
        name:
          description: Use this as ssh_key when creating a server
          title: Name
          type: string
        public_key:
          title: Public Key
          type: string
        type:
          description: ssh
          title: Type
          type: string
      required:
        - name
        - type
        - fingerprint
        - public_key
      title: SshKey
      type: object
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      title: ErrorResponse
      type: object
    ErrorDetail:
      properties:
        code:
          description: Machine-readable error code, e.g. not_found
          title: Code
          type: string
        message:
          description: What went wrong, for people
          title: Message
          type: string
        request_id:
          description: Quote this when contacting support
          title: Request Id
          type: string
      required:
        - code
        - message
        - request_id
      title: ErrorDetail
      type: object
  securitySchemes:
    ApiKey:
      description: 'An API key from the console: Authorization: Bearer ic_ck_...'
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.