Export Workspace via api

Hi there, is it possible to export an entire workspace via the api in Baserow’s cloud environment?

I’m looking for a way to automatically create a backup and store it somewhere else and I’m thinking of doing this via n8n.

Thanks in advance for your help!

1 Like

Yes, there is an export workspace endpoint in the api. You can find it in the docs here: Baserow API spec

Thank! Does this also apply to the hosted/saas version?

Yes, just note the difference in authentication for this API as apposed to the database api.

@cwinhall Thanks! I managed to get the token via https://api.baserow.io/api/user/token-auth/ but still can not get the https://api.baserow.io/api/workspaces/[workspace id]/export/async/ to work. I keep getting “Authentication credentials were not provided.”. Do you happen to have a working example of this or is there a postman collection? Thanks again and best regards, Dick

@cwinhall and another question: is it safe to post json email/password in the body rather than to use base64-encoded credentials?