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

# List certificates for app



## OpenAPI

````yaml /api/machines/openapi.json get /v1/apps/{app_name}/certificates
openapi: 3.1.0
info:
  title: Machines API
  description: >-
    This site hosts documentation generated from the Fly.io Machines API OpenAPI
    specification. Visit our complete [Machines API
    docs](https://fly.io/docs/machines/api/) for how to get started, more
    information about each endpoint, parameter descriptions, and examples.
  contact: {}
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://api.machines.dev
security:
  - FlyBearerAuth: []
tags:
  - name: Apps
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/apps-resource/) for details about
      using the Apps resource.
  - name: Machines
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/machines-resource/) for details
      about using the Machines resource.
  - name: TLS Certificates
    description: >
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/certificates-resource/) for details
      about using the TLS Certificates resource.
  - name: Volumes
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/volumes-resource/) for details
      about using the Volumes resource.
  - name: Postgres Clusters
    description: >-
      Create and manage Postgres clusters, including databases, users,
      extensions, backups, and app attachments.
externalDocs:
  url: https://fly.io/docs/machines/working-with-machines/
paths:
  /v1/apps/{app_name}/certificates:
    get:
      tags:
        - TLS Certificates
      summary: List certificates for app
      operationId: App_Certificates_list
      parameters:
        - name: app_name
          in: path
          description: Fly App Name
          required: true
          schema:
            type: string
        - name: filter
          in: query
          description: Hostname filter (substring match)
          schema:
            type: string
        - name: cursor
          in: query
          description: Pagination cursor from previous response
          schema:
            type: string
        - name: limit
          in: query
          description: Number of results per page (default 25, max 500)
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listCertificatesResponse'
components:
  schemas:
    listCertificatesResponse:
      type: object
      properties:
        certificates:
          type: array
          description: The certificates on this page, ordered by when they were added.
          items:
            $ref: '#/components/schemas/CertificateSummary'
        next_cursor:
          type: string
          description: >-
            Pagination cursor for the next page. Absent when no more
            certificates remain.
        total_count:
          type: integer
          description: >-
            Number of certificates matching `filter` (and after `cursor`, if
            given), across all pages.
    CertificateSummary:
      type: object
      properties:
        acme_alpn_configured:
          type: boolean
          description: >-
            Whether the hostname points at the app, allowing TLS-ALPN-01
            validation.
        acme_dns_configured:
          type: boolean
          description: >-
            Whether the `_acme-challenge` CNAME record is set up, allowing
            DNS-01 validation.
        acme_http_configured:
          type: boolean
          description: Whether the hostname points at the app, allowing HTTP-01 validation.
        acme_requested:
          type: boolean
          description: >-
            Whether Fly.io-issued (ACME) certificates were requested for the
            hostname.
        configured:
          type: boolean
          description: >-
            Whether ownership of the hostname has been verified by any of the
            methods above.
        created_at:
          type: string
          description: When the hostname was added to the app.
        dns_provider:
          type: string
          description: DNS provider detected for the hostname, if known.
        has_custom_certificate:
          type: boolean
          description: Whether a custom certificate was uploaded for the hostname.
        has_fly_certificate:
          type: boolean
          description: Whether Fly.io has issued certificates for the hostname.
        hostname:
          type: string
          description: >-
            The hostname the certificate is for. May start with `*.` for a
            wildcard certificate.
        ownership_txt_configured:
          type: boolean
          description: Whether the `_fly-ownership` TXT record is set up.
        status:
          type: string
          description: >-
            Human-readable status: `Ready`, `Awaiting certificates`, `Awaiting
            configuration`, or a

            hint about what is misconfigured.
        updated_at:
          type: string
          description: When the hostname's certificate configuration last changed.
  securitySchemes:
    FlyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Fly API token with access to the requested organization or resource.
        Send it as `Authorization: Bearer <Fly API token>`.

````