> ## 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 contract

> Read a skill's input schema, output schema, reliability, versions, and fast path by slug.



## OpenAPI

````yaml GET /v1/skills/{slug}
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}:
    get:
      tags:
        - Skills
      summary: Get a Skill's contract
      description: >-
        The Skill with its `input_schema`, `output_json_schema`, `reliability`,
        versions, and fast path. A public Skill needs no credentials. A private
        Skill returns 404 to anyone who may not run it.
      operationId: getSkillContract
      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 and its contract.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillContract'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - ApiKeyAuth: []
        - {}
components:
  schemas:
    SkillContract:
      type: object
      description: >-
        The Skill's public details plus its typed contract. Other public fields
        (description, parameters, output_schema, category, tags, ratings, and so
        on) are also returned.
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        description:
          type: string
          nullable: true
        visibility:
          type: string
          enum:
            - public
            - private
        status:
          type: string
        api_endpoint:
          type: string
          example: /v1/skills/austin-dentists/run
        input_schema:
          type: object
          additionalProperties: true
          description: >-
            JSON Schema (draft 2020-12) for the inputs. Unknown keys are
            refused.
        output_json_schema:
          type: object
          additionalProperties: true
          description: JSON Schema for the run result, including each row.
        reliability:
          $ref: '#/components/schemas/SkillReliability'
        runs_endpoint:
          type: string
          example: /v1/skills/austin-dentists/runs
        recipe_version:
          type: integer
          nullable: true
          description: The live recipe version.
        pinned_recipe_version:
          type: integer
          nullable: true
          description: The pinned version, or null.
        versions_endpoint:
          type: string
          example: /v1/skills/austin-dentists/versions
        fast_path:
          type: string
          nullable: true
          description: >-
            For example `fast path: direct HTTP, ~0.3s`. Null when the skill
            always uses the browser.
        tiers:
          type: object
          additionalProperties:
            type: object
            additionalProperties: true
          description: 'Per route: attempts, ok, success_rate, typical_seconds, status.'
    SkillReliability:
      type: object
      properties:
        success_rate:
          type: number
          description: Lifetime success rate, percent.
        health_status:
          type: string
          description: '`healthy`, `degraded`, `failing`, or `unknown`.'
        total_runs:
          type: integer
        last_run_at:
          type: string
          format: date-time
          nullable: true
        success_rate_20:
          type: number
          nullable: true
          description: Percent of the last 20 finished runs that worked.
        heals_20:
          type: integer
          description: How many of the last 20 runs needed a repair.
        last_success_at:
          type: string
          format: date-time
          nullable: true
        last_failure_kind:
          type: string
          nullable: true
    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.