{
  "opencollection": "1.0.0",
  "info": {
    "name": "Truepill (FuzeRx) API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "apikey": {
        "key": "Authorization",
        "value": "ApiKey {{apiKey}}",
        "in": "header"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Patients",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a patient record.",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://rxapi.fuzehealth.com/v1/patient",
            "body": {
              "type": "json",
              "data": "{\n  \"first_name\": \"\",\n  \"last_name\": \"\",\n  \"dob\": \"\",\n  \"gender\": \"\",\n  \"address_1\": \"\",\n  \"city\": \"\",\n  \"state\": \"\",\n  \"zip\": \"\",\n  \"phone_number\": \"\",\n  \"email\": \"\"\n}"
            }
          },
          "docs": "Creates a patient and returns an opaque patient_token."
        },
        {
          "info": {
            "name": "Find a patient by demographics.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rxapi.fuzehealth.com/v1/patient"
          },
          "docs": "Find a patient by first_name, last_name, and dob."
        },
        {
          "info": {
            "name": "Retrieve patient details.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rxapi.fuzehealth.com/v1/patient/{patient_token}"
          },
          "docs": "Retrieve a patient by patient_token."
        },
        {
          "info": {
            "name": "Update patient information.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rxapi.fuzehealth.com/v1/patient/{patient_token}",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing patient record."
        },
        {
          "info": {
            "name": "List a patient's prescriptions.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rxapi.fuzehealth.com/v1/patient/{patient_token}/prescriptions"
          },
          "docs": "List prescriptions for a patient."
        }
      ]
    },
    {
      "info": {
        "name": "Prescriptions & Transfers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get prescription details.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rxapi.fuzehealth.com/v1/prescription/{prescription_token}"
          },
          "docs": "Retrieve a prescription by prescription_token."
        },
        {
          "info": {
            "name": "Initiate a pharmacy transfer request.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rxapi.fuzehealth.com/v1/transfer_request",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Initiate a pharmacy-to-pharmacy transfer request."
        },
        {
          "info": {
            "name": "List all transfer requests.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rxapi.fuzehealth.com/v1/transfer_request"
          },
          "docs": "List all transfer requests."
        },
        {
          "info": {
            "name": "Get a specific transfer request.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rxapi.fuzehealth.com/v1/transfer_request/{transfer_token}"
          },
          "docs": "Retrieve a transfer request by transfer_token."
        },
        {
          "info": {
            "name": "Create a direct transfer (v1).",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rxapi.fuzehealth.com/v1/direct_transfer",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a direct transfer (v1)."
        },
        {
          "info": {
            "name": "Create a direct transfer (v2).",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rxapi.fuzehealth.com/v1/v2/direct_transfer",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a direct transfer (v2)."
        }
      ]
    },
    {
      "info": {
        "name": "Insurance & Copay",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create an insurance object for a patient.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rxapi.fuzehealth.com/v1/insurance",
            "body": {
              "type": "json",
              "data": "{\n  \"patient_token\": \"\",\n  \"bin\": \"\",\n  \"pcn\": \"\",\n  \"group_number\": \"\",\n  \"member_id\": \"\"\n}"
            }
          },
          "docs": "Establish a patient's pharmacy benefit details."
        },
        {
          "info": {
            "name": "Create a copay request.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rxapi.fuzehealth.com/v1/copay_request",
            "body": {
              "type": "json",
              "data": "{\n  \"patient_token\": \"\",\n  \"prescription_token\": \"\"\n}"
            }
          },
          "docs": "Determine real-time out-of-pocket expense for a medication."
        },
        {
          "info": {
            "name": "Get insurance claim details.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rxapi.fuzehealth.com/v1/insurance_claim"
          },
          "docs": "Query adjudicated insurance claim details (restricted)."
        }
      ]
    },
    {
      "info": {
        "name": "Webhooks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve webhook events by type.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rxapi.fuzehealth.com/v1/webhook_events/{webhook_type}"
          },
          "docs": "Retrieve webhook events by type (e.g., notify_rx)."
        }
      ]
    }
  ]
}
