# Query a data source by ID using API

**URL:** <https://community.grafana.com/t/query-a-data-source-by-id-using-api/44437>\
**Category:** Grafana\
**Created:** [March 12, 2021, 8:44pm UTC](https://community.grafana.com/t/query-a-data-source-by-id-using-api/44437 "2021-03-12T20:44:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raulcartelle](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@raulcartelle](https://community.grafana.com/u/raulcartelle)\
**Post date:** [March 12, 2021, 8:44pm UTC](https://community.grafana.com/t/query-a-data-source-by-id-using-api/44437/1 "2021-03-12T20:44:37Z")

</div>

Hello, I’m trying to query a data source using this solution [Data source HTTP API | Grafana documentation](https://grafana.com/docs/grafana/latest/http_api/data_source/#query-a-data-source-by-id)  
My issue is that the post call to the api is not working. Altough I’m sending the correct body.

Here are some screenshots from postman

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/d/d2471f2fe59dbd4507846cb7d3cd4a84bb789dd4.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [March 12, 2022, 8:45pm UTC](https://community.grafana.com/t/query-a-data-source-by-id-using-api/44437/2 "2022-03-12T20:45:17Z")

</div>

Closed on March 12, 2022, 8:45pm UTC

This topic was automatically closed after 365 days. New replies are no longer allowed.
