# Data sources adding using file based

**URL:** <https://community.grafana.com/t/data-sources-adding-using-file-based/78069>\
**Category:** Developers & API\
**Tags:** json-api-datasource, provisioning, templating, api\
**Created:** [December 15, 2022, 4:34am UTC](https://community.grafana.com/t/data-sources-adding-using-file-based/78069 "2022-12-15T04:34:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shruti](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@shruti](https://community.grafana.com/u/shruti)\
**Post date:** [December 15, 2022, 4:34am UTC](https://community.grafana.com/t/data-sources-adding-using-file-based/78069/1 "2022-12-15T04:34:36Z")

</div>

Is there any way we can add data source using file based in grafana ,not from grafana UI.

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [December 15, 2022, 9:23am UTC](https://community.grafana.com/t/data-sources-adding-using-file-based/78069/2 "2022-12-15T09:23:33Z")

</div>

Hi @shruti,

Yes, it is possible. You can either use the [HTTP API for Datasources](https://grafana.com/docs/grafana/latest/developers/http_api/data_source/#create-a-data-source) or use the [data source provisioning](https://grafana.com/docs/grafana/latest/developers/http_api/data_source/#create-a-data-source)

I hope this helps 🤕
