# Contacts API throwing NotFound exception

**URL:** <https://community.hubspot.com/t/contacts-api-throwing-notfound-exception/63758>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [August 25, 2022, 5:41pm UTC](https://community.hubspot.com/t/contacts-api-throwing-notfound-exception/63758 "2022-08-25T17:41:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CBryant4](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@CBryant4](https://community.hubspot.com/u/CBryant4)\
**Post date:** [August 25, 2022, 5:41pm UTC](https://community.hubspot.com/t/contacts-api-throwing-notfound-exception/63758/1 "2022-08-25T17:41:56Z")

</div>

Although nothing has changed with my application, I am receiving a NotFound exception when I try to submit the following request (I have xxx’ed out the api key):

```lia-code-sample
{
 "Request": {
 "AlwaysMultipartFormData": false,
 "MultipartFormQuoteParameters": false,
 "FormBoundary": null,
 "Parameters": [
 {
 "Name": "hapikey",
 "Value": "xxx",
 "Type": 4,
 "Encode": true,
 "ContentType": null
 },
 {
 "Name": "properties",
 "Value": "primary_key,email,firstname,lastname,full_name",
 "Type": 4,
 "Encode": true,
 "ContentType": null
 },
 {
 "Name": "limit",
 "Value": "100",
 "Type": 4,
 "Encode": true,
 "ContentType": null
 }
 ],
 "Files": [],
 "Method": 0,
 "Timeout": 0,
 "Resource": "https://api.hubspot.com/crm/v3/objects/contacts",
 "RequestFormat": 0,
 "RootElement": null,
 "OnBeforeDeserialization": null,
 "OnBeforeRequest": null,
 "OnAfterRequest": null,
 "Attempts": 1,
 "CompletionOption": 0,
 "ResponseWriter": null,
 "AdvancedResponseWriter": null
 },
 "ContentType": null,
 "ContentLength": 0,
 "ContentEncoding": [],
 "Content": "",
 "StatusCode": 404,
 "IsSuccessful": false,
 "StatusDescription": "Not Found",
 "RawBytes": "",
 "ResponseUri": "https://api.hubspot.com/crm/v3/objects/contacts?hapikey=xxx&properties=primary_key%2cemail%2cfirstname%2clastname%2cfull_name&limit=100",
 "Server": "cloudflare",
 "Cookies": [
 {
 "Comment": "",
 "CommentUri": null,
 "HttpOnly": true,
 "Discard": false,
 "Domain": ".hubspot.com",
 "Expired": false,
 "Expires": "2022-08-25T14:02:10-04:00",
 "Name": "__cf_bm",
 "Path": "/",
 "Port": "",
 "Secure": true,
 "TimeStamp": "2022-08-25T13:32:09.7083859-04:00",
 "Value": "Wv7luo4_Psy9KFgZRXlRJNhEliGkFO3AJ.9ZCW6LyRs-1661448730-0-Ad6MeevV6h/MhkR4EAVQHnlMbN3Qwf6PK9B2TGwdvbiyjTMrHxM3nwUlSenP/CByc/s9X3p6SCgJhwjrIE/24cc=",
 "Version": 0
 }
 ],
 "Headers": [
 {
 "Name": "Date",
 "Value": "Thu, 25 Aug 2022 17:32:10 GMT",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Transfer-Encoding",
 "Value": "chunked",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Connection",
 "Value": "keep-alive",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "CF-Ray",
 "Value": "740610c259c40654-IAD",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Cache-Control",
 "Value": "no-store, must-revalidate, no-cache",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Strict-Transport-Security",
 "Value": "max-age=31536000; includeSubDomains; preload",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "CF-Cache-Status",
 "Value": "DYNAMIC",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Access-Control-Allow-Credentials",
 "Value": "false",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Expect-CT",
 "Value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Set-Cookie",
 "Value": "__cf_bm=Wv7luo4_Psy9KFgZRXlRJNhEliGkFO3AJ.9ZCW6LyRs-1661448730-0-Ad6MeevV6h/MhkR4EAVQHnlMbN3Qwf6PK9B2TGwdvbiyjTMrHxM3nwUlSenP/CByc/s9X3p6SCgJhwjrIE/24cc=; path=/; expires=Thu, 25-Aug-22 18:02:10 GMT; domain=.hubspot.com; HttpOnly; Secure; SameSite=None",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Report-To",
 "Value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=oJk7Goqi5LEWyYV8iXzwAtCDUvwvuVe2zg1%2BEBq6YMr1FUkDJSXmpHETmMOjYN67P%2BMRTKNk9xIUXmwQqrTcjYA1YiTs7fjmd5ou9qgMli6%2BSv%2FAU0NM0EFi6lhlUph2hw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "NEL",
 "Value": "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Vary",
 "Value": "Accept-Encoding",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Server",
 "Value": "cloudflare",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 },
 {
 "Name": "Alt-Svc",
 "Value": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 }
 ],
 "ContentHeaders": [
 {
 "Name": "Content-Length",
 "Value": "0",
 "Type": 2,
 "Encode": false,
 "ContentType": null
 }
 ],
 "ResponseStatus": 1,
 "ErrorMessage": null,
 "ErrorException": {
 "StackTrace": null,
 "Message": "Request failed with status code NotFound",
 "Data": {},
 "InnerException": null,
 "HelpLink": null,
 "Source": null,
 "HResult": -2146233088
 },
 "Version": "1.1",
 "RootElement": null
}

```

---

<div class="post-metadata">

**Author:** ![PRodriguez44](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@PRodriguez44](https://community.hubspot.com/u/PRodriguez44)\
**Post date:** [August 25, 2022, 5:50pm UTC](https://community.hubspot.com/t/contacts-api-throwing-notfound-exception/63758/2 "2022-08-25T17:50:00Z")

</div>

Same issue here!  
nothing changed on my codebase and it’s throwing 404 errors:  
Request:  
[https://api.hubapi.com/crm/v3/objects/contacts?properties=email,firstname,lastname](https://api.hubapi.com/crm/v3/objects/contacts?properties=email,firstname,lastname) (auth data with bearer token)  
Response

```lia-code-sample
{
 "code": 404,
 "body": "<html>\n<head>\n\n<title>Error 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Resource not found</p>\n</body>\n</html>\n",
 "headers": {
 "date": "Thu, 25 Aug 2022 17:25:02 GMT",
 "content-type": "text/html;charset=iso-8859-1",
 "content-length": "197",
 "connection": "close",
 "cf-ray": "740606534e879825-SJC",
 "cache-control": "must-revalidate,no-cache,no-store",
 "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
 "cf-cache-status": "DYNAMIC",
 "access-control-allow-credentials": "false",
 "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
 "report-to": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dWWPQ7sSNiQKbXQpEyEoVsbxDEKkIejSZ%2FJOlXoZKN4D0bhdM7TemS2NqDNnR1hR13pldljRN4kFPAheAV4597dh7taCJAfw0FCyj71fDFlk555j7xme5qq%2FzXpX3SAk\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
 "nel": "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}",
 "server": "cloudflare",
 "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"
 }

}

```

The status page doesn’t indicate that there’s some error on the API’s  
Any help will be appeciated  
Thanks!

---

<div class="post-metadata">

**Author:** ![nyergler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nyergler/32/93181_2.png) [@nyergler](https://community.hubspot.com/u/nyergler)\
**Post date:** [August 25, 2022, 5:52pm UTC](https://community.hubspot.com/t/contacts-api-throwing-notfound-exception/63758/3 "2022-08-25T17:52:34Z")

</div>

We’re seeing similar behavior across a variety of APIs, including the Search and listing objects (contacts, companies).
