Logo Data Blaze
  • Docs
  • Community
Go to Dashboard ›
Docs
  • Guides
    • Getting Started
    • Using your Data Anywhere
    • Views Overview
    • Permissions and Sharing
    • Frequently Asked Questions
  • Integrations
    • REST APIs
    • Webhooks
    • Zapier
  • Reference
    • BSQL Reference

What's on this Page

  • Overview
    • Token-based authentication
  • Creating an API token
    • Table permissions
    • More token actions
  • API-docs
  • Endpoints Summary

REST APIs

Summary: Integrate with the Data Blaze REST API to automate tasks and workflows across your web applications and external systems.

Overview

This section explains how to integrate Data Blaze with external systems through its REST API. It covers authentication, secure communication setup, and seamless interaction with third-party applications.

Token-based authentication

Data Blaze REST APIs use a token-based system. Within your space, you can create one or more tokens to connect to the REST APIs. You can also choose what each token is allowed to do, like creating, reading, updating, or deleting data at the table level.

When you send a request to the REST API, add your space token in the Authorization header as a token. All API requests must be sent over HTTPS for security.

Creating an API token

  1. Open the space you want to create an API token for.
  2. Click the three dots next to the space name, and then click the "API tokens" menu item.
  3. The API tokens dialog will open.
  4. Click the "Create token" button, and enter a name for your token, then click the "Create" button.
  5. The token is created and now listed in the tokens dialog.
  6. Click the "copy" button next to your created token.

Now you can paste and use the token wherever you need it.

Treat your space token like a password, and keep it secure. Anyone with access to the token can read or modify space data according to the token's permissions. If you believe a token has been compromised, delete it immediately and generate a new one.

Table permissions

To have fine-grained control over your data, you can customize the permissions per table for your token, like creating, reading, updating, or deleting data.

  1. Click the "Show tables" link below your token.
  2. Now you can see all the tables in your space with the option to customize their permissions for that token.
It’s recommended to grant the minimum necessary permissions when sharing a token with a third party, to avoid unintentionally granting access to sensitive data or actions.

More token actions

  1. Click the three dots next to the token name.
  2. You’ll see options to generate a new API token, rename the token, or delete it.

API-docs

Data Blaze automatically generates an API documentation page for each space, based on the tables and fields that are in that space.

To access the API documentation page for a space:

  1. Open the space you want to create an API token for.
  2. Click the three dots next to the space name, and then click the "API documentation" menu item.
  3. You'll be redirected to the API documentation page, in a new browser tab.
  4. In the right panel, you can copy a sample request for each endpoint using one of the following clients: "cURL", "HTTP", "JavaScript (axios)", and "Python (requests)".
  5. After copying the request sample, replace the "YOUR_SPACE_TOKEN" with the token you copied in the previous section.

Endpoints Summary

The table below summarizes the Data Blaze API endpoints, which are described in detail on your space's “API Documentation” page.

#EndpointDescription
1GET /api/database/fields/table/{table_id}/List fields in a table.
2GET /api/database/rows/table/{table_id}/List rows in a table.
3GET /api/database/rows/table/{table_id}/{row_id}/Get details of a specific row.
4POST /api/database/rows/table/{table_id}/Create a new row in a table.
5PATCH /api/database/rows/table/{table_id}/{row_id}/Update a specific row.
6PATCH /api/database/rows/table/{table_id}/{row_id}/move/Move a specific row.
7DELETE /api/database/rows/table/{table_id}/{row_id}/Delete a specific row.
8GET /api/database/tables/all-tables/List all the tables that the token has either create, read, update or delete access to.
9POST /api/database/{space_id}/query/Use SQL to run SELECT, INSERT, UPDATE, and DELETE queries on a table.

Support

Get Started with Data Blaze
Contact Us
Documentation
Community Forum
Blog
Gallery

Other

Terms of Service
© Blaze Today Inc