Create PostgreSQL database via API

How can I create a PostgreSQL database via API?

At the moment you can’t, but it looks like its in the works. Check out the docs: Introduction

Currently, the API supports endpoints that allow for management of services, deploys, custom domains, and jobs. We’ll be gradually releasing more endpoints in the coming months, allowing you to manage databases, environment groups, secret files, metrics, logs, and YAML configurations.

So its in the work but currently you can only create:

  • static stite
  • web service
  • private service
  • background worker
  • cronjob

Thanks Bergur.

As they said, database creation is not part of the REST API yet, but it is a feature request on our feedback site:

Feel free to upvote/comment to be notified of updates.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.