<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>603</ContextCount>
  <ElementCount>501</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>172</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>15</UnitCount>
  <MyReports>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONSOLIDATED STATEMENTS OF INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONSOLIDATED STATEMENTS OF INCOME CONSOLIDATED STATEMENT OF INCOME (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFINCOMECONSOLIDATEDSTATEMENTOFINCOMEParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME CONSOLIDATED STATEMENT OF INCOME (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMECONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Statement - CONSOLIDATED STATEMENT OF CHANGES IN EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/CONSOLIDATEDSTATEMENTOFCHANGESINEQUITYParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENT OF CHANGES IN EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.oneok.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNotes</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - MAGELLAN ACQUISITION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITION</Role>
      <ShortName>MAGELLAN ACQUISITION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - MEDFORD INCIDENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MEDFORDINCIDENT</Role>
      <ShortName>MEDFORD INCIDENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - FAIR VALUE MEASUREMENTS (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSNotes</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVES</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - PROPERTY, PLANT AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/PROPERTYPLANTANDEQUIPMENT</Role>
      <ShortName>PROPERTY, PLANT AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - GOODWILL AND INTANGIBLE ASSETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETS</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBT</Role>
      <ShortName>DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EQUITY</Role>
      <ShortName>EQUITY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - EARNINGS PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EARNINGSPERSHARE</Role>
      <ShortName>EARNINGS PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - SHARE-BASED PAYMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SHAREBASEDPAYMENTS</Role>
      <ShortName>SHARE-BASED PAYMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000023 - Disclosure - EMPLOYEE BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EMPLOYEEBENEFITPLANS</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>0000024 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/INCOMETAXES</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>0000025 - Disclosure - UNCONSOLIDATED AFFILIATES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATES</Role>
      <ShortName>UNCONSOLIDATED AFFILIATES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>0000026 - Disclosure - COMMITMENTS AND CONTINGENCIES (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.oneok.com/role/COMMITMENTSANDCONTINGENCIESNotes</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>0000027 - Disclosure - REVENUES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/REVENUES</Role>
      <ShortName>REVENUES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>0000028 - Disclosure - SEGMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTS</Role>
      <ShortName>SEGMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - MAGELLAN ACQUISITION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONTables</Role>
      <ShortName>MAGELLAN ACQUISITION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/MAGELLANACQUISITION</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSNotes</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954474 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESTables</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVES</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - PROPERTY, PLANT AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/PROPERTYPLANTANDEQUIPMENTTables</Role>
      <ShortName>PROPERTY, PLANT AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/PROPERTYPLANTANDEQUIPMENT</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - GOODWILL AND INTANGIBLE ASSETS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETSTables</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETS</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBTTables</Role>
      <ShortName>DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/DEBT</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - EQUITY (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EQUITYTables</Role>
      <ShortName>EQUITY (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/EQUITY</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - EARNINGS PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EARNINGSPERSHARETables</Role>
      <ShortName>EARNINGS PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/EARNINGSPERSHARE</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - SHARE-BASED PAYMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SHAREBASEDPAYMENTSTables</Role>
      <ShortName>SHARE-BASED PAYMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/SHAREBASEDPAYMENTS</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - EMPLOYEE BENEFIT PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EMPLOYEEBENEFITPLANSTables</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/EMPLOYEEBENEFITPLANS</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/INCOMETAXESTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/INCOMETAXES</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - UNCONSOLIDATED AFFILIATES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATESTables</Role>
      <ShortName>UNCONSOLIDATED AFFILIATES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATES</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - COMMITMENTS AND CONTINGENCIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/COMMITMENTSANDCONTINGENCIESTables</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/COMMITMENTSANDCONTINGENCIESNotes</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - REVENUES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/REVENUESTables</Role>
      <ShortName>REVENUES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/REVENUES</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - SEGMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTSTables</Role>
      <ShortName>SEGMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oneok.com/role/SEGMENTS</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - MAGELLAN ACQUISITION - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONNarrativeDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - MAGELLAN ACQUISITION - Acquisition Consideration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionConsiderationDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Acquisition Consideration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - MAGELLAN ACQUISITION - Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONAssetsAcquiredandLiabilitiesAssumedDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954491 - Disclosure - MAGELLAN ACQUISITION - Acquisition Related Transaction Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionRelatedTransactionCostsDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Acquisition Related Transaction Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954492 - Disclosure - MAGELLAN ACQUISITION - Acquisition, Pro Forma Financial Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MAGELLANACQUISITIONAcquisitionProFormaFinancialInformationDetails</Role>
      <ShortName>MAGELLAN ACQUISITION - Acquisition, Pro Forma Financial Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954493 - Disclosure - MEDFORD INCIDENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/MEDFORDINCIDENTDetails</Role>
      <ShortName>MEDFORD INCIDENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/MEDFORDINCIDENT</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954494 - Disclosure - FAIR VALUE MEASUREMENTS - Recurring Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSRecurringFairValueMeasurementsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Recurring Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954495 - Disclosure - FAIR VALUE MEASUREMENTS - Reconciliation of Level 3 Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSReconciliationofLevel3FairValueMeasurementsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Reconciliation of Level 3 Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954496 - Disclosure - FAIR VALUE MEASUREMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/FAIRVALUEMEASUREMENTSNarrativeDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954497 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNarrativeDetails</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954498 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Fair Value of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESFairValueofDerivativeInstrumentsDetails</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Fair Value of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954499 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Notional Quantities For Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESNotionalQuantitiesForDerivativeInstrumentsDetails</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Notional Quantities For Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954500 - Disclosure - RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Cash Flow Hedges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/RISKMANAGEMENTANDHEDGINGACTIVITIESUSINGDERIVATIVESCashFlowHedgesDetails</Role>
      <ShortName>RISK MANAGEMENT AND HEDGING ACTIVITIES USING DERIVATIVES - Cash Flow Hedges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954501 - Disclosure - PROPERTY, PLANT AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/PROPERTYPLANTANDEQUIPMENTDetails</Role>
      <ShortName>PROPERTY, PLANT AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/PROPERTYPLANTANDEQUIPMENTTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954502 - Disclosure - GOODWILL AND INTANGIBLE ASSETS - Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETSGoodwillDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS - Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954503 - Disclosure - GOODWILL AND INTANGIBLE ASSETS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/GOODWILLANDINTANGIBLEASSETSNarrativeDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954504 - Disclosure - DEBT - Schedule of Consolidated Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBTScheduleofConsolidatedDebtDetails</Role>
      <ShortName>DEBT - Schedule of Consolidated Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954505 - Disclosure - DEBT - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBTNarrativeDetails</Role>
      <ShortName>DEBT - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954506 - Disclosure - DEBT - Aggregate Maturities of Long-Term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/DEBTAggregateMaturitiesofLongTermDebtDetails</Role>
      <ShortName>DEBT - Aggregate Maturities of Long-Term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954507 - Disclosure - EQUITY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EQUITYDetails</Role>
      <ShortName>EQUITY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/EQUITYTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954508 - Disclosure - EQUITY - Quarterly Dividends (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EQUITYQuarterlyDividendsDetails</Role>
      <ShortName>EQUITY - Quarterly Dividends (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954509 - Disclosure - EARNINGS PER SHARE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EARNINGSPERSHAREDetails</Role>
      <ShortName>EARNINGS PER SHARE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/EARNINGSPERSHARETables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9954510 - Disclosure - SHARE-BASED PAYMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SHAREBASEDPAYMENTSNarrativeDetails</Role>
      <ShortName>SHARE-BASED PAYMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9954511 - Disclosure - SHARE-BASED PAYMENTS - Stock Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SHAREBASEDPAYMENTSStockActivityDetails</Role>
      <ShortName>SHARE-BASED PAYMENTS - Stock Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9954512 - Disclosure - EMPLOYEE BENEFIT PLANS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EMPLOYEEBENEFITPLANSNarrativeDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9954513 - Disclosure - EMPLOYEE BENEFIT PLANS - Obligations and Fair Value of Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EMPLOYEEBENEFITPLANSObligationsandFairValueofPlanAssetsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Obligations and Fair Value of Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9954514 - Disclosure - EMPLOYEE BENEFIT PLANS - Actuarial Assumptions &amp; Weighted Average Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EMPLOYEEBENEFITPLANSActuarialAssumptionsWeightedAverageAssumptionsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Actuarial Assumptions &amp; Weighted Average Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9954515 - Disclosure - EMPLOYEE BENEFIT PLANS - Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EMPLOYEEBENEFITPLANSPlanAssetsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9954516 - Disclosure - EMPLOYEE BENEFIT PLANS - Fair Value Category as of Measurement Date for Defined Benefit Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EMPLOYEEBENEFITPLANSFairValueCategoryasofMeasurementDateforDefinedBenefitPlanDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Fair Value Category as of Measurement Date for Defined Benefit Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9954517 - Disclosure - EMPLOYEE BENEFIT PLANS - Pension and Other Postretirement Benefit Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/EMPLOYEEBENEFITPLANSPensionandOtherPostretirementBenefitPaymentsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Pension and Other Postretirement Benefit Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9954518 - Disclosure - INCOME TAXES - Provision for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/INCOMETAXESProvisionforIncomeTaxesDetails</Role>
      <ShortName>INCOME TAXES - Provision for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9954519 - Disclosure - INCOME TAXES - Reconciliation of Income Tax Provision (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/INCOMETAXESReconciliationofIncomeTaxProvisionDetails</Role>
      <ShortName>INCOME TAXES - Reconciliation of Income Tax Provision (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9954520 - Disclosure - INCOME TAXES - Temporary Differences of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/INCOMETAXESTemporaryDifferencesofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>INCOME TAXES - Temporary Differences of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9954521 - Disclosure - INCOME TAXES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/INCOMETAXESNarrativeDetails</Role>
      <ShortName>INCOME TAXES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9954522 - Disclosure - UNCONSOLIDATED AFFILIATES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATESDetails</Role>
      <ShortName>UNCONSOLIDATED AFFILIATES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/UNCONSOLIDATEDAFFILIATESTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9954523 - Disclosure - COMMITMENTS AND CONTINGENCIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/COMMITMENTSANDCONTINGENCIESDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oneok.com/role/COMMITMENTSANDCONTINGENCIESTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9954524 - Disclosure - REVENUES - Contract Assets and Contract Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/REVENUESContractAssetsandContractLiabilitiesDetails</Role>
      <ShortName>REVENUES - Contract Assets and Contract Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9954525 - Disclosure - REVENUES - Expected Period of Recognition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/REVENUESExpectedPeriodofRecognitionDetails</Role>
      <ShortName>REVENUES - Expected Period of Recognition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9954526 - Disclosure - SEGMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTSNarrativeDetails</Role>
      <ShortName>SEGMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9954527 - Disclosure - SEGMENTS - Operating Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTSOperatingInformationDetails</Role>
      <ShortName>SEGMENTS - Operating Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="oke-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9954528 - Disclosure - SEGMENTS - Reconciliation of Net Income to Total Segment Adjusted EBITDA (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oneok.com/role/SEGMENTSReconciliationofNetIncometoTotalSegmentAdjustedEBITDADetails</Role>
      <ShortName>SEGMENTS - Reconciliation of Net Income to Total Segment Adjusted EBITDA (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="oke-20231231.htm">oke-20231231.htm</File>
    <File>oke-20231231.xsd</File>
    <File>oke-20231231_cal.xml</File>
    <File>oke-20231231_def.xml</File>
    <File>oke-20231231_lab.xml</File>
    <File>oke-20231231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>oke-20231231_g1.jpg</File>
    <File>oke-20231231_g2.jpg</File>
    <File>oke-20231231_g3.jpg</File>
    <File>oke-20231231_g4.jpg</File>
    <File>oke-20231231_g5.jpg</File>
    <File>oke-20231231_g6.jpg</File>
    <File>oke-20231231_g7.jpg</File>
    <File>oke-20231231_g8.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1752">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
