<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Search for Companies by Domain returns Method Not Allowed in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539726#M49352</link>
    <description>&lt;P&gt;ah,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would be expected then.&lt;/P&gt;
&lt;P&gt;2 problems:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; you need to use your hapikey to get results specific for your portal&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; the browser can only make get requests where this endpoint requires a post request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download postman or an equivalent to test this.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 16:59:57 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2021-12-09T16:59:57Z</dc:date>
    <item>
      <title>Search for Companies by Domain returns Method Not Allowed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539200#M49325</link>
      <description>&lt;P&gt;HI all, I'm trying to use the function Search For Companies by domain, documented here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/companies/search_companies_by_domain" target="_blank"&gt;https://legacydocs.hubspot.com/docs/methods/companies/search_companies_by_domain&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I always receive:&lt;/P&gt;&lt;P&gt;HTTP Error 405&amp;nbsp;&lt;/P&gt;&lt;P&gt;Method Not Allowed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has the function been deprecated? If so is there a current replacement for it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 23:30:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539200#M49325</guid>
      <dc:creator>KevinL33</dc:creator>
      <dc:date>2021-12-08T23:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Companies by Domain returns Method Not Allowed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539384#M49334</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/293716"&gt;@KevinL33&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you use oAuth2 or the API key? If you use oAuth2, check if you have the correct scopes (contacts) in place.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 07:31:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539384#M49334</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2021-12-09T07:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Companies by Domain returns Method Not Allowed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539632#M49346</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp; &amp;nbsp;I am using an API key, the demo example doesn't even work.&amp;nbsp; If you follow my link and copy/paste the example URL you'll see the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 15:20:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539632#M49346</guid>
      <dc:creator>KevinL33</dc:creator>
      <dc:date>2021-12-09T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Companies by Domain returns Method Not Allowed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539719#M49349</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/293716"&gt;@KevinL33&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;I just tested in postman and it works for me &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you post exactly what you are sending? (minus your hapikey)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 16:50:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539719#M49349</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-12-09T16:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Companies by Domain returns Method Not Allowed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539723#M49350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;I post the url from the demo, or I can put in one of our client contact domains with my apikey and get the same result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://api.hubapi.com/companies/v2/domains/hubspot.com/companies?hapikey=demo" target="_blank"&gt;https://api.hubapi.com/companies/v2/domains/hubspot.com/companies?hapikey=demo&lt;/A&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 09 Dec 2021 16:55:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539723#M49350</guid>
      <dc:creator>KevinL33</dc:creator>
      <dc:date>2021-12-09T16:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Companies by Domain returns Method Not Allowed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539724#M49351</link>
      <description>&lt;P&gt;I should mention that I'm entering the url on a web browser and just viewing the Json that's returned ( if it's returned).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 16:57:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539724#M49351</guid>
      <dc:creator>KevinL33</dc:creator>
      <dc:date>2021-12-09T16:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Companies by Domain returns Method Not Allowed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539726#M49352</link>
      <description>&lt;P&gt;ah,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would be expected then.&lt;/P&gt;
&lt;P&gt;2 problems:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; you need to use your hapikey to get results specific for your portal&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; the browser can only make get requests where this endpoint requires a post request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download postman or an equivalent to test this.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 16:59:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/539726#M49352</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-12-09T16:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Companies by Domain returns Method Not Allowed</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/540465#M49389</link>
      <description>&lt;P&gt;Thanks for the info&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I actually installed the c# package HubSpot.NET and used the functions api.Company.GetByDomain() and api.Company.GetById().&amp;nbsp; Both work like a charm. Thanks again.&amp;nbsp; KL.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 17:57:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Companies-by-Domain-returns-Method-Not-Allowed/m-p/540465#M49389</guid>
      <dc:creator>KevinL33</dc:creator>
      <dc:date>2021-12-10T17:57:07Z</dc:date>
    </item>
  </channel>
</rss>

