POST
/
v1
/
organizations
/
{organizationSlug}
/
databases
/
dumps
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/dumps' \
  -H 'Authorization: Bearer TOKEN' \
  -F 'file=@"~/Downloads/dump.sql"'
{
  "dump_url": "<string>"
}
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/dumps' \
  -H 'Authorization: Bearer TOKEN' \
  -F 'file=@"~/Downloads/dump.sql"'

Path Parameters

organizationSlug
string
required

The slug of the organization or user account.

Body

multipart/form-data
Database dump file to be uploaded.
file
file
required

Database dump file.

Response

200 - application/json
Successful upload of the database dump.
dump_url
string

URL of the uploaded database dump.