# Two Http\_poller inputs with access token

**URL:** https://discuss.elastic.co/t/two-http-poller-inputs-with-access-token/298939
**Category:** Logstash
**Created:** [March 7, 2022, 8:23am UTC](https://discuss.elastic.co/t/two-http-poller-inputs-with-access-token/298939 "2022-03-07T08:23:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [March 7, 2022, 12:01pm UTC](https://discuss.elastic.co/t/two-http-poller-inputs-with-access-token/298939/2 "2022-03-07T12:01:50Z")

</div>

> [@rodri.gz](#):
>
> I am trying to get data from an api that needs to be accessed using a token that we get from another api.

You cannot do that using http\_poller. See [this](https://discuss.elastic.co/t/how-to-pass-variable-base-parameter-in-http-poller-logstash-input-plugin/298621/2) for an example and [this](https://discuss.elastic.co/t/how-to-generate-oauth2-token-and-use-rest-api-to-pull-logs-from-cloud/166624/2) for more discussion.

---

_[View the full topic](https://discuss.elastic.co/t/two-http-poller-inputs-with-access-token/298939)._
