APIs & Integrations

jwalants
Member

Error Calling Timeline API

SOLVE

Hi I'm new to Hubspot and I'm trying call a simple Timeline API from Postman (also tried in SoapUI) to get list of event types in my application. The request looks ok to me but I'm getting error in the response.

Request - GET -
https://api.hubapi.com/integrations/v1/<>/timeline/event-types?hapikey=xxxxxxxx&UserId=<>

Response -
{
"status": "error",
"message": "UserId not provided in request",
"correlationId": "fac1c1f6-8c37-4d1a-8d6c-6811eb2b9870",
"requestId": "d80332ab0d500e00735426534f0f60cd"
}

I have the application created and was able to call Contact APIs to create/manage some contacts but having issues with this.
I tripple checked the applicationID, Developer HAPI key and UserID values. I may be missing something.
Will really appreciate help on this.

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Error Calling Timeline API

SOLVE

Hi @jwalants,

It looks like you've capitalized UserId in the request URL. If you use userId, the request should work. I was able to replicate that error in Postman when I used "U" in the request.

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Error Calling Timeline API

SOLVE

Hi @jwalants,

It looks like you've capitalized UserId in the request URL. If you use userId, the request should work. I was able to replicate that error in Postman when I used "U" in the request.

Isaac Takushi

Associate Certification Manager
0 Upvotes