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

# Verify Prescription Signature

> Verifies the signature of a prescription



## OpenAPI

````yaml /us/openapi.json get /external/v1/prescriptions/{prescriptionId}/verify-signature
openapi: 3.1.0
info:
  title: OpenAPI ClinicOS
  description: ClinicOS OpenAPI Documentation
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://us.api.aiosmedical.com
security: []
paths:
  /external/v1/prescriptions/{prescriptionId}/verify-signature:
    get:
      tags:
        - Prescriptions
      summary: Verify Prescription Signature
      description: Verifies the signature of a prescription
      parameters:
        - name: prescriptionId
          in: path
          description: Prescription ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Prescription signature verified
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyPrescriptionPayload'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    example: 400
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Validation failed (uuid is expected)
                      error:
                        type: string
                        example: Bad Request
                      statusCode:
                        type: number
                        example: 400
                  timestamp:
                    type: string
                    example: '2025-06-04T12:00:00.000Z'
                  path:
                    type: string
                    example: >-
                      /external/v1/prescriptions/{prescriptionId}/verify-signature
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    example: 500
                  error:
                    type: string
                    example: Internal Server Error
                  timestamp:
                    type: string
                    example: '2025-06-04T12:00:00.000Z'
                  path:
                    type: string
                    example: >-
                      /external/v1/prescriptions/{prescriptionId}/verify-signature
      security: []
components:
  schemas:
    VerifyPrescriptionPayload:
      type: object
      properties:
        valid:
          type: boolean
          example: true
        verified_at:
          type: string
          example: '2025-06-04T12:00:00.000Z'
        verified_by:
          type: string
          example: John Doe
        provider_id:
          type: number
          example: 1
        signature:
          type: string
          example: >-
            foDYKg2Zq4R8aA3L3BOJxtoAGJ0x0BPY/mip4VTK1NSjf1RSyFuHe4Hg0YEYRn7uesPDt/D/NfjsJ6fmNMY73qASIvMsxfoN+9IeH4BefpR+F0GEXQ010oxzkNOT6MlApZ8+F7CGDA6WAqbCOJL5VZCRvxI3IosyOMj78Z547UbHfo26+P8GFa7d7NezgtZoxLLnZLfl2VBSJCS8bT5T1rc5MYziYukClYAUsATwSy2nBrZ3m41E5Afd6UrtjWaHo8Vf1YAjYriNRDPmGLOwQ7BGchiq6dcQ9AQDFe8h77w0LX7x/m5pVAtF4xhFN9dWLFTwz8lQIYyo8XhGOCjUxQ==
        public_key:
          type: string
          example: >-
            TUlJQk0qRR5CZ2tjaGtpRzl0RIJVUUV01UFPv9FROEFNSUlCQ2dLQ0FRRUF0c1phNXV4NHk1RRpR33vbbbdJRXZNVnVNSFNITnBVVW5sbUhzeFo3MFVabG13ZXFPaGpMMDNqdlNLemdzcmxrV3o1eUJnQ042cDhFSWdHb3FEakNlZ0dHd3RJOEMxcVJjYWNwNTd5QXAwRGl2TTdtMW14NHIyelVQMVZVS2xTTG9JeEY5eTBWMERnQVpaZ1UwNnVRWVdjbTM5R1RTc1RVUEVRd3lWbWF6Ykcvb09xVUlrUGYwM3pJbEllSkh0anJOTlI0aXdMQmFwUDJSeHhkRU5jZlZXcFh3d0ZsRitFblFJOTZQVGNwTjQwRHZtL0I5QlF4NStSRzVDVkdnejRtL2xTY2xUeDVlOEhlcDhjMEYzYkNrckdIcEF2UXJSOHJQcW5kbVNXbkFIMWRBQXIwb3FleUJaampaWU1jZHgzQWpRdm0vSHk5T2UzMlFKVEpoRDZYV3dJREFRQUI=
        prescription:
          $ref: '#/components/schemas/Prescription'
    Prescription:
      type: object
      properties:
        id:
          type: string
          example: 123e4567-e89b-12d3-a456-426614174000
        issued_at:
          type: string
          example: '2025-06-04T12:00:00.000Z'
        patient:
          $ref: '#/components/schemas/Patient'
        provider:
          $ref: '#/components/schemas/Provider'
        medical_entity:
          $ref: '#/components/schemas/MedicalEntity'
    Patient:
      type: object
      properties:
        full_name:
          type: string
          example: John Doe
        email:
          type: string
          example: john.doe@example.com
        dob:
          type: string
          example: '1990-01-01'
        contact:
          type: string
          example: '+1234567890'
        address:
          type: string
          example: 123 Main St, Anytown, USA
    Provider:
      type: object
      properties:
        full_name:
          type: string
          example: Sam Smith
        address:
          type: string
          example: 123 Main St, Anytown, USA
        provider_registration_number:
          type: string
          example: '1234567890'
    MedicalEntity:
      type: object
      properties:
        name:
          type: string
          example: X Pharmacy
        address:
          type: string
          example: 123 Main St, Anytown, USA
        contact:
          type: string
          example: '+1234567890'

````