Hi! I have a problem while trying to get all timeline events from my hubspot app.
In the code im successfully getting contacts, owners etc. with my oauth requests but when i try to use:
try {
const apiResponse =
await hubspotClient.crm.timeline.templatesApi.getAll(appId)
console.log(JSON.stringify(apiResponse.body, null, 2))
} catch (e) {
e.message === ‘HTTP request failed’
? console.error(JSON.stringify(e.response, null, 2))
: console.error(e)
}
i get the following error:
body: {
status: ‘error’,
message: ‘Any of the listed authentication credentials are missing’,
correlationId: ‘2b8ada6e-af25-4a80-b363-a07a398ed30a’,
engagement: {
hapikey: ‘hapikey not engaged. hapikey is not present in query params.’,
‘oauth-token’: ‘oauth-token not engaged. OAuth access token not found in request header.’,
‘service-to-service’: ‘service-to-service not engaged. Metadata for service-to-service request not found.’,
‘internal-cookie’: ‘internal-cookie not engaged. Cookie not found in the request.’,
‘app-cookie’: ‘app-cookie not engaged. App cookie is not present on the request.’
}
I have checked my scopes and it includes timeline. Hoping that someone can point me in the right direction. Best regards
