Timeline API Request INTERNAL SERVER ERROR (500)

oauth
contacts

#1

I’m getting an error when batch creating events

Endpoint : /integrations/v1/123456/timeline/event/batch

RESPONSE
{“status”:“error”,“message”:“internal error”,“correlationId”:“275c4a7d-ab9d-4796-91e1-a23ec16c88fe”,“requestId”:“3ad59dcef551b64e1ed6ec120fdb00fd”}

REQUEST
{“eventWrappers”:[{“email”:“@.com",“extraData”:[],“eventTypeId”:"",“sourcePortal”:"***”,“sourcePortalID”:1234567}]}


#2

Hi @dan.van

You’ll need to make sure that each event you’re including has an id value. Each event needs to have an id provided by your integration, since HubSpot won’t automatically assign one for the events.

{“eventWrappers”:[{“email”:"@.com",“extraData”:[],“eventTypeId”:"",“sourcePortal”:"***",“sourcePortalID”:1234567,“id”:“001-001001”}]}