I am attempting to make API calls to the Association endpoint. But am getting an error “This endpoint does not accept EXTERNAL hapikeys”. Please see from my log below, my application made a successful call to both the deals endpoint and the line items endpoint, then failed on the associations call. In this case, the association is a “Deal to Line Item”, in case that matters.
(Note: request IDs are YYYYMMDDHHMMSSmmm)
HubSpot Account ID: 5018168
- Begin get request 20190307033728233 to https://api.hubapi.com/deals/v1/deal/paged?limit=250&properties=nf_inv_code&properties=nf_cst_recno&properties=dealname&properties=dealstage&properties=amount&properties=createdate&properties=closedate&properties=pipeline&properties=dealtype.
- Request 20190307033728233 completed and response parsed.
- Retrieved 5 deal(s).
- Begin get request 20190307033759396 to https://api.hubapi.com/crm-objects/v1/objects/line_items/paged?properties=nf_inv_code&properties=nf_prd_key&properties=name&properties=description&properties=quantity&properties=amount.
- Request 20190307033759396 completed and response parsed.
- Retrieved 7 line item(s).
- Begin get request 20190307034021636 to https://api.hubapi.com/associations/v1/associations/466032186/HUBSPOT_DEFINED/19?limit=100.
- (HSUnauthorizedApiException) HTTP 401. Unauthorized access. See inner exception.
- (Exception) HubSpot Message: This endpoint does not accept EXTERNAL hapikeys, and has no special allowances for this hapikey (********-****-*********-8b47f51d20ef). hapikey auth configuration for this endpoint: HapikeyAuthenticator{allows=INTERNAL}
