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

# Get a skill's health

> Success rate and repairs over the last 20 runs, the last failure kind, and each route's health.



## OpenAPI

````yaml GET /v1/skills/{slug}/health
openapi: 3.0.3
info:
  title: Valendata REST API
  version: 1.0.0
  description: >-
    Trigger Skills, manage Workflows, retrieve Runs, and stream structured
    results from any language using JSON over HTTPS.
servers:
  - url: https://api.valendata.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Skills
    description: Execute and inspect published Skills.
  - name: Workflows
    description: Trigger multi-step Workflows and list them.
  - name: Runs
    description: Start async Skill runs and read Skill and Workflow run results.
  - name: Skill creation
    description: Create a Skill from a plain-language task.
  - name: Skill improvement
    description: >-
      Fix a Skill, add fields to it or re-learn its detail steps, poll the
      result, and read its change history.
  - name: Versions
    description: List, diff, restore, and pin a Skill's recipe versions.
  - name: Webhooks
    description: Signed delivery of finished async runs.
paths:
  /v1/skills/{slug}/health:
    get:
      tags:
        - Skills
      summary: Get a Skill's health
      description: >-
        Success rate and repairs over the last 20 runs, when it last worked, the
        last failure kind, the live recipe version, and each route's health.
        Public for public Skills; private Skills return 404 to anyone who may
        not run them.
      operationId: getSkillHealth
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
          description: URL-safe slug of the Skill.
          example: austin-dentists
      responses:
        '200':
          description: The Skill's health.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillHealth'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - ApiKeyAuth: []
        - {}
components:
  schemas:
    SkillHealth:
      type: object
      properties:
        skill_id:
          type: string
        slug:
          type: string
        success_rate_20:
          type: number
          nullable: true
        heals_20:
          type: integer
        last_success_at:
          type: string
          format: date-time
          nullable: true
        last_failure_kind:
          type: string
          nullable: true
        recipe_version:
          type: integer
          nullable: true
        fast_path:
          type: object
          nullable: true
          properties:
            tier:
              type: string
              enum:
                - fetch_direct
                - fetch_browser
            status:
              type: string
            median_seconds:
              type: number
              nullable: true
            description:
              type: string
              nullable: true
        tiers:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/TierHealth'
    TierHealth:
      type: object
      properties:
        attempts:
          type: integer
        ok:
          type: integer
        success_rate:
          type: number
          nullable: true
        median_seconds:
          type: number
          nullable: true
        status:
          type: string
          enum:
            - healthy
            - broken
    Error:
      type: object
      properties:
        detail:
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
          description: >-
            Error message. Usually a plain string; may be a structured object
            for some errors.
      example:
        detail: Invalid or expired API key
  responses:
    NotFound:
      description: Resource not found in your Workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: vd_sk_...
      description: >-
        API key with the `vd_sk_` prefix. Create keys from Settings, API Keys in
        the dashboard.

````

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