APIs & Integrations

GPommier
Member | Diamond Partner
Member | Diamond Partner

Public Exports API is gated for this portal

Hi everyone.

 

I want to export in a CSV file some basic contact information: contact.first_name, contact.last_name, contact.email through Hubspot API (using sandbox account and a private app) using this endpoint POST /crm/v3/exports/export/async  documented here: https://developers.hubspot.com/docs/api/crm/exports

I've selected all scopes for my private app (including crm.export).
I'm getting an undocumented error:  Public Exports API is gated for this portal

I'm getting the same error when running the request in the documentation webpage using the "test call" button.

Is there any configuration that needs to be done on the account to make this request succcess ?

{
  "status": "error",
  "message": "Public Exports API is gated for this portal",
  "correlationId": "37e96a70-e713-4086-xxxx-cffe5824dcbe",
  "category": "MISSING_PERMISSIONS"
}

Thanks in advance for any tips / help!

0 Upvotes
7 Replies 7
GPommier
Member | Diamond Partner
Member | Diamond Partner

Public Exports API is gated for this portal

Hi @Jaycee_Lewis thank you for following up.
I'm using a Sandbox created from Settings > Sandboxes

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Public Exports API is gated for this portal

Hey, @GPommierhave you filed a support ticket for this? If not, can you let me know here, please? Thanks! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
GPommier
Member | Diamond Partner
Member | Diamond Partner

Public Exports API is gated for this portal

No I haven't.
0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Public Exports API is gated for this portal

Hey, @GPommier 👋 Thanks for reaching out. Features in beta can be wonky at times. Thanks for flagging this.

 

I get the same error when using an App Test Account. 

 

To clarify, when you say “sandbox are you referring to:

  • An App Test Account created from your Developer Account?
  • Or, a Sandbox created from Settings > Sandboxes (available for Hubs with an Enterprise subscription)?

This additional detail will help me get this to the correct resource internally. 

 

Talk soon! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
pablo_ribeiro
Member

Public Exports API is gated for this portal

Hi Jaycee!

 

I'm getting the same error from my code and in the test call option on the endpoint page when I try to export a view.

 

What do we need to do? 

I'm using a private app, and the Export scope is already guaranteed.

PS: it's not in the sandbox or test account, it's our production account.

 

Scopes:

pablo_ribeiro_3-1675907570171.png

 

Code and response:

url = "https://api.hubapi.com/crm/v3/exports/export/async"

headers = {
    "Accept": "application/json",
    "content-type": "application/json",
    "Authorization": f"Bearer {TOKEN}"
}

payload = "{\"exportType\":\"VIEW\",\"format\":\"CSV\",\"exportName\":\"test_export\",\"objectProperties\":[\"createdate, name, lifecyclestage, company\"],\"objectType\":\"CONTACT\",\"language\":\"EN\"}"

response = requests.post(url, data=payload, headers=headers)
content = response.content

json_dict = response.json()

print(" Response ".center(50,"-"))
print(response)

print(json.dumps(json_dict,indent=4))

 

pablo_ribeiro_1-1675907325015.png

pablo_ribeiro_0-1675907262506.png

 

Sharing options

And the view is shared with everyone 

pablo_ribeiro_2-1675907368164.png

 

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Public Exports API is gated for this portal

Hey, @pablo_ribeiro, have you filed a support ticket for this? If not, can you let me know here, please? 

 

Best,

Jaycee

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
pablo_ribeiro
Member

Public Exports API is gated for this portal

Hi Jaycee! 

 

I did not open a ticket. I'll open with a link to this thread

 

EDIT: HubSpot Ticket #11841121

0 Upvotes