Hi, @Kabaja
Welcome to the community. I have questions and not answers. And let’s see if we can get there anyway.
Questions:
-
You are using theGET /crm/v3/objects/contacts
on this page, correct? — CRM API > Contacts > List
-
And you are using the C# example from the documentation? Is that correct?
I created a Private App with only the needed scope and tried from the documentation example:
Request
var client = new RestClient("https://api.hubapi.com/crm/v3/objects/contacts?limit=100&archived=false");
var request = new RestRequest(Method.GET);
request.AddHeader("accept", "application/json");
request.AddHeader("authorization", "Bearer YOUR_ACCESS_TOKEN");
IRestResponse response = client.Execute(request);
Response
{
"results": [
{
"id": "1",
"properties": {
"createdate": "2022-06-29T17:59:00.693Z",
"email": "emailmaria@hubspot.com",
"firstname": "Maria",
"hs_object_id": "1",
"lastmodifieddate": "2022-08-11T23:25:03.952Z",
"lastname": "Johnson (Sample Contact)"
},
"createdAt": "2022-06-29T17:59:00.693Z",
"updatedAt": "2022-08-11T23:25:03.952Z",
"archived": false
},
{
"id": "51",
"properties": {
"createdate": "2022-06-29T17:59:01.172Z",
"email": "bh@hubspot.com",
"firstname": "Brian",
"hs_object_id": "51",
"lastmodifieddate": "2022-08-02T17:50:32.754Z",
"lastname": "Halligan (Sample Contact)"
},
"createdAt": "2022-06-29T17:59:01.172Z",
"updatedAt": "2022-08-02T17:50:32.754Z",
"archived": false
},
{
"id": "101",
"properties": {
"createdate": "2022-06-30T04:07:35.653Z",
"email": "jaycee@example.com",
"firstname": null,
"hs_object_id": "101",
"lastmodifieddate": "2022-08-02T17:50:32.092Z",
"lastname": null
},
"createdAt": "2022-06-30T04:07:35.653Z",
"updatedAt": "2022-08-02T17:50:32.092Z",
"archived": false
},
{
"id": "201",
"properties": {
"createdate": "2022-06-30T05:20:31.927Z",
"email": "jaycee222@example.com",
"firstname": null,
"hs_object_id": "201",
"lastmodifieddate": "2022-08-02T17:50:33.777Z",
"lastname": null
},
"createdAt": "2022-06-30T05:20:31.927Z",
"updatedAt": "2022-08-02T17:50:33.777Z",
"archived": false
}
]
}
Can you share the full response body? Hey, @klloyd__1 @DanielSanchez is there a better way to think about this one?
Thank you for taking a look! — Jaycee