Public app failing to auth

Hello I need to use the API to create timeline events for contacts. For this I figured I need to create a public app. I’m having an issue to authenticate it.

This is the message I get when trying to:

Gerardo19_0-1698782377417.png

Support helped me to track the following error:

{status: “error”,…}

  1. correlationId: “1d6a8f46-7db9-4187-b3f8-2ce247fb54fd”
  2. message: “Invalid input JSON on line 1, column 103: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)”
  3. status: “error”

But it was as far as they could get.

Can anyone help me with this, and let me know also if this is being an impediment for using the API?

The thing seems I’m not being able to successfully create is the client when using:

client = hubspot.Client.create(access_token=“”) I’m missing the access token, and I think it is when I verify it that I get it.

Thanks!

Hey, @Gerardo19 :waving_hand: Welcome to the community! Thank you for your question.

If you go here — Timeline Events API, and navigate to the endpoints tab, which specific endpoint are you using?

I ask because for this specific API, depending on the endpoint, you may need to use either your Developer API Key and not your key from another a public app with OAuth or private app.

Can you use the on-page example, or via Postman, successfully? Seeing the request you are making, minus your private info, will help the community try to troubleshoot this with you.

Best,

Jaycee