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

# Health check

> Check that the Earn API is up; returns a status and timestamp, and needs no API key.

This route is outside `/v1` and takes no `x-api-key`. Use it for liveness checks, not as a proxy for whether a given yield is enabled.


## OpenAPI

````yaml openapi.json GET /health
openapi: 3.0.0
info:
  title: 'Yield API: Earn'
  description: API Documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://api.yield.xyz
    description: Production
security: []
tags:
  - name: Discovery
    description: >-
      Browse and discover yield opportunities, networks, and providers, plus
      yield-level risk, reward rate, and TVL data
  - name: Portfolio
    description: User-specific balances and KYC status
  - name: Actions
    description: Generate transactions to enter, exit, and manage yields
externalDocs:
  description: For more information
  url: https://docs.yield.xyz
paths:
  /health:
    get:
      tags:
        - Health
      summary: Health check
      description: Get the health status of the yield API with current timestamp
      operationId: HealthController_health
      parameters: []
      responses:
        '200':
          description: Health check status with timestamp
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthStatusDto'
components:
  schemas:
    HealthStatusDto:
      type: object
      properties:
        status:
          example: OK
          description: The health status of the service
          allOf:
            - $ref: '#/components/schemas/HealthStatus'
        timestamp:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00.000Z'
          description: Timestamp when the health check was performed
      required:
        - status
        - timestamp
    HealthStatus:
      type: string
      enum:
        - OK
        - FAIL
      description: The health status of the service

````

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