# Store data in PostgreSQL

**URL:** <https://discuss.hashicorp.com/t/store-data-in-postgresql/17274>\
**Category:** Vault\
**Created:** [November 6, 2020, 7:32am UTC](https://discuss.hashicorp.com/t/store-data-in-postgresql/17274 "2020-11-06T07:32:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauravdeshmukh612](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/gauravdeshmukh612/32/14371_2.png) [@gauravdeshmukh612](https://discuss.hashicorp.com/u/gauravdeshmukh612)\
**Post date:** [November 6, 2020, 7:32am UTC](https://discuss.hashicorp.com/t/store-data-in-postgresql/17274/1 "2020-11-06T07:32:17Z")

</div>

Hi Team,

We configure vault with storage as postgres, Which API should we use to store our data in valut. current we are using [http://127.0.0.1:8200/v1/sys/raw/client1/database/localdata](http://127.0.0.1:8200/v1/sys/raw/client1/database/localdata).

Another question  
We create one user using userpass auth method and added storage /secret engine as database. we are getting "permission Denied " when we are using user vault token in API

{  
“errors”: [  
“1 error occurred:\n\t\* permission denied\n\n”  
]  
}
