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

# Retrieve a specific certificate by ID



## OpenAPI

````yaml https://api.draftt.io/swagger get /certificates/{id}
openapi: 3.1.0
info:
  title: Draftt API
  version: 0.2.1
servers:
  - url: https://api.draftt.io/v1
security:
  - BearerAuth: []
paths:
  /certificates/{id}:
    get:
      tags:
        - Certificate
      summary: Retrieve a specific certificate by ID
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Certificate'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    Certificate:
      type: object
      properties:
        id:
          type: number
        integrationId:
          type: number
        uniqueIdentifier:
          type: string
        type:
          type: string
        status:
          type: string
        issuer:
          type: string
        keyAlgorithm:
          type: string
        renewalEligibility:
          type: string
        domainName:
          type: string
        domains:
          type: array
          items:
            type: string
        inUseBy:
          type: array
          items:
            type: string
        created:
          type: string
          format: date-time
        issuedAt:
          type: string
          format: date-time
        validityStartDate:
          type: string
          format: date-time
        expirationDate:
          type: string
          format: date-time
        details:
          type: object
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        deletedAt:
          type: string
          format: date-time
        componentIds:
          type: array
          items:
            type: number
      required:
        - id
        - integrationId
        - uniqueIdentifier
        - type
        - status
        - issuer
        - domainName
      example:
        id: 1
        integrationId: 123
        uniqueIdentifier: cert-abc123
        type: ssl
        status: active
        issuer: Let's Encrypt Authority X3
        keyAlgorithm: RSA
        renewalEligibility: eligible
        domainName: example.com
        domains:
          - example.com
          - www.example.com
        inUseBy:
          - web-server-1
          - load-balancer-2
        created: '2024-01-15T10:30:00.000Z'
        issuedAt: '2024-01-15T10:30:00.000Z'
        validityStartDate: '2024-01-15T10:30:00.000Z'
        expirationDate: '2024-04-15T10:30:00.000Z'
        details: {}
        createdAt: '2024-01-15T10:30:00.000Z'
        updatedAt: '2024-01-15T10:30:00.000Z'
        componentIds:
          - 456
          - 789
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Too Many Requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````