---
updatedAt: 2026-08-07T16:25:02.000Z
agentTools:
  projectIndex: https://docs.elationhealth.com/llms.txt
---

# Get Card Images By Policy

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Insurance API",
    "description": "This API supports the management of insurances.",
    "version": "0.1.0"
  },
  "paths": {
    "/patients/{patient_id}/policies/{policy_id}/card-images": {
      "get": {
        "operationId": "get_card_images_by_policy_patients__patient_id__policies__policy_id__card_images_get",
        "parameters": [
          {
            "in": "path",
            "name": "patient_id",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Patient Id"
            }
          },
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Policy Id"
            }
          },
          {
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ImageSize",
              "default": "thumbnail"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "$ref": "#/components/schemas/CardImageUrlFetchResponse"
                  },
                  "title": "Response Get Card Images By Policy Patients  Patient Id  Policies  Policy Id  Card Images Get",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "RequireAuthentication": []
          }
        ],
        "summary": "Get Card Images By Policy",
        "tags": [
          "insurance-cards"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CardImageUrlFetchResponse": {
        "properties": {
          "image_rank": {
            "title": "Image Rank",
            "type": "integer"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url",
          "image_rank"
        ],
        "title": "CardImageUrlFetchResponse",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "ImageSize": {
        "enum": [
          "full",
          "thumbnail",
          "original"
        ],
        "title": "ImageSize",
        "type": "string"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      }
    },
    "securitySchemes": {
      "RequireAuthentication": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "insurance-cards",
      "description": "Upload and get insurance card images"
    }
  ]
}
```