How to add an authentication header for ChainLink API requests?

For example, this guide on connecting ChainLink to Twitter API to post a tweet doesn't implement anything of the sort, so how would it post the tweet?

Thank you.

1 Answer 1


You use an external adapter.

The node side has the OAuth information. So you don't add the information into the smart contract itself.

You can check out the Twitter External Adapter and see that all the password information is actually stored on the node, and the jobId on the node is associated with the external adapter.

  • Does this mean that I would have to either run my own node or pass on my OAuth credentials to some node operator (and get the specific jobId) to run my application? Thanks
    – Ayush
    Mar 9, 2021 at 19:52
  • 1
    Yes. At the moment you’d have to do one of those two. You could also put your passwords on chain with some encryption, but that’s not recommended. Mar 9, 2021 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.