Send OAuth-Token with HTTPPost?

Hey,

im trying to send a oauth-Token with my HTTP post.
(i need the Token and the Token-type)

i tried to do it with .header() but it didn’t work out.

var trigger = data
   |alert()
       .crit(lambda: "value" != crit)
       .message(message)
       .id(idVar)
       .idTag(idTag)
       .levelTag(levelTag)
       .messageField(messageField)
       .durationField(durationField)
       .post('https://example.com/endpoint')
       .header('Content-Type', 'application/json')
       .telegram()
       .chatId('********')
       .parseMode('****')

Kapacitor v1.5.7