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

# List

> List all SSH User Certificates issued on this account




## OpenAPI

````yaml https://raw.githubusercontent.com/ngrok/ngrok-openapi/refs/heads/main/ngrok.yaml get /ssh_user_certificates
openapi: 3.0.0
info:
  title: ngrok OpenAPI
  version: 1.0.0
  description: >
    The ngrok REST API at https://api.ngrok.com provides programmatic access to
    provision and configure every ngrok resource: endpoints, domains, API keys,
    IP policies, tunnels, certificates, and more. Full documentation:
    https://ngrok.com/docs/api


    **Authentication:** Send an API key as a bearer token: "Authorization:
    Bearer {API key}". Create and revoke keys at
    https://dashboard.ngrok.com/api-keys or via the /api_keys resource. Requests
    without credentials receive an error with code ERR_NGROK_200.


    **Versioning and deprecation policy:** Every request must include the
    "ngrok-version: 2" header; a missing header returns HTTP 400 with error code
    ERR_NGROK_218. Version 2 is the current version; all earlier versions are
    deprecated. ngrok never makes breaking changes to a published API version.
    Breaking changes ship only as a new version that clients explicitly opt in
    to via this header. Additive changes (new resources, methods, and fields,
    and bug fixes that match documented behavior) may ship to a live version.
    Full policy: https://ngrok.com/docs/api#versioning-and-api-stability


    **Rate limits:** By default, the API allows 120 requests per rolling
    60-second window per account; some plans have higher limits. Exceeding the
    limit returns HTTP 429 with error code ERR_NGROK_226; wait for the window to
    pass before retrying. Details: https://ngrok.com/docs/errors/err_ngrok_226


    **Errors:** Every 4xx and 5xx response carries the Error schema: the
    status_code, a human-readable msg, and in most cases a globally unique
    machine-readable error_code and a details object. Every error code is
    documented at https://ngrok.com/docs/errors
servers:
  - url: https://api.ngrok.com
security:
  - authentication: []
paths:
  /ssh_user_certificates:
    get:
      tags:
        - SSHUserCertificates
      summary: List
      description: |
        List all SSH User Certificates issued on this account
      operationId: SshUserCertificatesList
      parameters:
        - $ref: '#/components/parameters/ngrokVersion'
        - name: before_id
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: |
            List all SSH User Certificates issued on this account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSHUserCertificateList'
        4XX:
          $ref: '#/components/responses/Error'
        5XX:
          $ref: '#/components/responses/Error'
components:
  parameters:
    ngrokVersion:
      name: ngrok-version
      in: header
      required: true
      schema:
        type: integer
        default: 2
  schemas:
    SSHUserCertificateList:
      type: object
      properties:
        ssh_user_certificates:
          description: |
            the list of all ssh user certificates on this account
          type: array
          items:
            $ref: '#/components/schemas/SSHUserCertificate'
        uri:
          description: |
            URI of the ssh user certificates list API resource
          type: string
        next_page_uri:
          description: |
            URI of the next page, or null if there is no next page
          type: string
    SSHUserCertificate:
      type: object
      properties:
        id:
          description: |
            unique identifier for this SSH User Certificate
          type: string
        uri:
          description: |
            URI of the SSH User Certificate API resource
          type: string
        created_at:
          description: >
            timestamp when the SSH User Certificate API resource was created,
            RFC 3339 format
          type: string
        description:
          description: >
            human-readable description of this SSH User Certificate. optional,
            max 255 bytes.
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this SSH User
            Certificate. optional, max 4096 bytes.
          type: string
        public_key:
          description: >
            a public key in OpenSSH Authorized Keys format that this certificate
            signs
          type: string
        key_type:
          description: |
            the key type of the `public_key`, one of `rsa`, `ecdsa` or `ed25519`
          type: string
        ssh_certificate_authority_id:
          description: >
            the ssh certificate authority that is used to sign this ssh user
            certificate
          type: string
        principals:
          description: >
            the list of principals included in the ssh user certificate. This is
            the list of usernames that the certificate holder may sign in as on
            a machine authorizing the signing certificate authority.
            Dangerously, if no principals are specified, this certificate may be
            used to log in as any user.
          type: array
          items:
            type: string
        critical_options:
          description: >
            A map of critical options included in the certificate. Only two
            critical options are currently defined by OpenSSH: `force-command`
            and `source-address`. See [the OpenSSH certificate protocol
            spec](https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.certkeys)
            for additional details.
          type: object
        extensions:
          description: >
            A map of extensions included in the certificate. Extensions are
            additional metadata that can be interpreted by the SSH server for
            any purpose. These can be used to permit or deny the ability to open
            a terminal, do port forwarding, x11 forwarding, and more. If
            unspecified, the certificate will include limited permissions with
            the following extension map: `{"permit-pty": "", "permit-user-rc":
            ""}` OpenSSH understands a number of predefined extensions. See [the
            OpenSSH certificate protocol
            spec](https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.certkeys)
            for additional details.
          type: object
        valid_after:
          description: >
            the time when the ssh host certificate becomes valid, in RFC 3339
            format.
          type: string
        valid_until:
          description: >
            the time after which the ssh host certificate becomes invalid, in
            RFC 3339 format. the OpenSSH certificates RFC calls this
            `valid_before`.
          type: string
        certificate:
          description: >
            the signed SSH certificate in OpenSSH Authorized Keys Format. this
            value should be placed in a `-cert.pub` certificate file on disk
            that should be referenced in your `sshd_config` configuration file
            with a `HostCertificate` directive
          type: string
    Error:
      type: object
      description: >
        The error body every api.ngrok.com 4xx and 5xx response returns. Every
        error condition has a globally unique, documented error code; see
        https://ngrok.com/docs/errors
      required:
        - status_code
        - msg
      properties:
        error_code:
          description: >
            Globally unique machine-readable error code, for example
            ERR_NGROK_226. Each code is documented at
            https://ngrok.com/docs/errors/reference. Omitted on transport-level
            errors such as a plain 404 for an unknown path.
          type: string
        status_code:
          description: |
            The HTTP status code of the response, duplicated in the body.
          type: integer
        msg:
          description: |
            Human-readable description of the error and how to resolve it.
          type: string
        details:
          description: >
            Additional error context. details.operation_id identifies the failed
            request when contacting support.
          type: object
          additionalProperties:
            type: string
  responses:
    Error:
      description: >
        An error. The body carries a machine-readable error_code and a
        human-readable msg; every code is documented at
        https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means
        the account exceeded the documented request-rate limit.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    authentication:
      type: http
      scheme: bearer

````

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