APIs & Integrations

VT6
Participant

Our api not getting hit by CRM card for data.

SOLVE

Hi,
We have been trying to setup the CRM Card functionality that would just show a button to open some page.


On our GET api endpoint we are listening for the following query param

associatedObjectID
associatedObjectType
portalID
userEmail
userID
email

also we have configured email to be sent as part of the call:

VT6_0-1616155988171.png

 

When trying out our API manually (same url we put in here, with query params)

VT6_0-1616156436392.png

, we are currently returning a response similar to this one (We've also tried it with returning only the primary action) :

{
"results":[ {"objectId":654231,"title":"Mock hubspot card","link":"https://example.com/page?email={emailFromCallback}"} ],
"primaryAction":{"type":"IFRAME","width":890,"height":748,"uri":"https://example.com/page?email={emailFromCallback}","label":"Have fun"}
}

When checking logs for our api, it seems like hubspot is not calling the endpoint at all.


The card is present on contacts, but says:

There was a problem reaching [...]. Please refresh the page to try again or contact the app developer for support.

 

Is there a way to check whats going on by ourselves ? Logs or errors or any help ? Or can you please provide some support to get this working ?

1 Accepted solution
Sean_Matthews
Solution
Participant

Our api not getting hit by CRM card for data.

SOLVE

Hey @dennisedson and @VT6 take a look at the Monitoring Tab inside the HubSpot OAuth App settings... https://share.getcloudapp.com/o0uEr9n1

 

You should see the requests happening in there, and you can even copy and paste the URL of the request being made so you can inspect what's going on.

 

Definitely have been there before! Let me know if you need any more insights 👍

View solution in original post

3 Replies 3
dennisedson
HubSpot Product Team
HubSpot Product Team

Our api not getting hit by CRM card for data.

SOLVE

@Sean_Matthews , how do you deal with this?

0 Upvotes
Sean_Matthews
Solution
Participant

Our api not getting hit by CRM card for data.

SOLVE

Hey @dennisedson and @VT6 take a look at the Monitoring Tab inside the HubSpot OAuth App settings... https://share.getcloudapp.com/o0uEr9n1

 

You should see the requests happening in there, and you can even copy and paste the URL of the request being made so you can inspect what's going on.

 

Definitely have been there before! Let me know if you need any more insights 👍

VT6
Participant

Our api not getting hit by CRM card for data.

SOLVE

Awesome, did not notice the monitoring tab. Should look more closely next time. Thank you.