Skip to main content
POST
POST /projects/{project}/export/database
Creates a database export for selected tables.

Endpoint details

string
required
Bearer pat_... (Project API Token). Keep this token on your backend/server.
string
required
Project slug. This acts as the Project ID in API paths.
boolean
required
true for a successful response and false for an error response.
object | null
Endpoint-specific response data when ok is true; null on errors.
object | null
Error code and message when ok is false; null on success.
string
required
Request identifier you can use when troubleshooting a specific API call.

Authentication

Project API Token.

Parameters

Body optional: format zip, zip-csv, or json, default zip; include_tables optional array; exclude_tables optional array; table_options optional object keyed by table name; file_name optional.

Request examples

Basic request:
Full request:

Response examples

Success:
Error or alternate response: