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

# Get a clinical trial by NCT id

> Fetch a single clinical trial by its NCT id, including any linked Pav programs/companies. Returns `404 not_found` if the NCT id is unknown.



## OpenAPI

````yaml /openapi.json get /v1/trials/{nct_id}
openapi: 3.1.0
info:
  title: Pav Enterprise API
  description: >-
    Read-only `/v1` API over Pav's biopharma dataset: drug programs, companies,
    clinical trials, deals, patent families, FDA records, a change feed, and
    dataset stats.


    Authenticate every request with a Pav API key as a bearer token:
    `Authorization: Bearer <api_key>`. Mint a key in [Pav developer
    settings](https://app.pav.bio/settings/developer).


    All endpoints are `GET` and return JSON. List endpoints return a `{ data,
    pagination }` envelope. Pass `q=` to run relevance-ranked search that
    matches meaning as well as exact words; omit it for a filtered, paginated
    listing. Errors return `{ error: { code, message, request_id } }`.
  version: 1.2.0
servers:
  - url: https://api.pav.bio
    description: Production
  - url: /
    description: This server
security: []
tags:
  - name: programs
    description: >-
      Search and filter drug pipeline assets by company, indication, target,
      modality, phase, or free text. Includes get-by-id, similar-programs, and
      facet autocomplete.
  - name: companies
    description: >-
      Tracked biopharma companies and their pipeline ownership. List a company's
      programs and change history.
  - name: trials
    description: >-
      Search clinical trials — ClinicalTrials.gov records plus Pav
      program/company links. Relevance-ranked search when `q=` is set; filtered
      browse otherwise.
  - name: deals
    description: >-
      Biopharma deals (M&A, licensing, collaborations, options, joint ventures)
      from SEC filings and press releases, with lifecycle state, headline
      economics, and source documents.
  - name: patents
    description: >-
      US patent families from USPTO with owners linked to Pav companies, member
      applications, ownership history, and statutory term.
  - name: fda
    description: >-
      FDA records with applicants linked to Pav companies: Orange Book products,
      patents and exclusivities, Purple Book biologics, orphan designations,
      warning letters, and recalls.
  - name: changes
    description: >-
      Detected pipeline movement events per company — added and removed assets
      and phase changes — with before/after phase and detection time.
  - name: stats
    description: High-level dataset counts and facet coverage.
paths:
  /v1/trials/{nct_id}:
    get:
      tags:
        - trials
      summary: Get a clinical trial by NCT id
      description: >-
        Fetch a single clinical trial by its NCT id, including any linked Pav
        programs/companies. Returns `404 not_found` if the NCT id is unknown.
      operationId: get_trial
      parameters:
        - name: nct_id
          in: path
          required: true
          schema:
            type: string
            description: ClinicalTrials.gov NCT identifier.
            examples:
              - NCT04368728
            title: Nct Id
          description: ClinicalTrials.gov NCT identifier.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trial'
        '401':
          description: Missing or invalid API key (`unauthorized`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Unknown id or route (`not_found`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '422':
          description: Invalid parameter (`validation_error`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limit exceeded (`rate_limited`); honor `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
        - EnterpriseApiKey: []
components:
  schemas:
    Trial:
      properties:
        nct_id:
          type: string
          title: Nct Id
          description: ClinicalTrials.gov registry identifier (NCT number).
          examples:
            - NCT04368728
        nct_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Nct Url
          description: ClinicalTrials.gov URL for the trial record.
          examples:
            - https://clinicaltrials.gov/study/NCT04368728
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
          description: Official or brief title of the trial.
          examples:
            - A Study of a Vaccine to Prevent COVID-19
        phase:
          anyOf:
            - type: string
            - type: 'null'
          title: Phase
          description: Trial phase as reported by ClinicalTrials.gov.
          examples:
            - Phase 3
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Overall recruitment/operational status of the trial.
          examples:
            - Completed
        sponsor:
          anyOf:
            - type: string
            - type: 'null'
          title: Sponsor
          description: Lead sponsor of the trial.
          examples:
            - Pfizer
        study_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Study Type
          description: Study type (e.g. Interventional, Observational).
          examples:
            - Interventional
        conditions:
          items:
            type: string
          type: array
          title: Conditions
          description: Conditions/indications studied in the trial.
          examples:
            - - COVID-19
              - SARS-CoV-2 Infection
        enrollment_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Enrollment Count
          description: Planned or actual participant enrollment.
          examples:
            - 43998
        program_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Program Count
          description: Number of Pav programs linked to this trial.
          examples:
            - 2
        company_short_names:
          items:
            type: string
          type: array
          title: Company Short Names
          description: >-
            Slugs of companies whose Pav programs are linked to this trial. For
            sponsor-based links as well, see `company_ids` and `sponsors`.
          examples:
            - - pfizer
              - biontech
        lead_sponsor:
          anyOf:
            - $ref: '#/components/schemas/SponsorRef'
            - type: 'null'
          description: >-
            Lead sponsor as recorded on ClinicalTrials.gov. Null when the
            registry record names no sponsor organization (e.g. some pre-2016
            records).
        collaborators:
          items:
            $ref: '#/components/schemas/SponsorRef'
          type: array
          title: Collaborators
          description: Collaborator sponsors as recorded on ClinicalTrials.gov.
        sponsors:
          items:
            $ref: '#/components/schemas/SponsorRef'
          type: array
          title: Sponsors
          description: All sponsors (lead, collaborators, owners), lead sponsor first.
        company_ids:
          items:
            type: integer
          type: array
          title: Company Ids
          description: >-
            Pav company ids linked to this trial as a sponsor or through their
            programs (deduplicated, sorted). Use them to join trials to
            companies and programs.
          examples:
            - - 127
              - 506
        programs:
          items:
            $ref: '#/components/schemas/TrialProgram'
          type: array
          title: Programs
          description: Pav programs linked to this trial.
        start_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Start Date
          description: Trial start date as reported by ClinicalTrials.gov.
          examples:
            - '2020-04-29'
        last_update_post_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Update Post Date
          description: Date the trial record was last updated on ClinicalTrials.gov.
          examples:
            - '2023-08-15'
        primary_completion_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Completion Date
          description: >-
            Primary completion date as reported by ClinicalTrials.gov — the date
            the last participant was examined or received an intervention for
            primary-outcome data collection. A key resolution date.
          examples:
            - '2012-06-01'
        completion_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Completion Date
          description: Study completion date as reported by ClinicalTrials.gov.
          examples:
            - '2013-03-01'
        results_first_post_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Results First Post Date
          description: >-
            Date results were first posted on ClinicalTrials.gov. Null until the
            trial has posted results.
          examples:
            - '2016-08-04'
        why_stopped:
          anyOf:
            - type: string
            - type: 'null'
          title: Why Stopped
          description: >-
            Free-text reason the trial stopped early, as reported by
            ClinicalTrials.gov. Null for trials that did not stop early.
          examples:
            - Slow enrollment
        primary_outcomes:
          items:
            $ref: '#/components/schemas/PrimaryOutcome'
          type: array
          title: Primary Outcomes
          description: >-
            The trial's primary outcome measures (primary endpoints) as reported
            by ClinicalTrials.gov.
      type: object
      required:
        - nct_id
      title: Trial
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
          description: Error detail. Present only on 4xx/5xx responses.
      required:
        - error
      title: ErrorEnvelope
      type: object
    SponsorRef:
      properties:
        name:
          type: string
          title: Name
          description: Sponsor organization name exactly as recorded on ClinicalTrials.gov.
          examples:
            - BioNTech SE
        role:
          type: string
          title: Role
          description: >-
            Sponsor role on the trial: `lead_sponsor`, `collaborator`, or
            `owner`.
          examples:
            - lead_sponsor
        company_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Company Id
          description: >-
            Pav company identifier this sponsor is linked to. Null when the
            sponsor is not a tracked company.
          examples:
            - 127
        short_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Short Name
          description: Slug of the Pav company this organization is linked to, when linked.
          examples:
            - biontech
      type: object
      required:
        - name
        - role
      title: SponsorRef
    TrialProgram:
      properties:
        program_id:
          type: integer
          title: Program Id
          description: Durable Pav program identifier linked to this trial.
          examples:
            - 1027
        short_name:
          type: string
          title: Short Name
          description: Slug of the company that owns the linked program.
          examples:
            - biontech
        company_id:
          type: integer
          title: Company Id
          description: Pav company identifier that owns the linked program.
          examples:
            - 127
        drug:
          anyOf:
            - type: string
            - type: 'null'
          title: Drug
          description: Drug/asset name of the linked program.
          examples:
            - BNT162b2
        indication:
          anyOf:
            - type: string
            - type: 'null'
          title: Indication
          description: Indication the linked program targets.
          examples:
            - COVID-19
      type: object
      required:
        - program_id
        - short_name
        - company_id
      title: TrialProgram
    PrimaryOutcome:
      properties:
        measure:
          anyOf:
            - type: string
            - type: 'null'
          title: Measure
          description: The trial's primary endpoint measure (what is being assessed).
          examples:
            - Progression-Free Survival (PFS)
        time_frame:
          anyOf:
            - type: string
            - type: 'null'
          title: Time Frame
          description: Time frame over which the primary outcome is measured.
          examples:
            - Year 3
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Free-text description/definition of the primary outcome.
          examples:
            - >-
              Patients are considered a failure if they die, progress, or
              relapse.
      type: object
      title: PrimaryOutcome
    ErrorBody:
      properties:
        code:
          description: >-
            Stable, machine-readable error code (e.g. `unauthorized`,
            `not_found`, `validation_error`, `error`).
          examples:
            - not_found
          title: Code
          type: string
        message:
          description: Human-readable explanation of the error.
          examples:
            - program 999999 not found
          title: Message
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Correlation id echoed in the `X-Request-ID` response header. Quote
            it when contacting Pav support about a failed request.
          examples:
            - 3f2b9c1d8a7e4f6b9c0d1e2f3a4b5c6d
          title: Request Id
      required:
        - code
        - message
      title: ErrorBody
      type: object
  securitySchemes:
    EnterpriseApiKey:
      type: http
      description: >-
        Use a personal or organization Pav API key from Pav developer settings.
        Send it as Authorization: Bearer <api_key>.
      scheme: bearer
      bearerFormat: Pav API key

````