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: Accounts Dashboard | HubSpot
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!

Hey, @GPommier :waving_hand: 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

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:

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))

Sharing options

And the view is shared with everyone

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

Best,

Jaycee

Hi Jaycee!

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

EDIT: HubSpot Ticket #11841121

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

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

No I haven’t.