{ "opencollection": "1.0.0", "info": { "name": "Baserow API spec Admin Database tokens API", "version": "2.2.2" }, "items": [ { "info": { "name": "Database tokens", "type": "folder" }, "items": [ { "info": { "name": "list_database_tokens", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/database/tokens/", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Lists all the database tokens that belong to the authorized user. A token can be used to create, read, update and delete rows in the tables of the token's workspace. It only works on the tables if the token has the correct permissions. The **Database table rows** endpoints can be used for these operations." }, { "info": { "name": "create_database_token", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/database/tokens/", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a new database token for a given workspace and for the authorized user." }, { "info": { "name": "get_database_token", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/database/tokens/:token_id/", "params": [ { "name": "token_id", "value": "", "type": "path", "description": "Returns the database token related to the provided value." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns the requested database token if it is owned by the authorized user andif the user has access to the related workspace." }, { "info": { "name": "update_database_token", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/database/tokens/:token_id/", "params": [ { "name": "token_id", "value": "", "type": "path", "description": "Updates the database token related to the provided value." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates the existing database token if it is owned by the authorized user and ifthe user has access to the related workspace." }, { "info": { "name": "delete_database_token", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/database/tokens/:token_id/", "params": [ { "name": "token_id", "value": "", "type": "path", "description": "Deletes the database token related to the provided value." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Deletes the existing database token if it is owned by the authorized user and ifthe user has access to the related workspace." }, { "info": { "name": "check_database_token", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/database/tokens/check/", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "This endpoint check be used to check if the provided personal API token is valid. If returns a `200` response if so and a `403` is not. This can be used by integrations like Zapier or n8n to test if a token is valid." } ] } ], "bundled": true }