# Bulk import API responseBody for create action

**URL:** <https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465>\
**Category:** APIs & Integrations\
**Created:** [November 3, 2022, 11:00am UTC](https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465 "2022-11-03T11:00:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![6sense](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/6sense/32/59606_2.png) [@6sense](https://community.hubspot.com/u/6sense)\
**Post date:** [November 3, 2022, 11:00am UTC](https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465/1 "2022-11-03T11:00:35Z")

</div>

Hi,

I’m using the bulk import api to create contacts/accounts and had a couple of questions.

1) From the GET import response I’m looking to capture the IDs of the newly created objects. How do I do this?

2) What does the " **fileIds"** in the reponse represent?

A sample response of my import I get with the “Get Info on import api” has the following fields →

**GET** /crm/v3/imports/{importId}

HubspotBulkFileUploadResponse(

state=DONE,

createdAt=2022-11-03T10:27:12.891Z,

importName=6Sense Data Export:contact\_1667471230872.csv, updatedAt=2022-11-03T10:27:29.223Z,

optOutImport=false,

id=29801094,

metadata=MetaData(

objectLists=[ObjectType(listId=331, objectType=0-1)], counters=Counters(

TOTAL\_ROWS=10,

PROPERTY\_VALUES\_EMITTED=9,

UPDATED\_OBJECTS=0,

UNIQUE\_OBJECTS\_WRITTEN=9,

MAPPED\_COLUMNS=3,

CREATED\_OBJECTS=9,

ERRORS=1),

**fileIds** =[90375898510]

)

)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 3, 2022, 10:54pm UTC](https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465/2 "2022-11-03T22:54:31Z")

</div>

Hi, @6sense 👋 Thanks for the great questions. Let’s see if we can get the conversation going.

Q1 – Hey, @miljkovicmisa @albertsg, do you have any thoughts here?

One thought is to make a list from a specific import and then query the list. But I don’t see a direct approach in the Search API documentation to accomplish something similar. Not _by specific import_. We could look at _createdate_, but that could pull in contact created that day that are not part of the import.

Q2 – I do not have any documentation showing fileIds as an externally useable property or value. In other similar cases, I’ve seen values like this get retuned via a public endpoint, but **only** have internal (HubSpot) uses. Confusing, but it happens.

For Q2, can you tell us more about how you are using this value or were thinking of using it? I am happy to dig a bit more once I understand the context more.

Thank you very much! — Jaycee

---

<div class="post-metadata">

**Author:** ![6sense](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/6sense/32/59606_2.png) [@6sense](https://community.hubspot.com/u/6sense)\
**Post date:** [November 4, 2022, 6:21am UTC](https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465/3 "2022-11-04T06:21:33Z")

</div>

Hi Jaycee,

Thanks for your response.

For Q2 - I was wondering if fileIds contains the response object and if I can get the data from this file via any api call?

---

<div class="post-metadata">

**Author:** ![miljkovicmisa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miljkovicmisa/32/86357_2.png) [@miljkovicmisa](https://community.hubspot.com/u/miljkovicmisa)\
**Post date:** [November 4, 2022, 9:37am UTC](https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465/4 "2022-11-04T09:37:53Z")

</div>

Hello @6sense & [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) , you are correct [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) , it is possible to leverage the returned

`listId` to get contacts from the list by using the [List API Get Contacts endpoint from this link](https://legacydocs.hubspot.com/docs/methods/lists/get_list_contacts).  
Hope this is useful.

---

<div class="post-metadata">

**Author:** ![6sense](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/6sense/32/59606_2.png) [@6sense](https://community.hubspot.com/u/6sense)\
**Post date:** [November 4, 2022, 10:25am UTC](https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465/5 "2022-11-04T10:25:23Z")

</div>

Wonderful. Is there a similar API for getting companies from a list id?

---

<div class="post-metadata">

**Author:** ![6sense](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/6sense/32/59606_2.png) [@6sense](https://community.hubspot.com/u/6sense)\
**Post date:** [November 8, 2022, 2:31pm UTC](https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465/6 "2022-11-08T14:31:29Z")

</div>

@miljkovicmisa [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)  
Is there a similar API for getting companies from a list id?

---

<div class="post-metadata">

**Author:** ![6sense](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/6sense/32/59606_2.png) [@6sense](https://community.hubspot.com/u/6sense)\
**Post date:** [December 22, 2022, 3:58pm UTC](https://community.hubspot.com/t/bulk-import-api-responsebody-for-create-action/68465/7 "2022-12-22T15:58:17Z")

</div>

Hi @miljkovicmisa [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)

I tried the above API and this is the response that I get  
[https://api.hubapi.com/contacts/v1/lists/527/contacts/all](https://api.hubapi.com/contacts/v1/lists/527/contacts/all)

{

“contacts”: [],

“has-more”: false,

“vid-offset”: 0

}

I tried for various requests, records get created but the listid that I get From the Bulk api response does not give me any data.

Please suggest.
