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

# OCR Image

> Perform OCR on an image using AWS Textract

# OCR Image

Perform OCR on an image using AWS Textract.

## API Request

<ParamField body="image" type="string" required>
  Base64 encoded image
</ParamField>

## Response

<ResponseField name="text" type="string">
  Extracted text from the image
</ResponseField>

<RequestExample>
  ```bash Request theme={null}
  curl --request POST \
    --url 'https://prior-auth-api.claritycare.ai/v1/process/ocr' \
    --header 'Authorization: Bearer {cognito_login_token}' \
    --header 'Content-Type: application/json' \
    --data '{"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."}'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "text": "Extracted text from the image"
  }
  ```
</ResponseExample>
