Trying to get an export file/link of our CRM data (companies+all properties), but I am receiving this error:
“{“status”:“error”,“message”:“Public Exports API is gated for this portal”,“correlationId”:”",“category”:“MISSING_PERMISSIONS”}
Does anyone know which permissions are required to use this feature/endpoint? Getting this export file would save me a lot of time.
Here are the scopes the app has : automationcrm.lists.readcrm.objects.contacts.readsettings.users.writecrm.objects.contacts.writecrm.objects.marketing_events.readcrm.objects.marketing_events.writecrm.schemas.custom.readcrm.objects.custom.readcrm.objects.custom.writecrm.schemas.custom.writecrm.objects.companies.writesettings.users.readcrm.schemas.contacts.readcms.domains.readcms.domains.writesettings.billing.writecrm.lists.writecrm.objects.companies.readcrm.objects.deals.readcrm.objects.deals.writecrm.schemas.companies.readcrm.schemas.companies.writecrm.schemas.contacts.writecrm.schemas.deals.readcrm.schemas.deals.writecrm.objects.owners.readsettings.users.teams.writesettings.users.teams.readcrm.objects.quotes.writecrm.objects.quotes.readcrm.schemas.quotes.readcrm.objects.line_items.readcrm.objects.line_items.writecrm.schemas.line_items.readcrm.export
(sorry about formatting)
Thanks,
Jason
Here is the code:
#python3
import requests
url = “https://api.hubapi.com/crm/v3/exports/export/async”
payload = ‘{“exportType”:“VIEW”,“format”:“CSV”,“exportName”:“test_name”,“objectProperties”:[“Developer”],“associatedObjectType”:“Company”,“objectType”:“Company”,“language”:“EN”}’
headers = {
“accept”: “application/json”,
“content-type”: “application/json”,
“authorization”: “[auth_code]”,
}
response = requests.request(“POST”, url, data=payload, headers=headers)
print(response.text)