<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>83</ContextCount>
  <ElementCount>229</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>25</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/StatementBalanceSheets</Role>
      <ShortName>Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/StatementBalanceSheetsParenthetical</Role>
      <ShortName>Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Statements of Operations and Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/StatementStatementsOfOperationsAndComprehensiveLoss</Role>
      <ShortName>Statements of Operations and Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Statements of Convertible Preferred Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/StatementStatementsOfConvertiblePreferredStock</Role>
      <ShortName>Statements of Convertible Preferred Stock</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/StatementStatementsOfCashFlows</Role>
      <ShortName>Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00500 - Statement - Statements of Stockholders' Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/StatementStatementsOfStockholdersEquityDeficit</Role>
      <ShortName>Statements of Stockholders' Equity (Deficit)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00505 - Statement - Statements of Stockholders' Equity (Deficit) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/StatementStatementsOfStockholdersEquityDeficitParenthetical</Role>
      <ShortName>Statements of Stockholders' Equity (Deficit) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureOrganization</Role>
      <ShortName>Organization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Supplemental financial information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureSupplementalFinancialInformation</Role>
      <ShortName>Supplemental financial information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Research collaboration agreement with Allergan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureResearchCollaborationAgreementWithAllergan</Role>
      <ShortName>Research collaboration agreement with Allergan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Fair value measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair value measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosurePropertyAndEquipment</Role>
      <ShortName>Property and equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Stock incentive plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureStockIncentivePlan</Role>
      <ShortName>Stock incentive plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Net loss per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureNetLossPerShare</Role>
      <ShortName>Net loss per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>20302 - Disclosure - Summary of significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Supplemental financial information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureSupplementalFinancialInformationTables</Role>
      <ShortName>Supplemental financial information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureSupplementalFinancialInformation</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Fair value measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair value measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>30603 - Disclosure - Property and equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosurePropertyAndEquipmentTables</Role>
      <ShortName>Property and equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosurePropertyAndEquipment</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>30703 - Disclosure - Stock incentive plan (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureStockIncentivePlanTables</Role>
      <ShortName>Stock incentive plan (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureStockIncentivePlan</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>30803 - Disclosure - Net loss per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureNetLossPerShareTables</Role>
      <ShortName>Net loss per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureNetLossPerShare</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Organization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureOrganizationDetails</Role>
      <ShortName>Organization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureOrganization</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Supplemental financial information - Cash, cash equivalents and restricted cash (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureSupplementalFinancialInformationCashCashEquivalentsAndRestrictedCashDetails</Role>
      <ShortName>Supplemental financial information - Cash, cash equivalents and restricted cash (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Supplemental financial information - Prepaid expenses and other current assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureSupplementalFinancialInformationPrepaidExpensesAndOtherCurrentAssetsDetails</Role>
      <ShortName>Supplemental financial information - Prepaid expenses and other current assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>40303 - Disclosure - Supplemental financial information - Accrued expenses and other current liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureSupplementalFinancialInformationAccruedExpensesAndOtherCurrentLiabilitiesDetails</Role>
      <ShortName>Supplemental financial information - Accrued expenses and other current liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Research collaboration agreement with Allergan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureResearchCollaborationAgreementWithAllerganDetails</Role>
      <ShortName>Research collaboration agreement with Allergan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureResearchCollaborationAgreementWithAllergan</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Fair value measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureFairValueMeasurementsDetails</Role>
      <ShortName>Fair value measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Property and equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosurePropertyAndEquipmentDetails</Role>
      <ShortName>Property and equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosurePropertyAndEquipmentTables</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Stock incentive plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureStockIncentivePlanDetails</Role>
      <ShortName>Stock incentive plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureStockIncentivePlanTables</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>40703 - Disclosure - Stock incentive plan - Stock-based compensation expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureStockIncentivePlanStockBasedCompensationExpenseDetails</Role>
      <ShortName>Stock incentive plan - Stock-based compensation expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>40704 - Disclosure - Stock incentive plan - Activity related to stock options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureStockIncentivePlanActivityRelatedToStockOptionsDetails</Role>
      <ShortName>Stock incentive plan - Activity related to stock options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>40705 - Disclosure - Stock incentive plan - Restricted stock awards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureStockIncentivePlanRestrictedStockAwardsDetails</Role>
      <ShortName>Stock incentive plan - Restricted stock awards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>40706 - Disclosure - Stock incentive plan - Restricted stock units (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureStockIncentivePlanRestrictedStockUnitsDetails</Role>
      <ShortName>Stock incentive plan - Restricted stock units (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Net loss per share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureNetLossPerShareDetails</Role>
      <ShortName>Net loss per share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureNetLossPerShareTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>40802 - Disclosure - Net loss per share - Anti-dilutive securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureNetLossPerShareAntiDilutiveSecuritiesDetails</Role>
      <ShortName>Net loss per share - Anti-dilutive securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="aptx-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>41001 - Disclosure - Commitments and contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.aptinyx.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.aptinyx.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>39</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>aptx-20200331.xml</File>
    <File>aptx-20200331.xsd</File>
    <File>aptx-20200331_cal.xml</File>
    <File>aptx-20200331_def.xml</File>
    <File>aptx-20200331_lab.xml</File>
    <File>aptx-20200331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2018-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
