Xata

Databases API key

Query and manage Xata databases, branches and tables from any Windmill script, flow or app.

Set up in 3 steps

1

Create an API key

In your Xata account settings, open API Keys and create one. Copy it — it is shown only once.

2

Add the resource in Windmill

Open Resources, add a resource of type xata, and paste the key.

3

Run your first script

Fork any script below and read before writing anything. There are dozens here, so search by the verb you need.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Resource type

xata — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
apiKeystringYesAPI key generated from the account settings of Xata dashboard.

Questions

What can the key do?

Everything your own account can, across every workspace you belong to. Xata has no per-key scopes.

A script asks for a workspace URL

Most of the data-plane scripts build their request from a per-workspace API host, which the resource does not carry yet — you will have to pass it, or use the scripts that only need the key. The workspace URL is on your Xata workspace's settings page.

Is my key stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.