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

> You already have NCT numbers and need to know whether their start and primary completion dates are actual or estimated, or their current status.

## Request contract

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

[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-dates",
  "method": "POST",
  "path": "/apis/v1/clinicaltrials-gov/clinical-trials/study-dates",
  "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": {
              "nct_ids": [
                "NCT05159778",
                "NCT03544723",
                "NCT05681728"
              ]
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "nct_ids": {
              "description": "NCT numbers to resolve. Duplicates are collapsed.",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "nct_ids"
          ],
          "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/study-dates
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-dates:
    post:
      tags:
        - ClinicalTrials.gov
      summary: Study dates
      description: >-
        You already have NCT numbers and need to know whether their start and
        primary completion dates are actual or estimated, or their current
        status.
      operationId: clinicaltrials-gov.clinical-trials.study-dates
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  nct_ids:
                    - NCT05159778
                    - NCT03544723
                    - NCT05681728
            schema:
              additionalProperties: true
              properties:
                nct_ids:
                  description: NCT numbers to resolve. Duplicates are collapsed.
                  items:
                    type: string
                  type: array
              required:
                - nct_ids
              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/studies?filter.ids=NCT05159778,NCT03544723,NCT05681728&fields=NCTId,OverallStatus,LastKnownStatus,WhyStopped,StatusVerifiedDate,StartDateStruct,PrimaryCompletionDateStruct,CompletionDateStruct,StudyFirstPostDateStruct,LastUpdatePostDateStruct&countTotal=true&pageSize=1000
                    found_count: 3
                    not_found_ids: []
                    observed_at_ms: 1790705149522
                    requested_count: 3
                    studies:
                      - completion_date:
                          date: '2023-04-12'
                          type: ACTUAL
                        last_known_status: null
                        last_update_post_date:
                          date: '2023-06-22'
                          type: ACTUAL
                        nct_id: NCT05159778
                        overall_status: COMPLETED
                        primary_completion_date:
                          date: '2023-03-22'
                          type: ACTUAL
                        source_url: https://clinicaltrials.gov/study/NCT05159778
                        start_date:
                          date: '2021-11-09'
                          type: ACTUAL
                        status_verified_date: 2022-07
                        study_first_post_date:
                          date: '2021-12-16'
                          type: ACTUAL
                        why_stopped: null
                      - completion_date:
                          date: '2022-12-31'
                          type: ESTIMATED
                        last_known_status: RECRUITING
                        last_update_post_date:
                          date: '2020-06-09'
                          type: ACTUAL
                        nct_id: NCT03544723
                        overall_status: UNKNOWN
                        primary_completion_date:
                          date: '2022-06-30'
                          type: ESTIMATED
                        source_url: https://clinicaltrials.gov/study/NCT03544723
                        start_date:
                          date: '2018-10-01'
                          type: ACTUAL
                        status_verified_date: 2020-06
                        study_first_post_date:
                          date: '2018-06-04'
                          type: ACTUAL
                        why_stopped: null
                      - completion_date:
                          date: '2024-06-01'
                          type: ESTIMATED
                        last_known_status: RECRUITING
                        last_update_post_date:
                          date: '2023-01-12'
                          type: ACTUAL
                        nct_id: NCT05681728
                        overall_status: UNKNOWN
                        primary_completion_date:
                          date: '2024-02-01'
                          type: ESTIMATED
                        source_url: https://clinicaltrials.gov/study/NCT05681728
                        start_date:
                          date: '2022-02-01'
                          type: ACTUAL
                        status_verified_date: 2022-12
                        study_first_post_date:
                          date: '2023-01-12'
                          type: ACTUAL
                        why_stopped: null
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Raw status and date metadata for up to 200 known NCT numbers in one
            request (GET /api/v2/studies?filter.ids=...). Each study returns
            overallStatus, lastKnownStatus, whyStopped, statusVerifiedDate and
            the start, primary-completion, completion, first-post and
            last-update-post date structs with their ACTUAL or ESTIMATED type
            exactly as the registry states them. NCT numbers the registry does
            not know are listed in not_found_ids; the call fails with not_found
            only when none of them is known.


            The response contains the tool result directly.


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


            | Documented field | Provider type | Description |

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

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

            | `last_known_status` | string | Set only when overall_status is
            UNKNOWN. |

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

            | `nct_id` | string |  |

            | `overall_status` | string |  |

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

            | `source_url` | string |  |

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

            | `status_verified_date` | string |  |

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

            | `why_stopped` | string |  |



            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.