API server
https://app.coolify.io/api/v1Authorization
bearerAuth Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
In: header
Path Parameters
UUID of the database.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
"upload"uuidfalseDrop matching PostgreSQL objects before restoring a single-database archive.
falseRestore object owners and privileges from a single-database PostgreSQL archive. By default they are skipped, because the roles of another server usually do not exist.
falseMySQL and MariaDB backups containing all databases: also restore the mysql system database (users, passwords, and privileges). By default the system databases are skipped, so the database keeps its own users and passwords.
falseSQLite: the database file to restore into. Must be one of the database files. Defaults to the file named in the backup file name, else the first file.
"s3"falseDrop matching PostgreSQL objects before restoring a single-database archive.
falseRestore object owners and privileges from a single-database PostgreSQL archive. By default they are skipped, because the roles of another server usually do not exist.
falseMySQL and MariaDB backups containing all databases: also restore the mysql system database (users, passwords, and privileges). By default the system databases are skipped, so the database keeps its own users and passwords.
falseSQLite: the database file to restore into. Must be one of the database files. Defaults to the file named in the backup file name, else the first file.
"server"falseDrop matching PostgreSQL objects before restoring a single-database archive.
falseRestore object owners and privileges from a single-database PostgreSQL archive. By default they are skipped, because the roles of another server usually do not exist.
falseMySQL and MariaDB backups containing all databases: also restore the mysql system database (users, passwords, and privileges). By default the system databases are skipped, so the database keeps its own users and passwords.
falseSQLite: the database file to restore into. Must be one of the database files. Defaults to the file named in the backup file name, else the first file.
Response Body
application/json
curl -X POST "https://app.coolify.io/api/v1/databases/string/imports" \ -H "Content-Type: application/json" \ -d '{ "source": "upload", "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb" }'{ "message": "Validation error.", "errors": { "name": [ "The name field is required." ], "api_url": [ "The api url field is required.", "The api url format is invalid." ] }}