We're happy to announce an instance API for your ElephantSQL PostgreSQL database!
An Instance API which allows you to list, create, update and delete ElephantSQL instances programmatically is now available. You can find your API key and further API documentation under the API tab from the control panel.
Below is an example of how you can list your ElephantSQL instances.
List ElephantSQL instances
URL :
https://customer.elephantsql.com/api/instances
Method: GET
Example request:
curl -u YOUR-API-KEY: https://customer.elephantsql.com/api/instances
Example response:
[{ "id": 1234, "plan": "turtle", region: "amazon-web-services::eu-west-1", name: "My test" }]