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

# Study

> You have an NCT number (from search, a pasted clinicaltrials.gov/study URL or elsewhere) and need the full protocol, eligibility, locations, outcomes or posted results.

## Request contract

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

[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.study",
  "method": "POST",
  "path": "/apis/v1/clinicaltrials-gov/clinical-trials/study",
  "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": [
                "IdentificationModule",
                "StatusModule",
                "HasResults"
              ],
              "nct_id": "NCT05159778"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "fields": {
              "description": "Field pieces to return (names from /api/v2/studies/metadata, e.g. StatusModule, IdentificationModule, EligibilityModule, ResultsSection). Default: every section except results.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "include_results": {
              "description": "Include resultsSection (posted results; can be megabytes) when fields is not given.",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "nct_id": {
              "description": "NCT number, e.g. NCT05159778. Mutually exclusive with url. Pattern: ^[Nn][Cc][Tt][0-9]{8}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "url": {
              "description": "A clinicaltrials.gov/study/NCT... or classic ct2/show/NCT... URL. Mutually exclusive with nct_id. Pattern: ^https?://.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "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/study
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/study:
    post:
      tags:
        - ClinicalTrials.gov
      summary: Study
      description: >-
        You have an NCT number (from search, a pasted clinicaltrials.gov/study
        URL or elsewhere) and need the full protocol, eligibility, locations,
        outcomes or posted results.
      operationId: clinicaltrials-gov.clinical-trials.study
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  fields:
                    - IdentificationModule
                    - StatusModule
                    - HasResults
                  nct_id: NCT05159778
            schema:
              additionalProperties: true
              properties:
                fields:
                  description: >-
                    Field pieces to return (names from /api/v2/studies/metadata,
                    e.g. StatusModule, IdentificationModule, EligibilityModule,
                    ResultsSection). Default: every section except results.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                include_results:
                  description: >-
                    Include resultsSection (posted results; can be megabytes)
                    when fields is not given.
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                nct_id:
                  description: >-
                    NCT number, e.g. NCT05159778. Mutually exclusive with url.
                    Pattern: ^[Nn][Cc][Tt][0-9]{8}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                url:
                  description: >-
                    A clinicaltrials.gov/study/NCT... or classic ct2/show/NCT...
                    URL. Mutually exclusive with nct_id. Pattern: ^https?://.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      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/studies/NCT05159778?fields=IdentificationModule,StatusModule,HasResults,NCTId
                    brief_title: >-
                      Phase 2 Study of Imprime PGG and Pembrolizumab in Patients
                      With HR+/HER2- Metastatic Breast Cancer (mBCA)
                    completion_date:
                      date: '2023-04-12'
                      type: ACTUAL
                    has_results: false
                    nct_id: NCT05159778
                    observed_at_ms: 1790705145940
                    overall_status: COMPLETED
                    primary_completion_date:
                      date: '2023-03-22'
                      type: ACTUAL
                    record:
                      hasResults: false
                      protocolSection:
                        identificationModule:
                          briefTitle: >-
                            Phase 2 Study of Imprime PGG and Pembrolizumab in
                            Patients With HR+/HER2- Metastatic Breast Cancer
                            (mBCA)
                          nctId: NCT05159778
                          officialTitle: >-
                            A Multicenter, Open-label, Phase 2 Study of Imprime
                            PGG and Pembrolizumab in Patients With Metastatic
                            Breast Cancer (mBCA) Who Have Progressed Through
                            Prior Hormonal Therapy
                          orgStudyIdInfo:
                            id: PGG-BCA2121 / MK-3475-C99
                          organization:
                            class: INDUSTRY
                            fullName: HiberCell, Inc.
                        statusModule:
                          completionDateStruct:
                            date: '2023-04-12'
                            type: ACTUAL
                          expandedAccessInfo:
                            hasExpandedAccess: false
                          lastUpdatePostDateStruct:
                            date: '2023-06-22'
                            type: ACTUAL
                          lastUpdateSubmitDate: '2023-06-19'
                          overallStatus: COMPLETED
                          primaryCompletionDateStruct:
                            date: '2023-03-22'
                            type: ACTUAL
                          startDateStruct:
                            date: '2021-11-09'
                            type: ACTUAL
                          statusVerifiedDate: 2022-07
                          studyFirstPostDateStruct:
                            date: '2021-12-16'
                            type: ACTUAL
                          studyFirstSubmitDate: '2021-11-10'
                          studyFirstSubmitQcDate: '2021-12-02'
                    source_url: https://clinicaltrials.gov/study/NCT05159778
                    start_date:
                      date: '2021-11-09'
                      type: ACTUAL
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            One study record by NCT number (GET /api/v2/studies/{nctId}).
            Returns the raw registry record (protocolSection, derivedSection,
            documentSection, annotationSection; resultsSection only when
            include_results is true) plus the status dates lifted out. Use
            fields to request a subset of module or field pieces (e.g.
            ["StatusModule"]) and keep the response small.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `api_url` | string |  |

            | `brief_title` | string | null when fields excludes
            IdentificationModule. |

            | `completion_date` | object | A registry date struct; null when the
            record (or the requested subset) has no such date. |

            | `has_results` | boolean | Whether results are posted; null when
            fields excludes HasResults. |

            | `nct_id` | string |  |

            | `observed_at_ms` | number |  |

            | `overall_status` | string | null when fields excludes
            StatusModule. |

            | `primary_completion_date` | object | A registry date struct; null
            when the record (or the requested subset) has no such date. |

            | `record` | object | The registry record exactly as the v2 API
            returns it, restricted to the requested pieces: protocolSection,
            derivedSection, documentSection, annotationSection, resultsSection,
            hasResults. |

            | `source_url` | string |  |

            | `start_date` | object | A registry date struct; null when the
            record (or the requested subset) has no such date. |



            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.