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

# Get Server Credentials

> Returns the server password status and the decoded root password once installation is complete. While the server is still installing, `root_password` will be null and `password_status` will be `generating`.



## OpenAPI

````yaml GET /servers/{server}/credentials
openapi: 3.0.3
info:
  title: CloudBlast API
  description: >-
    The CloudBlast V2 API provides a modern RESTful interface for managing your
    cloud infrastructure programmatically. All responses follow a consistent `{
    "data": ... }` or `{ "error": ... }` format.
  version: 2.0.0
servers:
  - url: https://console.cloudblast.io/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /servers/{server}/credentials:
    get:
      tags:
        - Servers
      summary: Get server credentials
      description: >-
        Returns the server password status and the decoded root password once
        installation is complete. While the server is still installing,
        `root_password` will be null and `password_status` will be `generating`.
      operationId: getServerCredentials
      parameters:
        - $ref: '#/components/parameters/ServerIdentifier'
      responses:
        '200':
          description: Server credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ServerCredentials'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ServerIdentifier:
      name: server
      in: path
      required: true
      schema:
        type: string
      description: >-
        Server identifier — any of: numeric `id`, `uuid_short` (8 chars), or
        full `uuid` (36 chars).
      example: a1b2c3d4
  schemas:
    ServerCredentials:
      type: object
      properties:
        username:
          type: string
          description: SSH login user the password belongs to.
          example: root
        root_password:
          type: string
          nullable: true
          description: Decoded root password. Null while server is installing.
          example: k3Fm9xPq
        password_status:
          type: string
          enum:
            - ready
            - generating
            - failed
          description: >-
            `ready` = password is available, `generating` = server is still
            installing
          example: ready
        ipv4:
          type: string
          nullable: true
          description: Primary IPv4 address for SSH, or null if none assigned.
          example: 203.0.113.50
        ipv6:
          type: string
          nullable: true
          description: Primary IPv6 address, or null if none assigned.
          example: '2a0e:97c0:180:2::'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code
            message:
              type: string
              description: Human-readable error message
          required:
            - code
            - message
  responses:
    Unauthenticated:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHENTICATED
              message: >-
                Missing or invalid Authorization header. Use: Authorization:
                Bearer <token>
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Server not found.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token from your CloudBlast account settings. Pass as `Authorization:
        Bearer <token>`.

````