---
updatedAt: 2025-03-08T01:24:03.000Z
agentTools:
  projectIndex: https://docs.chartinsight.ai/llms.txt
---

# Get Medical Record Document Urls

Returns secure rendered pdf document urls for an AI indexed medical record. All returned urls expire in 30 minutes.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "ChartInsight API",
    "description": "The Judy AI API provides cutting edge AI content generation and analytics for Medical and Legal content.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.judyai.io",
      "description": "The production Judy AI API server URL."
    }
  ],
  "paths": {
    "/v1/medical_record/{medical_record_id}/document_urls": {
      "get": {
        "tags": [
          "Medical Records",
          "Medical Records"
        ],
        "summary": "Get Medical Record Document Urls",
        "description": "Returns secure rendered pdf document urls for an AI indexed medical record. All returned urls expire in 30 minutes.",
        "operationId": "get_medical_record_document_urls_v1_medical_record__medical_record_id__document_urls_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "medical_record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Medical Record Id"
            }
          },
          {
            "name": "inline",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Inline"
            }
          },
          {
            "name": "X-ORGANIZATION-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "default": "{{organizationId}}",
              "title": "X-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MedicalRecordDocumentUrls"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "MedicalRecordDocumentUrls": {
        "properties": {
          "pdf_original_document_url": {
            "type": "string",
            "title": "Pdf Original Document Url",
            "description": "The secure original pdf document url medical record. Expires in 30 minutes.",
            "examples": [
              "https://example.com/medical-records/b92c8157-c18a-40ef-b6e7-c1fc6a3b5d46.pdf"
            ]
          },
          "pdf_ai_generated_document_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pdf Ai Generated Document Url",
            "description": "The secure AI enhanced and rendered pdf document url for the medical record. Expires in 30 minutes.",
            "examples": [
              "https://example.com/medical-records/b92c8157-c18a-40ef-b6e7-c1fc6a3b5d46.pdf"
            ]
          },
          "pdf_ai_generated_condensed_document_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pdf Ai Generated Condensed Document Url",
            "description": "(FUTURE) The secure AI enhanced, condensed, and rendered pdf document url for the medical record. Expires in 30 minutes.",
            "examples": [
              "https://example.com/medical-records/b92c8157-c18a-40ef-b6e7-c1fc6a3b5d46_condensed.pdf"
            ]
          },
          "docx_document_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Docx Document Url",
            "description": "The secure url for the generated content in DOCX format. Expires in 30 minutes.",
            "examples": [
              "https://example.com/medical-records/b92c8157-c18a-40ef-b6e7-c1fc6a3b5d46.docx"
            ]
          },
          "page_texts_document_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Texts Document Url",
            "description": "The secure url for the page text content of the medical record, in JSON format. Expires in 30 minutes.",
            "examples": [
              "https://example.com/medical-records/b92c8157-c18a-40ef-b6e7-c1fc6a3b5d46.json"
            ]
          }
        },
        "type": "object",
        "required": [
          "pdf_original_document_url"
        ],
        "title": "MedicalRecordDocumentUrls"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Medical Records",
      "description": "Add medical records for AI processing and retrieve AI generated assets."
    }
  ],
  "x-readme": {}
}
```