This first alpha release of Datasette 1.0 introduces a brand new collection of APIs for writing to the database (#1850), as well as a new API token mechanism baked into Datasette core. Previously, API tokens have only been supported by installing additional plugins.
This is very much a preview: expect many more backwards incompatible API changes prior to the full 1.0 release.
Feedback enthusiastically welcomed, either through issue comments or via the Datasette Discord community.
Signed API tokens
- New
/-/create-token
page allowing authenticated users to create signed API tokens that can act on their behalf, see API Tokens. (#1852) - New
datasette create-token
command for creating tokens from the command line: datasette create-token. - New allow_signed_tokens setting which can be used to turn off signed token support. (#1856)
- New max_signed_tokens_ttl setting for restricting the maximum allowed duration of a signed token. (#1858)
Write API
- New API explorer at
/-/api
for trying out the API. (#1871) /db/-/create
API for Creating a table. (#1882)/db/table/-/insert
API for Inserting rows. (#1851)/db/table/-/drop
API for Dropping tables. (#1874)/db/table/pk/-/update
API for Updating a row. (#1863)/db/table/pk/-/delete
API for Deleting a row. (#1864)