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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Field values

> You need the valid values of a registry field or the distribution of a field across all studies.

## Request contract

* **Method and path:** POST /apis/v1/clinicaltrials-gov/clinical-trials/field-values
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/field-values`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/clinicaltrials-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "clinicaltrials-gov.clinical-trials.field-values",
  "method": "POST",
  "path": "/apis/v1/clinicaltrials-gov/clinical-trials/field-values",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "fields": [
                "OverallStatus",
                "Phase",
                "StudyType"
              ]
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "fields": {
              "description": "Field pieces, e.g. [\"OverallStatus\", \"Phase\"]. Unknown names fail with invalid_input.",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "fields"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/clinicaltrials-gov.json POST /apis/v1/clinicaltrials-gov/clinical-trials/field-values
openapi: 3.1.0
info:
  description: ''
  title: ClinicalTrials.gov
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    clinicaltrials-gov:
      description: ''
      title: ClinicalTrials.gov
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: d95f4589f3172bd1b5f2ea5f7e329543828caa3eba5f2e0f045b9685d77b5d92
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/clinicaltrials-gov/clinical-trials/field-values
    - /apis/v1/clinicaltrials-gov/clinical-trials/search
    - /apis/v1/clinicaltrials-gov/clinical-trials/study
    - /apis/v1/clinicaltrials-gov/clinical-trials/study-dates
    - /apis/v1/clinicaltrials-gov/clinical-trials/suggest
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:d5f82fa126515cf238fd75aa4331969a1348b2db12c862624705206ace506f08
    facts_hash: d95f4589f3172bd1b5f2ea5f7e329543828caa3eba5f2e0f045b9685d77b5d92
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: clinicaltrials-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/clinicaltrials-gov/clinical-trials/field-values:
    post:
      tags:
        - ClinicalTrials.gov
      summary: Field values
      description: >-
        You need the valid values of a registry field or the distribution of a
        field across all studies.
      operationId: clinicaltrials-gov.clinical-trials.field-values
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  fields:
                    - OverallStatus
                    - Phase
                    - StudyType
            schema:
              additionalProperties: true
              properties:
                fields:
                  description: >-
                    Field pieces, e.g. ["OverallStatus", "Phase"]. Unknown names
                    fail with invalid_input.
                  items:
                    type: string
                  type: array
              required:
                - fields
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-29.
                  summary: Official provider example
                  value:
                    api_url: >-
                      https://clinicaltrials.gov/api/v2/stats/field/values?fields=OverallStatus,Phase,StudyType
                    fields:
                      - field: protocolSection.statusModule.overallStatus
                        missing_studies_count: 0
                        piece: OverallStatus
                        stats: {}
                        top_values:
                          - studies_count: 330531
                            value: COMPLETED
                          - studies_count: 96809
                            value: UNKNOWN
                          - studies_count: 65114
                            value: RECRUITING
                          - studies_count: 34392
                            value: TERMINATED
                          - studies_count: 30030
                            value: NOT_YET_RECRUITING
                          - studies_count: 22152
                            value: ACTIVE_NOT_RECRUITING
                          - studies_count: 16820
                            value: WITHDRAWN
                          - studies_count: 5270
                            value: ENROLLING_BY_INVITATION
                          - studies_count: 1781
                            value: SUSPENDED
                          - studies_count: 983
                            value: WITHHELD
                          - studies_count: 536
                            value: NO_LONGER_AVAILABLE
                          - studies_count: 253
                            value: AVAILABLE
                          - studies_count: 243
                            value: APPROVED_FOR_MARKETING
                          - studies_count: 36
                            value: TEMPORARILY_NOT_AVAILABLE
                        type: ENUM
                        unique_values_count: 14
                      - field: protocolSection.designModule.phases
                        missing_studies_count: 143397
                        piece: Phase
                        stats: {}
                        top_values:
                          - studies_count: 237711
                            value: NA
                          - studies_count: 90396
                            value: PHASE2
                          - studies_count: 65846
                            value: PHASE1
                          - studies_count: 49946
                            value: PHASE3
                          - studies_count: 35871
                            value: PHASE4
                          - studies_count: 6493
                            value: EARLY_PHASE1
                        type: ENUM
                        unique_values_count: 6
                      - field: protocolSection.designModule.studyType
                        missing_studies_count: 983
                        piece: StudyType
                        stats: {}
                        top_values:
                          - studies_count: 461679
                            value: INTERVENTIONAL
                          - studies_count: 141220
                            value: OBSERVATIONAL
                          - studies_count: 1068
                            value: EXPANDED_ACCESS
                        type: ENUM
                        unique_values_count: 3
                    observed_at_ms: 1790705156544
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Registry-wide value statistics for up to 20 field pieces (GET
            /api/v2/stats/field/values): for enums and strings the distinct
            values with study counts, for dates and integers min/max, for
            booleans true/false counts, plus how many studies lack the field.
            Use it to learn the exact enum values (OverallStatus, Phase,
            StudyType, DateType, ...) accepted by search filters and Essie
            expressions.


            The response contains the tool result directly.


            The provider identifies `fields` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `field` | string | Dotted path of the field in the study record. |

            | `missing_studies_count` | number |  |

            | `piece` | string |  |

            | `stats` | object | Type-specific statistics as returned:
            min/max/formats for DATE, min/max/avg for INTEGER and NUMBER,
            longest for STRING, trueCount/falseCount for BOOLEAN. Empty for
            ENUM. |

            | `top_values` | object[] | ENUM and STRING fields only; the
            registry returns up to 250 values, most frequent first. |

            | `type` | string | ENUM, STRING, DATE, INTEGER, NUMBER or BOOLEAN.
            |

            | `unique_values_count` | number | ENUM and STRING fields only. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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