DatoCMS
Productivity API tokenCreate and update DatoCMS records, models and fields from any Windmill script, flow or app.
Set up in 3 steps
Copy a full-access API token
On the project page, open Project settings, then API tokens, and copy the full-access token — the read-only one cannot write.
Add the resource in Windmill
Open Resources, add a resource of type datocms, and paste the token.
Run your first script
Fork any script below and read before writing anything.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
Duplicate Field
Update Model
Retrieve Field
Delete Model
Retrieve Job Result
List Records
Delete Record
List Fields
Update Record
Create Record
Create Field
Retrieve Record
List Models
Create Model
Unpublish Record
Duplicate Model
Retrieve Model
Publish Record
Update Field
Delete Field
Duplicate Record
Resource type
datocms — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| apiKey | string | Yes | API key obtained from the DatoCMS dashboard |
Questions
Which token do I need?
The Content Management one, with full access. The read-only and the GraphQL delivery tokens serve published content and cannot change anything.
Which project does it act on?
The one the token belongs to — DatoCMS issues tokens per project. Managing several means a resource per project.
Is my key stored on the hub?
Never. It lives only in your own Windmill workspace, encrypted at rest.